// JavaScript Document
// In the function title brackets, in the syntax by which the field and the alert text is defined
function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
  {alert(alerttxt);return false}
<!-- else {return ValidateForm()} -->
}
}

// This function runs through the form, applying the validate_required function to all listed fields
function validate_form ( )
{
	valid = true;
		
		if ( document.frm.Name.value == "" )
        {alert ( "Name must be filled out" );document.frm.Name.focus();valid = false;}
		
		else if ( document.frm.Address.value == "" )
        {alert ( "Address must be filled out" );document.frm.Address.focus();valid = false;}
		
		else if ( document.frm.Email.value == "" )
        {alert ( "Email must be filled out" );document.frm.Email.focus();valid = false;}
		
		else if ( document.frm.Interest.selectedIndex == 0 )
        {alert ( "Area of Interest must be selected" );document.frm.Interest.focus();valid = false;}
		
		else if ( document.frm.Information.selectedIndex == 0 )
        {alert ( "Information must be selected" );document.frm.Information.focus();valid = false;}
		
		else if ( document.frm.Message.value == "" )
        {alert ( "Message must be filled out" );document.frm.Message.focus();valid = false;}
		
		return valid;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}