function checkRanges(theForm){ok = true;firstElement = theForm.elements['ListPrice_LOW'].selectedIndex;secondElement = theForm.elements['ListPrice_HIGH'].selectedIndex;if (firstElement>secondElement){	theForm.elements['ListPrice_LOW'].selectedIndex = secondElement;	theForm.elements['ListPrice_HIGH'].selectedIndex = firstElement;	}if (theForm.elements['City'].value == ''  && theForm.elements['PostalCode'].value == '' ){	alert('You must provide the name of at least one city or ZIP code.');	ok = false;	}return ok;}function checkRanges2(theForm){ok = true;firstElement = theForm.elements['ListPrice_LOW'].value;secondElement = theForm.elements['ListPrice_HIGH'].value;if (firstElement>secondElement){	theForm.elements['ListPrice_LOW'].value = secondElement;	theForm.elements['ListPrice_HIGH'].value = firstElement;	}/*if ((theForm.elements['STATE'].checked)){		ok = true;		}		else		{		alert('You must select at least one state.');		ok = false;		}*/if (theForm.elements['City'].value == ''  && theForm.elements['PostalCode'].value == '' ){	alert('You must provide the name of at least one city or ZIP code.' + theForm.elements['PostalCode'].value +' ' + theForm.elements['City']);	ok = false;	}return ok;}function NewWindow(mypage, myname, w, h, scroll) {var winl = (screen.width - w) / 2;var wint = (screen.height - h) / 3;winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'win = window.open(mypage, myname, winprops)if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }}