function accountCheck(formobj){

	// Enter name of mandatory fields
	var fieldRequired = Array(
	"Name",
	"Address",
	"Tel",
	"Fax",
	"Email",
	"Website",
	"Date",
	"fsareg",
	"CompanyType",
	"associated",
	"previous",
	"BankersAddress",
	"payment",
	"Contact",
	"AccountQueries",
	"Signed",
	"Position"
	);
	
	// Enter field description to appear in the dialog box
	var fieldDescription = Array(
	"Name or Trading Name",
	"Address",
	"Telephone number",
	"Fax number",
	"Email Address",
	"Website Address",
	"Date business was establised",
	"FSA registration number",
	"Type of company",
	"Are you associated with another company?",
	"Have you traded under a previous title?",
	"Bankers address",
	"Your prefered method of payment",
	"Contact person dealing with application",
	"Contact person for account queries",
	"Your name as signature",
	"Position"
	);
	
	// dialog message
	var alertMsg = "Please complete the following fields:\n";

	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].value == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}