function Form_Validator(theForm) {
 	
	if (theForm.quantity.value == "" || theForm.quantity.value == "0")	{
		alert("You must have a 'Quantity' to add to the cart.");
		theForm.quantity.focus();
		return (false);
	}
	if (theForm.quantity.value > 250)	{
		alert("You must contact us! Before adding 250+ 'Quantity' is added to the cart.");
		theForm.quantity.focus();
	}
	if (theForm.state.value == "" )	{
		alert("You must select a 'Phone Condition' to add to the cart.");
		theForm.state.focus();
		return (false);
	}
	
}

function checkConfrim(theForm){
	
 	//theForm.imei.style.backgroundColor = "";
 	//theForm.imei.style.border = "1px solid #000";
 	
	// if (theForm.imei.value == "")	{
// 		alert("You must enter an 'IMEI number' to complete a trade.");
// 		theForm.imei.focus();
// 	 	theForm.imei.style.backgroundColor = "#4bacdf";
// 	 	theForm.imei.style.border = "1px solid #34386f";
// 		return (false);
// 	}
// 	if (theForm.imei.value.length <= 14)	{
// 		alert("An 'IMEI number' is 15 digits.");
// 		theForm.imei.focus();
// 	 	theForm.imei.style.backgroundColor = "#4bacdf";
// 	 	theForm.imei.style.border = "1px solid #34386f";
// 		return (false);
// 	}

	if (!theForm.agree.checked)	{
		alert("You must agree to the 'Terms & Conditions' to complete a trade.");
		theForm.agree.focus();
		return (false);
	}
	
}
