///////// request for info and request for demo( Pop windows ) ///////////////

function openWindow(width,height) {
    x = (640 - width)/2, y = (400 - height)/2;

    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }
 //var retval=0;
  window.open('RequestInfo.aspx','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
}

function MM_openWindow(theURL) { //v2.0
 
  window.open(theURL,"reqdemo","toolbars=no,location=no,scrollbars=yes,resizable=no,status=no,height=344,width=542,left=0,top=0");
}

////////////request for Demo////////////////////////////////////////////////////////////////////////

		function isEmail(string) {
			if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
				return true;
			else
				return false;
		}
		function isProper(string) {
			if (string.search(/^\w+( \w+)?$/) != -1)
				return true;
			else
				return false;
		}

		function checkForNumeric(){
		 if((event.keyCode > 47 && event.keyCode <58) || (event.keyCode == 45)){
           
		 }else{
		   event.keyCode = null;
		 }
		}
		
		function checkForChar(){
		 if((event.keyCode > 47 && event.keyCode <58) || (event.keyCode == 45)){
          event.keyCode = null;
		 }else{
		   
		 }
		}
		
	///////// request for info and request for demo( Pop windows ) ///////////////

function openWindow(width,height) {
    x = (640 - width)/2, y = (400 - height)/2;

    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }

    //window.open('RequestInfo.aspx','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
    window.open('RequestInfo.aspx','newWin','width=520,height=382,top='+y+',left='+x);
}

function MM_openWindow(theURL) { //v2.0
 
  window.open(theURL,"reqdemo","toolbars=no,location=no,scrollbars=yes,resizable=no,status=no,height=344,width=542,left=0,top=0");
}


/////////////////////// Search function ////////////////////////////////////////

function search(){

document.forms[0].action="results.html";

document.forms[0].submit();
}

function doFocus(evt)
{
if (evt.keyCode == 13) { 
search();
 }
}