function checkForm1() {

        var alerts1 = "";
		var validNum1 = "1234567890";
		
				     
		if (! document.searchCars.searchZip.value) {
            alerts1 = alerts1 + "Please enter Zipcode.\n";
        } else if (document.searchCars.searchZip.value) {
            for (var i=0; i <= document.searchCars.searchZip.value.length; i++) {
            if (validNum1.indexOf(document.searchCars.searchZip.value.charAt(i)) == -1) {
                alerts1 = alerts1 + "Please use only numbers for Zipcode.\n";
                break;
            }
            }
        }
				
		if (document.searchCars.searchZip.value =="0") {
            alerts1 = alerts1 + "Zipcode must not be Zero.\n";
        }
		if (document.searchCars.searchZip.value =="00000") {
            alerts1 = alerts1 + "Please enter a valid Zipcode.\n";
        }
		if (document.searchCars.searchZip.value.length < 5) {
            alerts1 = alerts1 + "Enter 5 digit Zipcode.\n";
        }
		
		
        if (alerts1){
            alert (alerts1);
            return (false);
        } else {            
            return (true);

        }
    }
	
	function checkForm2() {

        var alerts2 = "";
		var validNum2 = "1234567890";
        
		if (! document.sellCars.zip.value) {
            alerts2 = alerts2 + "Please enter Zipcode.\n";
        } else if (document.sellCars.zip.value) {
            for (var j=0; j <= document.sellCars.zip.value.length; j++) {
            if (validNum2.indexOf(document.sellCars.zip.value.charAt(j)) == -1) {
                alerts2 = alerts2 + "Please use only numbers for Zipcode.\n";
                break;
            }
            }
        }
				
		if (document.sellCars.zip.value =="0") {
            alerts2 = alerts2 + "Zipcode must not be Zero.\n";
        }
		if (document.sellCars.zip.value =="00000") {
            alerts2 = alerts2 + "Please enter a valid Zipcode.\n";
        }
		if (document.sellCars.zip.value.length < 5) {
            alerts2 = alerts2 + "Enter 5 digit Zipcode.\n";
        }
		
		
        if (alerts2){
            alert (alerts2);
            return (false);
        } else {            
            return (true);

        }
    }	




var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}	