function validateForm1() {

		if(document.forms.main1.username1.value==""){
		main1.username1.focus();
		window.document.getElementById("username1").style.border = '2px solid #FA4A04';
		window.document.getElementById("username1").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("username1").style.border = '1px solid #A2A3A5';
		window.document.getElementById("username1").style.background = '#FFFFFF';
		}


		if(document.forms.main1.password1.value==""){
		main1.password1.focus();
		window.document.getElementById("password1").style.border = '2px solid #FA4A04';
		window.document.getElementById("password1").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("password1").style.border = '1px solid #A2A3A5';
		window.document.getElementById("password1").style.background = '#FFFFFF';
		}
} 

function validateForm2() {

		if(document.forms.main2.email2.value==""){
		main2.email2.focus();
		window.document.getElementById("email2").style.border = '2px solid #FA4A04';
		window.document.getElementById("email2").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("email2").style.border = '1px solid #A2A3A5';
		window.document.getElementById("email2").style.background = '#FFFFFF';
		}
} 


function validateForm3() {

		if(document.forms.main3.country3.value=="--"){
		main3.country3.focus();
		window.document.getElementById("country3").style.border = '2px solid #FA4A04';
		window.document.getElementById("country3").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("country3").style.border = '1px solid #A2A3A5';
		window.document.getElementById("country3").style.background = '#FFFFFF';
		}

		if(document.forms.main3.name3.value==""){
		main3.name3.focus();
		window.document.getElementById("name3").style.border = '2px solid #FA4A04';
		window.document.getElementById("name3").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("name3").style.border = '1px solid #A2A3A5';
		window.document.getElementById("name3").style.background = '#FFFFFF';
		}

		if(document.forms.main3.company3.value==""){
		main3.company3.focus();
		window.document.getElementById("company3").style.border = '2px solid #FA4A04';
		window.document.getElementById("company3").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("company3").style.border = '1px solid #A2A3A5';
		window.document.getElementById("company3").style.background = '#FFFFFF';
		}


		if(document.forms.main3.position3.value==""){
		main3.position3.focus();
		window.document.getElementById("position3").style.border = '2px solid #FA4A04';
		window.document.getElementById("position3").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("position3").style.border = '1px solid #A2A3A5';
		window.document.getElementById("position3").style.background = '#FFFFFF';
		}


		if(document.forms.main3.email3.value==""){
		main3.email3.focus();
		window.document.getElementById("email3").style.border = '2px solid #FA4A04';
		window.document.getElementById("email3").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("email3").style.border = '1px solid #A2A3A5';
		window.document.getElementById("email3").style.background = '#FFFFFF';
		}


		var stringa = new String(document.forms.main3.email3.value);

		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(stringa)){
		window.document.getElementById("email3").style.border = '1px solid #A2A3A5';
		window.document.getElementById("email3").style.background = '#FFFFFF';
		} else {
		window.document.getElementById("email3").style.border = '2px solid #FA4A04';
		window.document.getElementById("email3").style.background = '#FFD6D6';
		return false;
		}

		if(stringa.search(/gmail/) > 0 || stringa.search(/yahoo/) > 0 || stringa.search(/hotmail/) > 0 || stringa.search(/aol/) > 0 || stringa.search(/msn/) > 0){
		main3.email3.focus();
		window.document.getElementById("email3").style.border = '2px solid #FA4A04';
		window.document.getElementById("email3").style.background = '#FFD6D6';
		return false;
		}




		if(document.forms.main3.password3.value==""){
		main3.password3.focus();
		window.document.getElementById("password3").style.border = '2px solid #FA4A04';
		window.document.getElementById("password3").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("password3").style.border = '1px solid #A2A3A5';
		window.document.getElementById("password3").style.background = '#FFFFFF';
		}


		if(document.forms.main3.password23.value=="" || (document.forms.main3.password23.value!=document.forms.main3.password3.value)){
		main3.password23.focus();
		window.document.getElementById("password23").style.border = '2px solid #FA4A04';
		window.document.getElementById("password23").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("password23").style.border = '1px solid #A2A3A5';
		window.document.getElementById("password23").style.background = '#FFFFFF';
		}


		if(document.forms.main3.telephone3.value==""){
		main3.telephone3.focus();
		window.document.getElementById("telephone3").style.border = '2px solid #FA4A04';
		window.document.getElementById("telephone3").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("telephone3").style.border = '1px solid #A2A3A5';
		window.document.getElementById("telephone3").style.background = '#FFFFFF';
		}

		if(document.forms.main3.contacttype.value=="--"){
		main3.contacttype.focus();
		window.document.getElementById("contacttype").style.border = '2px solid #FA4A04';
		window.document.getElementById("contacttype").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("contacttype").style.border = '1px solid #A2A3A5';
		window.document.getElementById("contacttype").style.background = '#FFFFFF';
		}




} 


function validateForm4() {


		if(document.forms.main4.name4.value==""){
		main4.name4.focus();
		window.document.getElementById("name4").style.border = '2px solid #FA4A04';
		window.document.getElementById("name4").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("name4").style.border = '1px solid #A2A3A5';
		window.document.getElementById("name4").style.background = '#FFFFFF';
		}

		if(document.forms.main4.company4.value==""){
		main4.company4.focus();
		window.document.getElementById("company4").style.border = '2px solid #FA4A04';
		window.document.getElementById("company4").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("company4").style.border = '1px solid #A2A3A5';
		window.document.getElementById("company4").style.background = '#FFFFFF';
		}


		if(document.forms.main4.position4.value==""){
		main4.position4.focus();
		window.document.getElementById("position4").style.border = '2px solid #FA4A04';
		window.document.getElementById("position4").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("position4").style.border = '1px solid #A2A3A5';
		window.document.getElementById("position4").style.background = '#FFFFFF';
		}


		if(document.forms.main4.email4.value==""){
		main4.email4.focus();
		window.document.getElementById("email4").style.border = '2px solid #FA4A04';
		window.document.getElementById("email4").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("email4").style.border = '1px solid #A2A3A5';
		window.document.getElementById("email4").style.background = '#FFFFFF';
		}


		var stringa = new String(document.forms.main4.email4.value);
		if(stringa.search(/gmail/) > 0 || stringa.search(/yahoo/) > 0 || stringa.search(/hotmail/) > 0 || stringa.search(/aol/) > 0){
		main4.email4.focus();
		window.document.getElementById("email4").style.border = '2px solid #FA4A04';
		window.document.getElementById("email4").style.background = '#FFD6D6';
		return false;
		}


		if(document.forms.main4.office4.value==""){
		main4.office4.focus();
		window.document.getElementById("office4").style.border = '2px solid #FA4A04';
		window.document.getElementById("office4").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("office4").style.border = '1px solid #A2A3A5';
		window.document.getElementById("office4").style.background = '#FFFFFF';
		}
		
		if(document.forms.main4.mobile4.value==""){
		main4.mobile4.focus();
		window.document.getElementById("mobile4").style.border = '2px solid #FA4A04';
		window.document.getElementById("mobile4").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("mobile4").style.border = '1px solid #A2A3A5';
		window.document.getElementById("mobile4").style.background = '#FFFFFF';
		}	


		if(document.forms.main4.password4.value==""){
		main4.password4.focus();
		window.document.getElementById("password4").style.border = '2px solid #FA4A04';
		window.document.getElementById("password4").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("password4").style.border = '1px solid #A2A3A5';
		window.document.getElementById("password4").style.background = '#FFFFFF';
		}


		if(document.forms.main4.password24.value=="" || (document.forms.main4.password24.value!=document.forms.main4.password4.value)){
		main4.password24.focus();
		window.document.getElementById("password24").style.border = '2px solid #FA4A04';
		window.document.getElementById("password24").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("password24").style.border = '1px solid #A2A3A5';
		window.document.getElementById("password24 ").style.background = '#FFFFFF';
		}


		if(document.forms.main4.contacttype4.value=="0"){
		main4.contacttype4.focus();
		window.document.getElementById("contacttype4").style.border = '2px solid #FA4A04';
		window.document.getElementById("contacttype4").style.background = '#FFD6D6';
		return false;
		} else {
		window.document.getElementById("contacttype4").style.border = '1px solid #A2A3A5';
		window.document.getElementById("contacttype4").style.background = '#FFFFFF';
		}



} 
