function ShirtCheck(){ 
	//Ensures user completes data entry forms
	// regular expression for string that only contains 0 or more whitespace chars
	// i.e. a sophisticated "blank field" check
	var reBlank = /^\s*$/;
	var strValue;
	
	//Billing address
	strValue = document.frmOrder.firstname.value;
	if (reBlank.test(strValue)){
		alert("Please enter your firstname.");
		document.frmOrder.firstname.focus();
		return false;
	}

	strValue = document.frmOrder.lastname.value;
	if (reBlank.test(strValue)){
		alert("Please enter your lastname.");
		document.frmOrder.lastname.focus();
		return false;
	}

	strValue = document.frmOrder.address1.value;
	if (reBlank.test(strValue)){
		alert("Please enter address line 1.");
		document.frmOrder.address1.focus();
		return false;
	}

	strValue = document.frmOrder.city.value;
	if (reBlank.test(strValue)){
		alert("Please enter city.");
		document.frmOrder.city.focus();
		return false;
	}

	if (document.frmOrder.stateprov[document.frmOrder.stateprov.selectedIndex].value == "") {
		alert("Please select state/province.");
		document.frmOrder.stateprov.focus();
		return false;
	}

	strValue = document.frmOrder.zip.value;
	if (reBlank.test(strValue)){
		alert("Please enter zip/postal code.");
		document.frmOrder.zip.focus();
		return false;
	}

	if (document.frmOrder.country.selectedIndex == 0) {
		alert("Please select country.");
		document.frmOrder.country.focus();
		return false;
	}

	//Verify Zip code for US orders
	if (document.frmOrder.country[document.frmOrder.country.selectedIndex].value == "US") {
		if (!IsValidUSZip(strValue)) {
			alert("Please enter a valid zip code.");
			document.frmOrder.zip.focus();
			return false;
		}
	}
	
	strValue = document.frmOrder.email.value; 
	if (reBlank.test(strValue)){ 
		alert('Please enter your e-mail address.');  
		document.frmOrder.email.focus(); 
		return false; 
	} 

	if (reBlank.test(document.frmOrder.email2.value)){ 
		alert('Please enter confirm e-mail address.');  
		document.frmOrder.email2.focus(); 
		return false;
	} 

	if (strValue != document.frmOrder.email2.value ){ 
		alert('Confirm e-mail address does not match e-mail address.');  
		document.frmOrder.email2.focus(); 
		return false; 
	}

	if (!emailCheck(strValue)){
		alert('Please enter a valid e-mail address.');  
		document.frmOrder.email.focus();
		return false;
	}

	if ((reBlank.test(document.frmOrder.phone1.value)) || (reBlank.test(document.frmOrder.phone2.value)) || (reBlank.test(document.frmOrder.phone3.value))) { 
		alert('Please enter your phone.');  
		document.frmOrder.phone1.focus(); 
		return false; 
	} 

	if ((reBlank.test(document.frmOrder.quantity_m.value)) && (reBlank.test(document.frmOrder.quantity_l.value)) && (reBlank.test(document.frmOrder.quantity_xl.value)) && (reBlank.test(document.frmOrder.quantity_2xl.value)) && (reBlank.test(document.frmOrder.quantity_3xl.value)) ) { 
		alert('Please enter quantity.');  
		document.frmOrder.quantity_m.focus(); 
		return false; 
	} 

	strValue = document.frmOrder.quantity_m.value; 
	if ( !(reBlank.test(strValue)) )  {
		if (!IsQuantityValid(strValue)) {
			alert('Quantity must be a number.');  
			document.frmOrder.quantity_m.focus();
			return false;
		}
	}

	strValue = document.frmOrder.quantity_l.value; 
	if ( !(reBlank.test(strValue)) )  {
		if (!IsQuantityValid(strValue)) {
			alert('Quantity must be a number.');  
			document.frmOrder.quantity_l.focus();
			return false;
		}
	}

	strValue = document.frmOrder.quantity_xl.value; 
	if ( !(reBlank.test(strValue)) )  {
		if (!IsQuantityValid(strValue)) {
			alert('Quantity must be a number.');  
			document.frmOrder.quantity_xl.focus();
			return false;
		}
	}

	strValue = document.frmOrder.quantity_2xl.value; 
	if ( !(reBlank.test(strValue)) )  {
		if (!IsQuantityValid(strValue)) {
			alert('Quantity must be a number.');  
			document.frmOrder.quantity_2xl.focus();
			return false;
		}
	}

	strValue = document.frmOrder.quantity_3xl.value; 
	if ( !(reBlank.test(strValue)) )  {
		if (!IsQuantityValid(strValue)) {
			alert('Quantity must be a number.');  
			document.frmOrder.quantity_3xl.focus();
			return false;
		}
	}
} 

	function IsValidUSZip(strZip) {
		var strChar; 

		if (strZip.length != 5) {		
			return false;
		}

		for (var i=0;i<=4;i++) {
			strChar = strZip.charAt(i) 
			if (strChar <'0' || strChar >'9' ) {			
				return false;
			}		
		}
		return	true;
	}


	function IsQuantityValid(strQty) {
		var strChar; 
		
		for (var i=0; i<=strQty.length-1; i++) {
			strChar = strQty.charAt(i) 
			if (strChar <'0' || strChar >'9' ) {			
				return false;
			}		
		}
		return	true;
	}

	function CheckPhone1(e) {
		var keynum;
		var keychar;
		var numcheck;

		if (window.event)// IE 
			{ keynum = e.keyCode; }
		else if(e.which) // Netscape/Firefox/Opera
  			{ keynum = e.which; }
	
		keychar = String.fromCharCode(keynum);
		
		if ((keychar >= 0) && (keychar <= 9)) { 
			if (document.frmOrder.phone1.value.length == 3) {
				document.frmOrder.phone2.focus();
			}		
		} 
	}
	
	function CheckPhone2(e) {
		var keynum;
		var keychar;
		var numcheck;

		if (window.event)// IE 
			{ keynum = e.keyCode; }
		else if(e.which) // Netscape/Firefox/Opera
  			{ keynum = e.which; }
	
		keychar = String.fromCharCode(keynum);
		
		if ((keychar >= 0) && (keychar <= 9)) { 
			if (document.frmOrder.phone2.value.length == 3) {
				document.frmOrder.phone3.focus();
			}		
		} 
	}