top.checksub = function(){
   var tf = top.document.forms[0];
	if(!tf.name.value && !tf.type2.value &&!tf.zip2.value && !tf.state[tf.state.selectedIndex].value && !tf.code.value && !tf.country[tf.country.selectedIndex].value){
     alert('You must choose at least one search criteria to continue.');
     return false;
   }
   return true;
}
top.changestate = function() {
   var tf = top.document.forms[0];
	if(tf.country.selectedIndex != 0) {
		tf.country.selectedIndex = 0;
	}
//	if(tf.code.value) {
//		tf.code.value ='';
//	}
}
top.changecountry = function() {
   var tf = top.document.forms[0];
	if(tf.state.selectedIndex != 0) {
		tf.state.selectedIndex = 0;
	}
	if(tf.code.value) {
		tf.code.value ='';
	}
}
top.changecode = function() {
   var tf = top.document.forms[0];
//	if(tf.state.selectedIndex != 0) {
//		tf.state.selectedIndex = 0;
//	}
	if(tf.country.selectedIndex != 0) {
		tf.country.selectedIndex = 0;
	}
}

window.onload=top.checksub;
window.onload=top.changestate;
window.onload=top.changecountry;
window.onload=top.changecode;
