function validatestate()
{
// Lets make sure a State is selected:
var state = document.form1.state.value;
document.form1.statename.value=document.form1.state.options[document.form1.state.selectedIndex].text;
if (state == "")
{
alert("Please select a state to continue.");
document.form1.state.focus();
return false;
}
return true;

}

function validatezip()
{
// Lets make sure a Zip Code is entered:
var zip = document.form2.zip.value;
if (zip == "")
{
alert("Please enter a zip code or postal code to continue.");
document.form2.zip.focus();
return false;
}
return true;
}

function validatecity()
{
// Lets make sure a City is entered:
var city = document.form3.city.value;

if (city == "")
{
alert("Please enter a city name to continue.");
document.form3.city.focus();
return false;
}
return true;
}

function validatename()
{
// Lets make sure a Name is entered:
var name = document.form4.name.value;

if (name == "")
{
alert("Please enter a name to continue.");
document.form4.name.focus();
return false;
}
return true;
}

function validatecountry()
{
// Lets make sure a Country is selected:
var country = document.form5.country.value;
document.form5.countryname.value=document.form5.country.options[document.form5.country.selectedIndex].text;
if (country == "")
{
alert("Please select a country to continue.");
document.form5.country.focus();
return false;
}
return true;
}
 
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
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(); }
}
  
function hideThis(thisDiv){
	var hDiv = document.getElementById(thisDiv);
	hDiv.style.display = "none";
}

function showThis(thisDiv){
	var sDiv = document.getElementById(thisDiv);
	sDiv.style.display = "block";
}
