// JScript File
function PopUp(varFilename, intLeft, intTop, intWidth, intHeight, binScroll) {

     winParams = " toolbar=no"         // Icon bar
               + ",location=no"      // Location bar
               + ",directories=no"   // 
               + ",status=no"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizeable=no"    //Allow resizing by dragging. (Yes - Does not work with Netscape or IE)
               + ",scrollbars="+binScroll   //Displays scrollbars is document is larger than window.
               + ",titlebar=no"     //Enable/Disable titlebar resize capability.
               + ",left="+intLeft             //Offset of windows left edge from screen.
               + ",top="+intTop              //Offset of windows top edge from screen.							 
               + ",width="+intWidth    //Standard 640,800/788, 800/788
               + ",height="+intHeight  //Standard 480,600/541, 600/566               
               + ";"
 
		 winURL = varFilename + "";
 		 		 var popwin;
				 popWindow = window.open(winURL,popwin,winParams)
}
	function IsNumeric(sText)
	{
	   var ValidChars = "0123456789.";
	   var IsNumber=true;
	   var Char;
	   for (i = 0; i < sText.length && IsNumber == true; i++) 
		  { 
		  Char = sText.charAt(i); 
		  if (ValidChars.indexOf(Char) == -1) 
			 {
			 IsNumber = false;
			 }
		  }
	   return IsNumber;
	   }

	function search()
	{
		var zip = document.getElementById("zipname").value
		var state = document.getElementById("statename").value
		
		if(IsNumeric(zip)) 
		{
			location.href="../about_us_location1.asp?loc="+ zip +"&rad=20" ;
		}
		else	
		{
			location.href="../about_us_citystate.asp?state=" + state + "&city=" + zip +"&rad=20"
		}
	}

	function startsearch()
	{
		key = key = event.keyCode;
		if(key==13)
		{
			search();
		}
	}
	function noenter() {
  	return !(window.event && window.event.keyCode == 13); }

	