window.onerror=function(){return true;	}

//Temporary function - MLP
function showDisabledMessage(){
  alert('This feature is currently disabled and under maintenance.\nThank you for bearing with us.');
}

function openWin( windowURL, windowName, windowFeatures ) {
    	return window.open( windowURL, windowName, windowFeatures );
}

function trimString(sValue) {
         var temp = sValue;var obj = /^(\s*)([\W\w]*)(\b\s*$)/;
         if (obj.test(temp)) { temp = temp.replace(obj, '$2'); }
         var obj = / +/g;temp = temp.replace(obj, " ");
         if (temp == " ") { temp = ""; }
         return temp;
};

function emailCheck(string1){
	var filter  = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(string1)) 
	      return true;
	else 
	     return false;
	     
};

function NumericOnly(e){
 var sAllow ='1234567890';
	/* For special characters
		 8 - Backspace
		 13 - Enter
		 0 - Delete, Home, End, Arrow
	*/
  sAllow += String.fromCharCode(8)+
  					String.fromCharCode(0)+
  					String.fromCharCode(13);
	k=document.all?parseInt(e.keyCode): parseInt(e.which);

return (sAllow.indexOf(String.fromCharCode(k))!=-1 || (k >= 96 && k <= 105) || k==8 ||k==13 || k==9 || k==46 || k==35 || k==36 || k==37 || k==39);
};

function trimLeftZeros(str){
	return str.replace( /^0*/, "" );
}