////////////////////////////////////////////////////////////////////
//////////main purpose of this file is to block java script ////////
//////////appearance in client browsers/////////////////////////////
////////////////////////////////////////////////////////////////////
var BLOCK_JSERRORS = true;
// if BLOCK_JSERRORS == true then no javascript errors will appear
//	else javascript errors will appear
var ALERT_ERRORS_DESCRIPTION = false;
//for developing purpose only:
//if ALERT_ERRORS_DESCRIPTION == true then an alert with error description
//will appear else the error description won't appear
window.onerror = blockError;
function blockError(sMsg,sUrl,sLine)
{
	if (ALERT_ERRORS_DESCRIPTION == true)
	{
		var Message = "error occured:\n";
		Message = Message+"Message:"+sMsg+"\n";
		Message = Message+"Line:"+sLine+"\n";
		Message = Message+"URL:"+sUrl+"\n";
		alert(Message);
	}
	return BLOCK_JSERRORS;
}





