function CheckEMail( inEMail )
{
	var vPart = "[^<>()@,;:\"\\[\\]\\.\\s\\\\]+";
	var vUser = "(" + vPart + "(\\." + vPart + ")*)";
	var vQuoted = "(\".+\")";
	var vIP = "(\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])";
	var vDomain = "(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,})";

	var vMatch = "^(" + vUser + "|" + vQuoted + ")@("  + vDomain + "|" + vIP + ")$";

	var vExpr = new RegExp( vMatch ,"gi" );
	
	var vRet = inEMail.match( vExpr );

	if( vRet==null ) return false

	return true
}

function CheckPhone( inPhone, inNonUS )
{
	for (var i = 0 ; i < inPhone.length ; i++)
	{
		var vChar = inPhone.charAt(i);
		if (inNonUS && (vChar == " " || vChar == "+" || vChar == "(" || vChar == ")" || vChar == "-"))
			continue;
		if (vChar < '0' || vChar > '9')
			return false;
	}
	return true;
}

function SubmitGeneralForm(evt, inObj )
{

		// IE and Netscape have different names for the key property
		var keyCode = document.layers ? evt.which : document.all ? evt.keyCode : evt.keyCode;
	 	if (keyCode == 13)
		{
			eval( inObj);
		}
}		


var win=null;

function NewWindow(mypage,myname,w,h,scroll,pos){

if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}

if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}

else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}

settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';

win=window.open(mypage,myname,settings);}


function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}