function clearZipInput(zipInput){
			if (zipInput.value=='Pon tu Código postal') {
				zipInput.value='';
				$('zipcode').value='';
				zipInput.maxLength = "5";
			}
		}

		function writeZipInput(zipInput){
			if (zipInput.value=='') {
				zipInput.maxLength = "20";
				zipInput.value='Pon tu Código postal';
			}
		}
	//End comments for SR # 10718

		function checkZip(){
    
    var mySrcTag = 'tool=Model_Espanol.Locator';

    if (typeof dealerLocatorSrcTag=='string' && dealerLocatorSrcTag.indexOf('tool')==0) mySrcTag = dealerLocatorSrcTag;

		//alert("in checkZip");
		var validZip = /^[0-9]{1,5}$/;
			
			if (validZip.test($('zipcode').value)) {
					location.href = "/tools/locate?" + mySrcTag + "&zipCode=" + $('zipcode').value;
			} else {
					location.href = "/tools/locate?" + mySrcTag + "&zipCode= "+" ";
					//$('errorDiv').innerHTML = "Please enter a valid 5-digit Zip Code.";
					//return false;
			}
		}

		function onlyNumbers(evt) { 

			var e = evt ; 
			var charCode =  e.which||e.keyCode; 
			
			//alert("charCode: "+charCode);
			
			if (charCode > 31 && (charCode < 48 || charCode > 57)){ 
				return false; 
			}
			if(charCode == 13){
				checkZip();
				return false; 
			}
			return true; 
		} 