//<!--
function validateForm(catalogue) {
	if(document.forms.catalogue.realname.value=="") {
		alert("Please fill in the mandatory field  \'Name\'");
		document.getElementById('realname').style.backgroundColor='#FFB7B7';
		document.forms.catalogue.realname.focus();
		return false;
	}
	if(document.forms.catalogue.surname.value=="") {
		alert("Please fill in the mandatory field  \'Surname\'");
		document.getElementById('surname').style.backgroundColor='#FFB7B7';
		document.forms.catalogue.surname.focus();
		return false;
	}
	if(document.forms.catalogue.address1.value=="") {
		alert("Please fill in the mandatory field \'Address Line 1\'");
		document.getElementById('address1').style.backgroundColor='#FFB7B7';
		document.forms.catalogue.address1.focus();
		return false;
	}
	if(document.forms.catalogue.town.value=="") {
		alert("Please fill in the mandatory field \'Town\'");
		document.getElementById('town').style.backgroundColor='#FFB7B7';
		document.forms.catalogue.town.focus();
		return false;
	}
	if(document.forms.catalogue.county.value=="") {
		alert("Please fill in the mandatory field \'County\'");
		document.getElementById('county').style.backgroundColor='#FFB7B7';
		document.forms.catalogue.county.focus();
		return false;
	}
	if(document.forms.catalogue.postcode.value=="") {
		alert("Please fill in the mandatory field \'Postcode\'");
		document.getElementById('postcode').style.backgroundColor='#FFB7B7';
		document.forms.catalogue.postcode.focus();
		return false;
	}
	//**********<Email address validation >**********\\
   	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   	var address = document.forms.catalogue.elements["email"].value;
   	if(reg.test(address) == false) {
      	alert('\'E-mail\' value is not valid');
      	document.getElementById('email').style.backgroundColor='#FFB7B7';
      	document.forms.catalogue.email.focus();
      	return false;
   	}
	if(document.forms.catalogue.PrimaryYB.value=="0" && document.forms.catalogue.Topologika.value=="0") {
		alert("Please choose at least one catologue from selection \nby adding desired number of catalogues into the \'Quantity\' box");
		return false;
	}
}
//-->
