function checkform(passform){
	
var error = "";

var i = 0;


if (document.getElementById('city').value == ""){
	error += '\nPlease Select At least one City.\n\nTo select a City first select a county, then use the \n arrows to move the cities into the selected box\n';
	i++;
 }


	pricemin = passform.minprice.selectedIndex 
	pricemax = passform.maxprice.selectedIndex
if (passform.minprice.options[pricemin].value == ""){
	
 	error +='\nPlease Select your Minimum Price\n';
    i++;
 	}
 	if (passform.maxprice.options[pricemax].value == ""){
 	
	error +='\nPlease Select your Maximum Price\n';
    i++;
 	}
	if (parseInt(passform.maxprice.options[pricemax].value) < parseInt(passform.minprice.options[pricemin].value)){
	
	error +='\nPlease Select a Maximum Price \n that is larger than the Minimum Price\n';
	i++;
	} 
 
if (i > 0) { //if there more then '0' errors..  
	//set top of error message
	//var errorMessage = 'The form was not submitted due to the following problem' + ((i > 1) ? 's' : '') + ':\n\n';	   
	var errorMessage = '';
	//add in the error message 
	errorMessage += error;
	//add in the bottom of the message
	errorMessage += '\nPlease fix ' + ((i > 1) ? 'these' : 'this') + ' problem' + ((i > 1) ? 's' : '') + ' and resubmit the form.';
	
	alert(errorMessage);
	
	return false;    
}

return true;
 
}