// =======================================
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

// Set the coldColor for the link normal color
// Set the hotColor for the link mouseOver color
// Set the motionPix for how many pixels to move

var coldColor = "#FE685C"
var hotColor  = "#FE685C"
var motionPix = "7"

// do not edit below this line
// ======================================

var a='<style>'+
'A.InstantLink:link {'+
'  color:'+coldColor+';'+
'  text-decoration:none;'+
'  padding:0 '+motionPix+' 0 0;'+
'  }'+  
'A.InstantLink:visited {'+
'  color:'+coldColor+';'+
'  text-decoration:none;'+
'  padding:0 '+motionPix+' 0 0;}'+  
'A.InstantLink:active {'+
'  color:'+coldColor+';'+
'  text-decoration:none;'+
'  padding:0 '+motionPix+' 0 0;'+
'  }'+  
'A.InstantLink:hover {'+
'  color:'+hotColor+';'+
'  text-decoration:underline;'+
'  padding:0 0 0 '+motionPix+';'+
'  }'+
'</style>'
if (document.all || document.getElementById){
    document.write(a)
}




function validRequired(formField,fieldLabel)
{
  var result = true;
  
  if (formField.value == "")
  {
    alert('Please enter a value for the "' + fieldLabel +'" field.');
    formField.focus();
    result = false;
  }
  
  return result;
}


function validNum(formField,fieldLabel,required)
{
  var result = true;

  if (required && !validRequired(formField,fieldLabel))
    result = false;
  
   if (result)
   {
     var num = parseInt(formField.value,10);
     if (isNaN(num))
     {
       alert('Please enter a number for the "' + fieldLabel +'" field.');
      formField.focus();    
      result = false;
    }
  } 
  
  return result;
}


function validateForm()
{
  // Customize these calls for your form
  theForm = document.forms['find'];

  if (!validNum(theForm.z,"Zip code"))
    return;
 
  theForm.submit();
}

function mypopup()
{
   theForm = document.forms['find'];
   zipcode = theForm.z.value;
   mywindow = window.open ("/lookup/zip/"+zipcode, "mywindow","location=1,status=1,scrollbars=1,  width=400,height=500");
   //mywindow.moveTo(0,0);
}
 

