var message, fieldtofocus, passed, problemMsg;
var skipField = false;  // can not set focus on these fields
// Master function that checks all the pieces 

function isCustomerReady() {
	passed = true;  
	fieldtofocus = "";
	message ="Please review the following required fields: \n";
	problemMsg = "";
	
// Collects the customer information
		if (document.customerServ.customer.value == "") {
    		message += "- - Name \n"; 
			passed = false;
			if (fieldtofocus == "")  {fieldtofocus = document.customerServ.customer};
		}
					
    	if (document.customerServ.address.value == "") {
    		message += "- - Address \n";
			passed = false;
			if (fieldtofocus == "")  {fieldtofocus = document.customerServ.address};
    	}
	
    	if (document.customerServ.city.value == "") {
    		message += "- - City \n";
			passed = false;
			if (fieldtofocus == "")  {fieldtofocus = document.customerServ.city};
		}
	
		if (document.customerServ.state.value == "") {
    		message += "- - State \n";
			passed = false;
			if (fieldtofocus == "")  {fieldtofocus = document.customerServ.state};
		}
		
		if (document.customerServ.zip.value == "") {
    		message += "- - Zip \n";
			passed = false;
			if (fieldtofocus == "")  {fieldtofocus = document.customerServ.zip};
		}
		
		if (document.customerServ.country.value == "") {
    		message += "- - Country \n";
			passed = false;
			if (fieldtofocus == "")  {fieldtofocus = document.customerServ.country};
		}
		
		if (document.customerServ.phone.value == "") {
    		message += "- - Phone \n";
			passed = false;
			if (fieldtofocus == "")  {fieldtofocus = document.customerServ.phone};
		}
	
		if (document.customerServ.email.value == "") {
    		message += "- - Email \n";
			passed = false;
			if (fieldtofocus == "")  {fieldtofocus = document.customerServ.email};
		}
		
	if (passed == true)  {
		document.customerServ.submit();
	}
	if (passed == false)  {
		fixFieldInfo();
	}
}

function fixFieldInfo() {
	alert(message);
	if (skipField == false)  {
		fieldtofocus.focus();
	}
}


