
function contact_eval() 
{
    var name = document.contact.name.value;
	var company = document.contact.company.value;
	var email = document.contact.email.value;
	var subject = document.contact.subject.value;
	var comment = document.contact.comment.value;
	var STRING = "";
	var good_to_go = true;

   if(navigator.appName == "Netscape") 
   {	
		STRING +="These fields need attention:\n";
	    if(company == "") { STRING +="Company Name, "; good_to_go = false;}
        if(name == "") { STRING +="Your Name, "; good_to_go = false;}
		if(email == "") { STRING +="Email Address, "; good_to_go = false;}
 		if(subject == "") { STRING +="Subject of Email, "; good_to_go = false;}
 		if(comment == "") { STRING +="Comments"; good_to_go = false;}	
		
		if( (email != "")&&(email.match(/\@/g) == null || email.length < 7) )
		{STRING+="\nMake sure your email address is correct."; good_to_go = false;}
	}
	
	else 
	{
	
		if(company == "") { Input_check(contact.company,1); good_to_go = false;}
		if(name == "") { Input_check(contact.name,1); good_to_go = false;}
		
		if(email.match(/\@/g) == null || email.length < 7)
			{
			Input_check(contact.email,1); good_to_go = false;
			STRING+="Make sure your email address is correct.\n";
			}	
       
	    if(subject == "") { Input_check(contact.subject,1); good_to_go = false;}
        if(comment == "") {Input_check(contact.comment,1); good_to_go = false;}

	STRING+="The fields highlighted in yellow need your attention!\n";
	}

	if(good_to_go == false) 
	{ alert(STRING);}
	else{ document.contact.submit();}	
	
}


function services_eval() 
{
    var name = document.services.name.value;
	var company = document.services.company.value;
	var email = document.services.email.value;
	var comment = document.services.comment.value;
	var STRING = "";
	var good_to_go = true;

   if(navigator.appName == "Netscape") 
   {	
		STRING +="These fields need attention:\n";
		if(name == "") { STRING +="Your Name, "; good_to_go = false;}
	    if(company == "") { STRING +="Company Name, "; good_to_go = false;}
		if(email == "") { STRING +="Email Address, "; good_to_go = false;}
 		if(comment == "") { STRING +="Comments"; good_to_go = false;}	
		
		if( (email != "")&&(email.match(/\@/g) == null || email.length < 7) )
		{STRING+="\nMake sure your email address is correct."; good_to_go = false;}
	}
	
	else 
	{
	    if(name == "") { Input_check(services.name,1); good_to_go = false;}
		if(company == "") { Input_check(services.company,1); good_to_go = false;}
	
		if(email.match(/\@/g) == null || email.length < 7)
			{
			Input_check(services.email,1); good_to_go = false;
			STRING+="Make sure your email address is correct.\n";
			}	
    
        if(comment == "") {Input_check(services.comment,1); good_to_go = false;}

	STRING+="The fields highlighted in yellow need your attention!\n";
	}

	if(good_to_go == false) 
	{ alert(STRING);}
	else{ document.services.submit();}	
	
}



function Input_check(Ob,go) 
{
	var input_name = Ob;
	var value = go;
	if(navigator.appName == "Netscape") { return;}
	
	if(value == 1 ) 
	{ input_name.style.background = "#FFFF00";}
	else 
	{ input_name.style.background = "#FFFFFF"; }
}
