
function bookmark(){
  var url = "http://www.unitedfreightcompany.com";
  var title = "United Freight Company";
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark United Freight Company.");
  }
}


function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

function reset(thefield){
if (thefield.defaultValue==thefield.value || thefield.value=="")
{
thefield.value = "Zip Code"
}
}


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 verify() {

if (document.home_quote.zip_from.value.length != 5 || document.home_quote.zip_from.value == "Zip Code" || !IsNumeric(document.home_quote.zip_from.value)) {
	document.home_quote.zip_from.value = "";
}
if (document.home_quote.zip_to.value.length != 5 || document.home_quote.zip_to.value == "Zip Code" || !IsNumeric(document.home_quote.zip_to.value)) {
	document.home_quote.zip_to.value = "";
}

}