function checkForm(form) {

if (form.factoryname.value.length==0) {alert("Please enter the Factory Name")
return false;}

if (form.postal1.value.length==0) {alert("Please enter the line 1 of the address")
return false;}

if (form.postal2.value.length==0) {alert("Please enter the line 2 of the address")
return false;}

if (form.postal3.value.length==0) {alert("Please enter the line 3 of the address")
return false;}

if (form.slCOUNTRY.selectedIndex==-1) {alert("Please enter the Country of the factory")
return false;}

if (form.code.value.length==0) {alert("Please enter the security code")
return false;}

checkedButton = "N";
for (i=0;i<form.factorytype.length;i++){
	  if (form.factorytype[i].checked==true) {
	  	checkedButton=form.factorytype[i].value}}
if (checkedButton=="N") {alert("Please select a factory type")
return false;}	  	

if (form.dailycapacity.value.length==0) {alert("Please enter the daily processing capacity")
return false;}

if (form.informant.value.length==0) {alert("Please enter your own email address")
return false;}

else return true;
}
