/*	submitform.js	checks that all the mandatory fields have been completed and then submits the form.	date created 16 August 2005	author	ari rizos www.webology.net.au*/function checkform(){	errormessage = "Error: \n";	submitform = true;	validatetextfield(document.forms[0].companyname, "Company Name");	validatetextfield(document.forms[0].realname, "Name");	validatetextfield(document.forms[0].phone, "Phone");		validatetextfield(document.forms[0].email, "E-mail");	validatetextfield(document.forms[0].products, "Products");	validatetextfield(document.forms[0].quantity, "Quantity");	validatetextfield(document.forms[0].delivery, "Delivery Location");		if(submitform == false){		alert(errormessage);	}		if(submitform == true){		document.forms[0].submit();	}}
