var message="Permission Restricted";
if (navigator.appName == 'Microsoft Internet Explorer'){
function NOclickIE(e) {
if (event.button == 2 || event.button == 3) {
return false;
}
return true;
}
document.onmousedown=NOclickIE;
document.onmouseup=NOclickIE;
window.onmousedown=NOclickIE;
window.onmouseup=NOclickIE;
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=NOclickNN; }
document.oncontextmenu=new Function("return false")
}
else {
function NOclickNN(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}}}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=NOclickNN; }
document.oncontextmenu=new Function("return false")
}

function numbersonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if ((unicode<48)&&(unicode!=46)||(unicode>57)) //if not a number
return false //disable key press
}
}
function lnumbersonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if ((unicode<48)||(unicode>57)) //if not a number
return false //disable key press
}
}
function vnumbersonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if ((unicode<48)&&(unicode!=46)||(unicode>57)) //if not a number
return false //disable key press
}
}
function dobonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if ((unicode<48)&&(unicode!=47)||(unicode>57)) //if not a number
return false //disable key press
}
}
function alphaonly(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	if (unicode!=8) //if the key isn't the backspace key (which we should allow)
	{
		if(unicode==32)//if key is a space
		{
			return true;
		}
		if(unicode==46)//if key is a dot(".")
		{
			return true;
		}
		else if((unicode>=65)&&(unicode<=90)) //if key is from A to Z
		{
			return true;
		}
		else if((unicode>=97)&&(unicode<=122)) //if key is from a to b
		{
			return true;
		}
		if ((unicode==39)) //if not a number&&(unicode!=47)||(unicode>57)
			return false //disable key press
		else 
		{
			return false;
		}
	}
}
function chassisengine(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	if (unicode!=8) //if the key isn't the backspace key (which we should allow)
	{
		if ((unicode>=48)&&(unicode<=57)) //if a number
		{
			return true; 
		}
		else if((unicode>=65)&&(unicode<=90)) //if key is from A to Z
		{
			return true;
		}
		else if((unicode>=97)&&(unicode<=122)) //if key is from a to z
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}
function nospecialchars(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	if (unicode!=8) //if the key isn't the backspace key (which we should allow)
	{
		if ((unicode>=48)&&(unicode<=57)) //if a number
		{
			return true; 
		}
		else if((unicode>=65)&&(unicode<=90)) //if key is from A to Z
		{
			return true;
		}
		else if((unicode>=97)&&(unicode<=122)) //if key is from a to z
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}
function nosinglequote(e)
{
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode!=8){ 
	//if the key isn't the backspace key (which we should allow)
	if ((unicode==39)) //if not a number&&(unicode!=47)||(unicode>57)
		return false //disable key press
	}
}

function backButtonOverride()
{
  // Work around a Safari bug
  // that sometimes produces a blank page
  setTimeout("backButtonOverrideBody()", 1);
}
function backButtonOverrideBody()
{
  // Works if we backed up to get here
  try {
    history.forward();
  } catch (e) {
    // OK to ignore
  }
  // Every quarter-second, try again. The only
  // guaranteed method for Opera, Firefox,
  // and Safari, which don't always call
  // onLoad but *do* resume any timers when
  // returning to a page
  setTimeout("backButtonOverrideBody()", 500);
}
window.history.forward(1);
function nospecialchars_space(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	if (unicode!=8) //if the key isn't the backspace key (which we should allow)
	{
		if ((unicode>=48)&&(unicode<=57)) //if a number
		{
			return true; 
		}
		else if((unicode>=65)&&(unicode<=90)) //if key is from A to Z
		{
			return true;
		}
		else if((unicode>=97)&&(unicode<=122)) //if key is from a to z
		{
			return true;
		}
		else if(unicode==32)//if key is a space
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}
function addressvalidation(e)
{
	var unicode=e.charCode? e.charCode : e.keyCode
	if (unicode!=8) //if the key isn't the backspace key (which we should allow)
	{
		if ((unicode>=48)&&(unicode<=57)) //if a number
		{
			return true; 
		}
		else if((unicode>=65)&&(unicode<=90)) //if key is from A to Z
		{
			return true;
		}
		else if((unicode>=97)&&(unicode<=122)) //if key is from a to z
		{
			return true;
		}
		else if(unicode==32)//if key is a space
		{
			return true;
		}
		else if(unicode==46)//if key is a dot(".")
		{
			return true;
		}
		else if(unicode==47)//if key is a ("/")
		{
			return true;
		}
		else if(unicode==44)//if key is a ("/")
		{
			return true;
		}
		else if((unicode==40)||(unicode==41)) //if key is a ("()")
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}

