// show / hide id

function showhide (id)  {
var style = document.getElementById(id).style  
if (style.display == "none")  
  style.display = "";  
else  
  style.display = "none";  
}

function hide (id)  {
var style = document.getElementById(id).style  
style.display = "none";  
}

function show (id)  {
var style = document.getElementById(id).style  
style.display = "block";  
}

function validateform(form)
{

 var firstname = form.firstname.value;
 var lastname = form.lastname.value;
 var address1 = form.address1.value;
 var city = form.city.value;
 var state = form.state.value;
 var zip = form.zip.value;
 var email = form.email.value;

 if (firstname.length === 0) {
  alert("You must enter a First Name.");
  form.firstname.focus();
  return false;
 }

 if (lastname.length === 0) {
  alert("You must enter a Last Name.");
  form.lastname.focus();
  return false;
 }

 if (address1.length === 0) {
  alert("You must enter Address Line 1");
  form.address1.focus();
  return false;
 }

 if (city.length === 0) {
  alert("You must enter a City.");
  form.city.focus();
  return false;
 }

 if (state.length === 0) {
  alert("You must enter a State.");
  form.state.focus();
  return false;
 }

 if (zip.length === 0) {
  alert("You must enter a Zip.");
  form.zip.focus();
  return false;
 }

 if (email.length === 0) {
  alert("You must enter an Email.");
  form.email.focus();
  return false;
 }

 return true;

}
