	function isZipCode(text){
		var rtn = false;
		//hideError();	
		if (text.value=="")
		{
			text.value="Enter Zip Code";
		}
		else {		
			// Check for correct zip code
			reZip = new RegExp(/(^\d{5}$)|(^\d{5}-\d{4}$)/);			
			if (reZip.test(text.value)) {
				rtn = true;	
				
			}
			else {
				showError();
			}
		}
				
		return rtn;
	}
	
	function validateFocus (text){
		if (text.value==""){
			text.value="Enter Zip Code";
		}
		else if (text.value=="Enter Zip Code"){
			text.value='';
		}
	}
	
	function showError(){
		//var errorObj = document.getElementById("error");
		//errorObj.style.display = "block"
		alert("invalid zip code");
	}
	function hideError(){
		var errorObj = document.getElementById("error");
		errorObj.style.display = "none"
	}
	
	function validateForm(clickId, text){
		var rtn = isZipCode(text);
		
		if (rtn == true){	
			aloneTracking(clickId);
		}		
		return rtn;
	}
	
	function submitDealerLocator(clickId, text){
		if (validateForm(clickId, text)){
			document.forms[0].submit();
		}
	}
