// THIS PAGE INCLUDES CUSTOM FUNCTIONS FOR THE CLIENT
// fix console error on IE
if(typeof(console) != "object") {var console = new Object(); console.log = function() {} };


function params(qp) { try{r=unescape(location.search.match(new RegExp(qp+"=+([^&]*)"))[1]);}catch(e){r='';} return r; }


function writeYear() {
	RightNow = new Date();
	var TheYear = RightNow.getYear()
	
	if (TheYear >= 100 && TheYear <= 1999)
	{TheYear=TheYear + 1900}
	else
	{TheYear=TheYear}
	document.write(TheYear)
}

function customHandler(desc,page,line,chr)  {		// Display Errors in status	 
	window.status = "JAVASCRIPT ERROR : " + desc + " : PAGE=" + page + " : LINE=" + line;
	return true;
}
//window.onerror=customHandler;


function confirmCancel(confirmWhat)	{
	return confirm("Are you sure you want to " + confirmWhat + "?");
}
