function zd_checkFieldsNewCompany(){
	// Validating the personal details.
	obj = zd_Find('compName');
	if (obj.value.length == 0) { alert('Please enter your company name'); obj.focus(); return; }
	
	obj = zd_Find('compAddress1');
	if (obj.value.length == 0) { alert('Please enter your address'); obj.focus(); return; }
	

	obj = zd_Find('compCity');
	if (obj.value.length == 0) { alert('Please enter your City/Suburb'); obj.focus(); return; }
	
	obj = zd_Find('compState');
	if (obj.value.length == 0) { alert('Please enter your state'); obj.focus(); return; }
	
	obj = zd_Find('compPC');
	if (obj.value.length == 0) { alert('Please enter your postcode'); obj.focus(); return; }
	
	obj = zd_Find('compABN');
	if (obj.value.length == 0) { alert('Fill ABN field!'); obj.focus(); return; }
	
/*	obj2 = zd_Find('compACN');
	if (obj.value.length == 0 || obj2.value.length == 0) { alert('Please enter an ABN or ACN number'); obj.focus(); return; }*/
	
/*	obj = zd_Find('compLocalCouncil');
	if (obj.value.length == 0) { alert('Fill Local Council field!'); obj.focus(); return; }*/

	obj = zd_Find('compFName');
	if (obj.value.length == 0) { alert('Please enter the company contact first name'); obj.focus(); return; }
	
	obj = zd_Find('compLName');
	if (obj.value.length == 0) { alert('Please enter the company contact last name'); obj.focus(); return; }
	
	obj = zd_Find('compPh');
	if (obj.value.length == 0) { alert('Please etner the company phone number'); obj.focus(); return; }
	
	obj = zd_Find('compEmail');
	if (obj.value.length == 0){
		alert('Fill E-Mail Address field!'); obj.focus(); return;
	}else{
		if(obj.value.indexOf("@") == -1){
			alert ("Your email address must include an @ symbol.");
			obj.focus(); return;
		}else if (obj.value.indexOf(".") == -1){
			alert ("Your email address must include a DOT.");
			obj.focus(); return;
		}
	}
	obj = zd_Find('compUsername');
	if (obj.value.length == 0) { alert('Please enter a username'); obj.focus(); return; }
	
	obj1 = zd_Find('compPass');
	if (obj1.value.length == 0) { alert('Enter a password'); obj1.focus(); return; }
	
	obj2 = zd_Find('compPass2');
	if (obj2.value.length == 0) { alert('Please confirm your password'); obj2.focus(); return; }	
	
	if (obj1.value != obj2.value) {alert('Your passwords do NOT match. Please try again'); obj1.focus(); return; }	 
	
	document.forms[0].submit();
}


