function checkcontactform(thisform) {
	var firstname = thisform.firstname.value;
	var lastname = thisform.lastname.value;
	var email = thisform.email.value;
	var producttype = thisform.producttype.value;
	var info = thisform.info.value;
	var combinedName = firstname + " " + lastname;
	if (firstname=="") { alert("Please enter your first name"); return false; }
	if (lastname=="") { alert("Please enter your last name"); return false; }
	if (email=="" || email.indexOf("@") <= 0 || email.indexOf(".") <= 0 ){ 
		alert("Please enter a valid email address so we can get in contact with you."); return false; 
	}
	if (info=="") { alert("Please fill out the Information Request textarea."); return false; }
	
	$.post("submitcontact.php", { name: combinedName, email: email, producttype: producttype, bodytext: info },
	  function(data){
	    $(".popper").html(data);
	  });
	  
	return false;
}
