function reload(form)
{
var val=form.abbreviation.options[form.abbreviation.options.selectedIndex].value;
val = val + "_" + form.abbreviation.options[form.abbreviation.options.selectedIndex].text;
val = 'index.asp?state=' + val ;
<!--alert(val);-->
self.location= val ;
}

function callCity(form)
{
<!--var val=form.abbreviation.options[form.abbreviation.options.selectedIndex].value;-->
var stval=form.abbreviation.options[form.abbreviation.options.selectedIndex].value;
var cityvalue = form.city.options[form.city.options.selectedIndex].text;
cityvalue = 'Golfcourses.asp?Page=city_' + cityvalue + '_' + stval;
<!--alert(cityvalue);-->
self.location= cityvalue;
}

function PadDigits(n, totalDigits) 
 { 
   n = n.toString(); 
   var pd = ''; 
   if (totalDigits > n.length) 
    { 
     for (i=0; i < (totalDigits-n.length); i++) 
      { 
       pd += '0'; 
      } 
    } 
     return pd + n.toString(); 
  } 

function callZip(form)
{
 var zipvalue = form.zip.value;
 <!--alert(zipvalue);-->
if (zipvalue == "")
 {
 alert("Enter Zipcode OR Select a State");
 }
else
 {  
 zipvalue = PadDigits(zipvalue,5)
 zipvalue = 'Golfcourses.asp?Page=zip_' + zipvalue ;
 <!--alert(zipvalue);-->
 self.location= zipvalue;
 }
}

function checkkey(e) 
{
var characterCode 

if(e && e.which)
 { //if which property of event object is supported (NN4)
 e = e
 characterCode = e.which //character code is contained in NN4's which property
 }
else
 {
 e = event
 characterCode = e.keyCode //character code is contained in IE's keyCode property
}

if(characterCode == 13)
 { //if generated character code is equal to ascii 13 (if enter key)
 <!--callZip(this.form)-->
 <!--alert("Yes");-->
 return false 
 }
 else
 {
 return true 
 }

}
function callHome(form){
var homevalue;
homevalue = 'index.asp?';
self.location= homevalue;
}
