<!-- Hide from non-JavaScript Browsers 
function Selection_Validator(Form) {
	suppressexitsurvey=true;
	var quantityOrdered=0;
	if (document.cookie == '')
	{
		alert("It appears as though your cookies are not enabled. We cannot add this item to your cart. \n Please check our tech support page in the service section for more assistance.");
		return (false);
		}
	
	if (Form.buy) 
	{
		if (Form.buy.value == '') 
		{
			alert("The first \"color/style\" option is not a valid selection.  Please choose one of the other options.");
			return (false);
		}
		var intTempQTY=Form.QTY.value * 1;
		var intTempMIN=Form.MinQty.value * 1;
		var intTempAvail=Form.AvailableInv.value;
		var strDate=Form.ExpectedDate.value;
		var ProdType=Form.ProdType.value;
		
		if (strDate=='') 
		{
			var msg="This item is currently out of stock. \n Would you still like to add this to your shopping bag?"	
		} else 
		{
			var msg="This item is currently out of stock and will be available to ship within 7 calendar days of " + Form.ExpectedDate.value + ". \n Would you still like to add this to your order?"
		}	
		
		if (intTempQTY < intTempMIN) 
		{
			alert("The quantity you have selected is less than the minimum required for this product. Please re-enter quantity.");
			Form.QTY.select();
			return (false);
	  	}
		
		if (intTempAvail < intTempQTY) 
		{
			if (confirm(msg)) 
			{	// If one exits, set the backorderdate field value so we know the customer clicked thru
				if(Form.backorderdate){Form.backorderdate.value = strDate}
				return (true);
			} else 
			{	
				return (false);
			}
	  	}
		quantityOrdered=Form.QTY.value;
	} else 
	{
		alert('No Item number information has been received');
		return false;
	}
	// Don't submit if there are no valid ordered items
	if (quantityOrdered > 0 ) 
	{
		return (true);
	}
	else 
	{
		return (false);
	}
}

function Quickorder_Validator(Form){
	suppressexitsurvey=true;
	var quantityOrdered=0;
	if (document.cookie == '')
		{
		alert("It appears as though your cookies are not enabled. We cannot add this item to your cart. \n Please check our tech support page in the service section for more assistance.");
		return (false);
		}
}
function onChange_Validator(Form,j) {
	
	FFPrefix="ma" + j + "_";
	myQTY=eval("Form." + FFPrefix + "QTY");
	var intTempQTY=myQTY.value * 1;
	var intTempMIN=eval("Form." + FFPrefix + "MinQty.value") * 1;
	var intTempAvail=eval("Form." + FFPrefix + "AvailableInv.value");
	var strDate=eval("Form." + FFPrefix + "ExpectedDate.value");
	var ProdType=eval("Form." + FFPrefix + "ProdType.value");
	
	if (intTempQTY > 0) {
		if (strDate=='') {
			var msg="This item is currently out of stock. \n Would you still like to add this to your shopping bag?"	
		} else {
			var msg="This item is currently out of stock and will be available to ship on " + Form.ExpectedDate.value + ". \n Would you still like to add this to your shopping bag?"
		}
		
		if (intTempQTY < intTempMIN) {
			alert("The quantity " + intTempQTY + " you have selected is less than the minimum " + intTempMIN + " required for this product. Please re-enter quantity.");
			myQTY.value = 0;
			myQTY.select();
			return (false);
				}
		
		if (intTempAvail < intTempQTY) {
			if (!confirm(msg)) {
				myQTY.value = 0;
				myQTY.select();
				return (false);
			}
		}
	}
}
//-->