function checkContactForm ()
{
        var errors = "";
  	if (document.contactus.Contact_Name.value == "") {
	   alert3.style.display = "";
           errors = "1";
        }
        else {alert3.style.display = "none";}
  	if (document.contactus.Contact_Email.value == "") {
	   alert1.style.display = "";
           errors = "1";
        }
        else {alert1.style.display = "none";}
  	if (document.contactus.Contact_Subject.value == "") {
	   alert2.style.display = "";
           errors = "1";
        }
        else {alert2.style.display = "none";}
  	if (document.contactus.Contact_Body.value == "") {
	   alert5.style.display = "";
           errors = "1";
        }
        else {alert5.style.display = "none";}
        if (errors == "") {

	   document.contactus.submit();
        }
}


function checkListWithUsForm ()
{
        var errors = "";
  	if (document.listwithus.companyname.value == "") {
	   alert1.style.display = "";
           errors = "1"
        }
        else {alert1.style.display = "none";}

  	if (document.listwithus.Contact_Name.value == "") {
	   alert2.style.display = "";
           errors = "1"
        }
        else {alert2.style.display = "none";}

  	if (document.listwithus.Contact_Email.value == "") {
	   alert3.style.display = "";
           errors = "1"
        }
        else {alert3.style.display = "none";}

  	if (document.listwithus.Contact_Email.value == "") {
	   alert3.style.display = "";
           errors = "1"
        }
        else {alert3.style.display = "none";}


  	if (document.listwithus.selType.value == "") {
	   alert4.style.display = "";
           errors = "1"
        }
        else {alert4.style.display = "none";}


  	if (document.listwithus.selSubType.value == "") {
	   alert5.style.display = "";
           errors = "1"
        }
        else {alert5.style.display = "none";}
    
        if (errors == "") {

	   document.listwithus.submit();
        }
}
