var minqty
function checkorder(){
	if(document.frmorder.vwquantity.value<minqty){
	document.frmorder.vwquantity.focus();
	alert("Please Enter Minimum Quantity" + minqty);
	return false;
	}
	myImprint = -1;
	for (i=frmorder.Imprint.length-1; i > -1; i--) {
		if (frmorder.Imprint[i].checked) {
		myImprint = i;
		}
	}
	if (myImprint == -1) {
	alert("You must select Imprint Detail");
	document.frmorder.Imprint[0].focus();
	return false;
	}
	if (frmorder.Imprint[0].checked == true){
		myOption = -1;
		for (i=frmorder.vwimprintlocation.length-1; i > -1; i--) {
			if (frmorder.vwimprintlocation[i].checked) {
			myOption = i;
			}
		}
			if (myOption == -1) {
			alert("You must select Imprint Location");
			document.frmorder.vwimprintlocation[0].focus();
			return false;
		}
	}
		if (frmorder.Imprint[0].checked == true){
		myicolor = -1;
		for (i=frmorder.Imprintcolor.length-1; i > -1; i--) {
			if (frmorder.Imprintcolor[i].checked) {
			myicolor = i;
			}
		}
			if (myicolor == -1) {
			alert("You must select Imprint Color");
			document.frmorder.Imprintcolor[0].focus();
			return false;
		}
	}
	if(frmorder.Imprintcolor[0].checked == true && frmorder.color1_value.value<1){
	alert("Please enter Imprint color code")
	frmorder.color1_value.focus();
	return false;
	}
	if(frmorder.Imprintcolor[1].checked == true && frmorder.color1_value.value<1){
	alert("Please enter 1st Imprint color code")
	frmorder.color1_value.focus();
	return false;
	}
	if(frmorder.Imprintcolor[1].checked == true && frmorder.color2_value.value<1){
	alert("Please enter 2nd Imprint color code")
	frmorder.color2_value.focus();
	return false;
	}
		if (frmorder.Imprint[0].checked == true){
		whatprint = -1;
		for (i=frmorder.ImprintContent.length-1; i > -1; i--) {
			if (frmorder.ImprintContent[i].checked) {
			whatprint = i;
			}
		}
			if (whatprint == -1) {
			alert("What whould like to imprint");
			document.frmorder.ImprintContent[0].focus();
			return false;
		}
	}
	if (document.frmorder.Imprint[1].checked == true){
	document.frmorder.vwimprintlocation.checked == false;
	document.frmorder.Imprintcolor.checked == false;
	document.color1_value.value="";
	document.color2_value.value="";
	document.ImprintContent.checked == false;
	return true;
	}

}

