$(document).ready(function(){	// this line checks a hidden field (that is set to success if the message was sent) and displays a message.	if($('#msgsent').val() == 'success')alert('Your message was sent');					   			$('#msg_carol').click(function(){	$('#contact_carol').slideToggle('slow',function(){});	});						     $('#menu li ul').css({    display: "none",    left: "auto"  });  $('#menu li').hover(function() {    $(this)      .find('ul')      .stop(true, true)      .fadeIn('fast');  }, function() {    $(this)      .find('ul')      .stop(true,true)      .fadeOut('slow');  });           $('#contact_submit').click(function(){	var errors = '';	var companyname = $('#companyname').val();	var taxid = $('#taxid').val();		var name = $('#name').val();	var phone = $('#phone').val();	var email = $('#email').val();			if(companyname == '')errors+='Company Name Field.\n'	if(taxid == '')errors+='Tax ID Field.\n'	if(name == '')errors+='Name Field.\n'	if(phone == '')errors+='Phone Field.\n'	if(email == '')errors+='Email Field.\n'	if (errors){		alert('The following required fields were left blank:\n'+errors);		return false;	}	});// end of #contact_submit   });
