<!-- hide from old browsers...
function resetSelect(set) {
	if (set==1) {
		document.myForm.country1.selectedIndex=0;
	} else if (set==2) {
		document.myForm.country2.selectedIndex=0;
	}
}



function isNumeric(data) {
	for (var i=0; i < data.length; i++) {
 		var digit = data.charAt(i);
 		if (digit < '0' || digit > '9') {
 			return false;
 		}
 	}
 	return true;
 }

function checkForm(theForm) {
	
/*	var theZip = new String(theForm.elements.zipcode.value)
	var theChar;
	for	(var i=0; i<theZip.length; i++) {
		theChar = theZip.charAt(i);
		if (!isNumeric(theChar)) return false;
	}*/
	//check: username
	if ((theForm.elements.firstname.value=="")||(theForm.elements.firstname.value==" ")) {
		alert("Please enter your first name");
		theForm.elements.firstname.focus();
		theForm.elements.firstname.select();
		return false;
	}
	if ((theForm.elements.city.value=="")||(theForm.elements.city.value==" ")) {
		alert("Please enter the city you're from.");
		theForm.elements.city.focus();
		theForm.elements.city.select();
		return false;
	}
	//check: state
	if (theForm.elements.state.selectedIndex==0) {
		alert("Please select the state you live in.");
		theForm.elements.state.focus();
		return false;
	}
	if ((theForm.elements.whenemigrate.value=="")||(theForm.elements.whenemigrate.value==" ")) {
		alert("Please tell us when you emigrated to the U.S.");
		theForm.elements.whenemigrate.focus();
		theForm.elements.whenemigrate.select();
		return false;
	}
	if ((theForm.elements.importantreason.value=="")||(theForm.elements.importantreason.value==" ")) {
		alert("Please tell us the most important reason for you to emigrate to the U.S.");
		theForm.elements.importantreason.focus();
		theForm.elements.importantreason.select();
		return false;
	}
	//check: story question
	if ((theForm.elements.story.value=="")) {
		alert("Please tell us your story.");
		theForm.elements.story.focus();
		return false;
	}
	return true;
}


// end of hiding -->