<!--
function contact() {
	var f = document.contact_us;

	if (!f.email.value.match(/^\S+@\S+\.\S+$/)) { alert('Please enter a valid e-mail address.'); f.email.select(); f.email.focus(); return false; }
	if (f.name.value == "") { alert('Please enter your name.'); f.name.focus(); return false;  }
	if (f.address.value == "") { alert('Please enter your mailing address.'); f.address.focus(); return false; }
	if (f.city.value == "") { alert('Please enter your city.'); f.city.focus(); return false; }
	if (f.state.value == "") { alert('Please enter your state.'); f.state.focus(); return false; }
	if (f.zip.value == "") { alert('Please enter your zip code.'); f.zip.focus(); return false; }
}

function tell_a_friend() {
	var a = document.friend;

	if (!a.email.value.match(/^\S+@\S+\.\S+$/)) { alert('Please enter a valid e-mail address.'); a.email.select(); a.email.focus(); return false; }
	if (!a.femail.value.match(/^\S+@\S+\.\S+$/)) { alert('Please enter a valid e-mail address for your friend.'); a.femail.select(); a.femail.focus(); return false; }
	if (a.name.value == "") { alert('Please enter your name.'); a.name.focus(); return false;  }
	if (a.fname.value == "") { alert('Please enter your friend\'s name.'); a.fname.focus(); return false;  }
}

function activate() {
	thenumber = document.theform.thepulldown.selectedIndex;
	changeto = document.theform.thepulldown.options[thenumber].value;

	if (changeto == "gonowhere") {
		// do nothing
	} else {
		window.open(changeto,target="_self");
	}
}

function automatic() {
	thenumber = document.theform.thepulldown.selectedIndex;
	changeto = document.theform.thepulldown.options[thenumber].value;

	if (changeto == "gonowhere") {
		// do nothing
	} else {
		window.open(changeto,target="_self");
	}

}

function loadspecial() {
	var w = window.open('popup.html','special','width=300,height=327,scrollbars=0,status=0,resizeable=0,menubar=0,toolbar=0,locationbar=0,location=0,personalbar=0');
}

function backtonorm() {
	var uagent = navigator.userAgent;

	if(uagent.indexOf('Mac',0) > -1) {
		window.scroll(0,0);
	}
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
// -->