function OnSubmitFormStandard(myform)
{
	url = "https://www.atandra.com/OrderDetailsAuth.php";
	shoppingCart = "";
	edition = myform.edition.value ;
	couponcode = "";
	//alert("I am here1");	
	couponcode = document.form_coupon.couponCode.value;
//	alert("I am here1a");	
	licenseCode = document.form_license.licenseCode.value;
	supportExpiryCount = parseFloat ("0.00");
//	alert("I am here2");	
	if (licenseCode == "") {
		alert ("Please enter your T-HUB License code");
		return false;
	}
	
	supportExpiryCount = document.form_sup_thub_std.supportExpiryCount.value;
	
	f = parseFloat ("0.00");

//	alert("I am here3");	
	if (edition =="Support-Standard") {	
		f = parseFloat ("200.00");
	} else if (edition =="Support-Professional") {
		f = parseFloat ("250.00");
	} else if (edition =="Support-Advanced") {
		f = parseFloat ("300.00");
	} else if (edition =="Support-Billable") {
		f = parseFloat ("150.00");
	}	

//Renewing before expiry
if (supportExpiryCount >= 0) {
	f = f - 25.00;
}

//renewing 90 day after expiry
if (supportExpiryCount < -90) {
	f = f + 100.00;
	//f = f + 0;
}

	//Select TO_DAYS(r.SupportExpiry) - to_days(Now()) SupportExpiryDays, r.* , c.FirstName, c.LastName, c.Email 
	//FROM `Registrations` r, Customers c 
	//WHERE r.`CustomerId` = c.`CustomerId`
	//AND r.RegCd  = '1V087D6HG864X0W8'

	//alert("I am here4");	
	discountPercent = parseFloat ("1.00");
	f = f * discountPercent ;
	//alert("I am here5" + f);	

	myform.opt1.value = "Edition;" + edition;
	myform.opt2.value = "LicenseCode;" + licenseCode;
	//alert("I am here6");	

	myform.couponCode.value = couponcode;
//	alert("I am here7");	
	myform.chargeAmount.value = f;
	//alert("I am here8");	
	myform.action = url;
    return true;
}
