function caldomain(thenic,theyr)
{
if (thenic == '.com' || thenic == '.net' || thenic == '.org' || thenic == '.co.uk' || thenic == '.org.uk' || thenic == '.me.uk' || thenic == '.at' || thenic == '.be' || thenic == '.de' || thenic == '.info' || thenic == '.biz' || thenic == '.ws' || thenic == '.name' || thenic == '.us' || thenic == '.jp')
{
DOMAINPRICE = theyr * 24.9
}

if (thenic == '.com.sg' || thenic == '.net.sg' || thenic == '.org.sg' || thenic == '.edu.sg')
{
DOMAINPRICE = theyr * 64.90
}

var DOMAINPRICE = Math.round(DOMAINPRICE*100)/100;
return DOMAINPRICE;
}



function ComputeTotal(myform)
{
//var thepriceoverride = myform.priceoverride.value;
//var thepricediscount = myform.pricediscount.value;
//var thepricewaivesetup = myform.pricewaivesetup.value;

if (myform.a1domainname1.value) {
var thenic = myform.a2whichnic1.value;
var theyr = myform.a3domainyr1.value;
var DOMAINPRICE1 = caldomain(thenic,theyr);
}else{
var DOMAINPRICE1 = 0;
}

var thepackage = myform.a4package1.value;
var thecycle = myform.a5cycle1.value;
//var PACKAGEPRICE1 = calpackage(thepackage,thecycle,thepriceoverride,thepricediscount);
var PACKAGEPRICE1 = calpackage(thepackage,thecycle); 
//var PACKAGEPRICE1 = calpackage(thepackage,thecycle,thepricediscount);
var theqty = myform.a6qty1.value;
//var ONETIMEPRICE1 = calonetime(thepackage,theqty,thecycle,thepricewaivesetup);
var ONETIMEPRICE1 = calonetime(thepackage,theqty,thecycle);
if (thepackage == 130) {
var thefees = myform.a8onetimefees1.value;
var ONETIMEPRICE1 = thefees * theqty;
var PACKAGEPRICE1 = 0;
}

if (thepackage == 131) {
var thefees = myform.a8onetimefees1.value;
var ONETIMEPRICE1 = thefees * theqty;
var thefees = myform.a7fees1.value;
var PACKAGEPRICE1 = thefees * thecycle * theqty;
}

var DOMAINPRICE2 = 0.0;
var PACKAGEPRICE2 = 0.0;

var DOMAINPRICE3 = 0.0;
var PACKAGEPRICE3 = 0.0;

var showtotal = DOMAINPRICE1 + DOMAINPRICE2 + DOMAINPRICE3;
myform.d1_domain_total.value = Math.round(showtotal*100)/100;
var showtotal = PACKAGEPRICE1 + PACKAGEPRICE2 + PACKAGEPRICE3;
myform.d2_package_total.value = Math.round(showtotal*100)/100;
var showtotal = DOMAINPRICE1 + PACKAGEPRICE1 + DOMAINPRICE2 + PACKAGEPRICE2 + DOMAINPRICE3 + PACKAGEPRICE3 + ONETIMEPRICE1;
myform.d3_total.value = Math.round(showtotal*100)/100;
var showtotal = ONETIMEPRICE1;
myform.d4_onetime_total.value = Math.round(showtotal*100)/100;
}




<!-- Begin
function checkFields() {

if (Form.x404_Agree.checked == false) {
alert('You must agree to the Terms and Conditions of Use by clicking the box.');
return false;
}
 
missinginfo = "";

//if (Form.username)
//{
//if (document.Form.password.value == "") {
//missinginfo += "\n     -  Your Information - Account Password";
//}
//if ((document.Form.username.value == "") || 
//(document.Form.username.value.indexOf('@') == -1) || 
//(document.Form.username.value.indexOf('.') == -1)) {
//missinginfo += "\n     -  Your Information - Account Email";
//}
//}


//if (Form.r_1.name)
//{

if (document.Form.r_1name.value == "") {
missinginfo += "\n     -  Your Information - First Name";
}

if(document.Form.f7address.value == "") {
missinginfo += "\n     -  Your Information - Address";
}

if(document.Form.f8state.value == "") {
missinginfo += "\n     -  Your Information - State";
}

if(document.Form.f9Country .value == "") {
missinginfo += "\n     -  Your Information - Country";
}

if(document.Form.rd_10postal_code.value == "") {
missinginfo += "\n     -  Your Information - Postal Code";
}

if (document.Form.re_2Email.value == "" | document.Form.re_2Email.value.indexOf('@') == -1|document.Form.re_2Email.value.indexOf('.') == -1) {
missinginfo += "\n     -  Your Information - Email address";
}
if(document.Form.rd_3Contactnumber.value == "") {
missinginfo += "\n     -  Your Information - Contact Number";
}
  
if(document.Form.confirmname.value == "") {
missinginfo += "\n     -  Confirm Your Order - Full Name";
}
//}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}  
else return true;  
}
//  End -->





var isIE=document.all?true:false;
var isNS4=document.layers?true:false;
var isNS6=navigator.userAgent.indexOf("Gecko")!=-1?true:false;

function DisplayArea(_objName,displaylines)
{
  var _obj=null;
  if(isIE||isNS6)_obj=document.getElementById(_objName);
  if(_obj)
  {
    _obj.innerHTML=displaylines;
  }
}

function disable_enable(){
//if the surfer is using IE 4 or above
if (document.all){
document.Form.b3domainyr2.disabled=!document.Form.b3domainyr2.disabled
document.Form.b1domainname2.disabled=!document.Form.b1domainname2.disabled
document.Form.b2whichnic2.disabled=!document.Form.b2whichnic2.disabled
document.Form.b4package2.disabled=!document.Form.b4package2.disabled
document.Form.b5cycle2.disabled=!document.Form.b5cycle2.disabled
}
}

function disable_enable2(){
//if the surfer is using IE 4 or above
if (document.all){
document.Form.c3domainyr3.disabled=!document.Form.c3domainyr3.disabled
document.Form.c1domainname3.disabled=!document.Form.c1domainname3.disabled
document.Form.c2whichnic3.disabled=!document.Form.c2whichnic3.disabled
document.Form.c4package3.disabled=!document.Form.c4package3.disabled
document.Form.c5cycle3.disabled=!document.Form.c5cycle3.disabled
}
}