
// JavaScript Document

function startFocus() {
	document.forms.order03.qty.focus();
	document.forms.order06.card.focus();
	}
window.onload = startFocus;
function go_back() {
	window.history.go(-1);
	}
function valid03() {
	if ( document.order03.qty.value.length < 1 ) {
		alert("Please enter a quantity");
		document.order03.qty.focus();
		return false;
		}
	if ( document.order03.name.value.length < 3 ) {
		alert("Please fill in your name");
		document.order03.name.focus();
		return false;
		}
	if ( document.order03.add1.value.length < 3 ) {
		alert("Please enter your address");
		document.order03.add1.focus();
		return false;
		}
	if ( document.order03.city.value.length < 3 ) {
		alert("Please fill in your city");
		document.order03.city.focus();
		return false;
		}
	/*if ( document.order03.prov.value == "00" ) {
		alert("Please select your province or state");
		document.order03.prov.focus();
		return false;
		}
	*/
	if ( document.order03.zip.value.length < 3 ) {
		alert("Please fill in your postal or zip code");
		document.order03.zip.focus();
		return false;
		}
	}
function valid06() {
	if ( document.order06.card.value.indexOf("Select") > 0 ) {
		alert("Please select a credit card");
		document.order06.card.focus();
		return false;
		}
	if ( document.order06.cardnbr.value.length < 3 ) {
		alert("Please enter your credit card number");
		document.order06.cardnbr.focus();
		return false;
		}
	if ( document.order06.cmonth.value < 1 ) {
		alert("Please select an expiry month for your credit card");
		document.order06.cmonth.focus();
		return false;
		}
	if ( document.order06.cyear.value.indexOf("Year") > 0 ) {
		alert("Please select an expiry year for your credit card");
		document.order06.cyear.focus();
		return false;
		}
	}
	
function securemail(marg1,marg2) {
	location.replace("mailto:" + marg1 + "@" + marg2)
	}	
	