	
	
	

function expandit(strDiv) {
//alert(typeof(document.all[strDiv]));
  var objDiv;

//  if (document.layers) { WinWidth = window.outerWidth; }
//  if (document.all) { WinWidth = document.body.clientWidth; }

  if (document.all) {
    objDiv = document.all[strDiv];
  } else {
    objDiv = document.getElementById(strDiv);
  }
  objDiv.style.display=='block'?objDiv.style.display='none':objDiv.style.display='block';
}





function validate_form()
{
  var missing = "";
  valid = true;

  if (document.info_request.name.value == "") {
    missing = "Name";
    document.info_request.name.focus();
    valid = false;
  }
  if (document.info_request.email.value == "") {
    if (valid == false) missing += ", "
    missing += "Email";
    if (valid != false) document.info_request.email.focus();
    valid = false;
  }

  if (valid == false) {
    alert ("Please fill in the following field(s): "+missing+".");
  }
  else {
    var email = document.info_request.email.value;
    if (email != "")
    {
      if (email.indexOf(' ') == -1 
          && 0 < email.indexOf('@')
          && email.indexOf('@') + 1 < email.length)
      {
        return valid;
      }
      else
      {
        alert ('Invalid email address.')
        document.info_request.email.focus();
        valid = false;
      }
    }
  }
  return valid;
}

