var vMonthly
var vSetup
var nextAmt
var amt = 0;

var ProductID = 0;

var vHosting = "";
var vshopping = "";
var vPayment = "";


var vHosting_Plan_Description = "";
var vShopping_Cart_Plan_Description = "";
var vBilling_Cycle_Description = "";
var vTerms = "";

// Hosting Plan Descriptions
var Bronze_Plan_Description = "Bronze Plan - 500MB Web Space, 5GB Bandwidth";
var Silver_Plan_Description = "Silver Plan - 800MB Web Space, 10GB Bandwidth";
var Gold_Plan_Description = "Gold Plan - 1200MB Web Space, 20GB Bandwidth";
var Platinum_Plan_Description = "Platinum Plan - 1600MB Web Space, 40GB Bandwidth";
var Reseller1_Plan_Description = "Reseller 1 Plan - 500MB Web Space, 10GB Bandwidth, Unlimited Domains";
var Reseller2_Plan_Description = "Reseller 2 Plan - 1000MB Web Space, 15GB Bandwidth, Unlimited Domains";
var Reseller3_Plan_Description = "Reseller 3 Plan - 2000MB Web Space, 30GB Bandwidth, Unlimited Domains";
var Dedicated1_Plan_Description = "Pentium IV 2.8GHz - 80GB Drive, 1000GB Bandwidth, 1GB DDR Memory";
var Dedicated2_Plan_Description = "Pentium - IV 3.0GHz - 60GB Drive w/8MB Cache, 1000GB Bandwidth, 512B DDR Memory";
var Dedicated3_Plan_Description = "Pentium IV 2.4GHz - 80GB Primary Drive, 60GB Secondary Drive, 1000GB Bandwidth, 1GB DDR Memory";
var Dedicated4_Plan_Description = "Dual Pentium - IV 2.8GHz- 73GB SCSI Drive, 1000GB Bandwidth, 1GB DDR Memory";

// Payment Cycle Descriptions
var Payment_Cycle_1  = "Monthly Billing Cycle";
var Payment_Cycle_3  = "Quarterly Billing Cycle (includes 3 months Free of hosting)";
var Payment_Cycle_6  = "Semi-Yearly Billing Cycle (includes 10% discount and 3 months Free of hosting)";
var Payment_Cycle_12 = "Yearly Billing Cycle (includes 15% discount and 3 months Free of hosting)";

// Hosting Plans
var Host1 = "Bronze";
var Host2 = "Silver";
var Host3 = "Gold";
var Host4 = "Platinum";
var Host5 = "Reseller1";
var Host6 = "Reseller2";
var Host7 = "Reseller3";
var Host8 = "Dedicated1";   // Pentium IV - 2.8GHz
var Host9 = "Dedicated2";   // Pentium IV - 3.0GHz
var Host10 = "Dedicated3";  // Pentium IV - 2.4GHz
var Host11 = "Dedicated4";  // Dual Pentium IV - 2.8GHz



// Shopping Cart Descriptions
var Cart_No_Description = "No, I do not need a shopping cart added to my plan.";
var Cart_Yes_Description = "Yes, I need a shopping cart added to my plan, however, I will use a third party.";
var Cart_Deluxe_Description = "Yes, I need a shopping cart added to my plan, however, I would like to use DataLinkHosting.com's shopping cart deluxe.";
var Cart_NA_Description = "Does Not Apply.";

// Shopping Cart Plans
var Cart1 = "No";
var Cart2 = "Yes";
var Cart3 = "Deluxe";
var Cart4 = "NA";


// Payment Cycles
var Payment1 = "1";
var Payment2 = "3";
var Payment3 = "6";
var Payment4 = "12";

//Prices
var Bronze_Fee = 9.95;
var Silver_Fee = 19.95;
var Gold_Fee = 39.95;
var Platinum_Fee = 59.95;
var Reseller1_Fee = 24.95;
var Reseller2_Fee = 39.95;
var Reseller3_Fee = 59.95;
var Dedicated1_Fee = 229.95;
var Dedicated2_Fee = 259.95;
var Dedicated3_Fee = 279.95;
var Dedicated4_Fee = 299.95;



//***********************************************
function Validate_Step1(){

var msg="";
var selection="";


// Check for a valid Hosting Plan
if ((document.OrderForm.Hosting_Plan[0].checked == 0) &&
    (document.OrderForm.Hosting_Plan[1].checked == 0) &&
    (document.OrderForm.Hosting_Plan[2].checked == 0) &&
    (document.OrderForm.Hosting_Plan[3].checked == 0) &&
    (document.OrderForm.Hosting_Plan[4].checked == 0) &&
    (document.OrderForm.Hosting_Plan[5].checked == 0) &&
    (document.OrderForm.Hosting_Plan[6].checked == 0) &&
    (document.OrderForm.Hosting_Plan[7].checked == 0) &&
    (document.OrderForm.Hosting_Plan[8].checked == 0) &&
    (document.OrderForm.Hosting_Plan[9].checked == 0) &&
    (document.OrderForm.Hosting_Plan[10].checked == 0))
	{
	msg = msg + "* Please select a Hosting Plan in STEP 1\n";
        }

if (msg != '')
 {
 alert(msg);
 return(false);
 }


else
 {

 if (document.OrderForm.Hosting_Plan[0].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Bronze_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host1, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[1].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Silver_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host2, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[2].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Gold_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host3, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[3].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Platinum_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host4, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[4].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Reseller1_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host5, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[5].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Reseller2_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host6, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[6].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Reseller3_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host7, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[7].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Dedicated1_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host8, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[8].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Dedicated2_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host9, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[9].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Dedicated3_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host10, null, "/");
    }

else if (document.OrderForm.Hosting_Plan[10].checked == 1)
    {
    SetCookie("Hosting_Plan_Description", Dedicated4_Plan_Description, null, "/");
    SetCookie("Hosting_Plan", Host11, null, "/");
    }


// Check to see if a Standard Hosting Plan was choosen, if so return true, if not skip shopping cart step
if ((document.OrderForm.Hosting_Plan[4].checked == 0) &&
    (document.OrderForm.Hosting_Plan[5].checked == 0) &&
    (document.OrderForm.Hosting_Plan[6].checked == 0) &&
    (document.OrderForm.Hosting_Plan[7].checked == 0) &&
    (document.OrderForm.Hosting_Plan[8].checked == 0) &&
    (document.OrderForm.Hosting_Plan[9].checked == 0) &&
    (document.OrderForm.Hosting_Plan[10].checked == 0))
	{
	return(true);
      }

else
	{
      //Set Shopping Cart Descriptions is this step (Step 1), because Step 2 is being skipped as it does not apply
      SetCookie("Shopping_Cart_Plan_Description", Cart_NA_Description, null, "/");
      SetCookie("Shopping_Cart_Plan", Cart4, null, "/");
	location = "orderform_step3.shtml";
	return(false);
      }

 }
}



//***********************************************
function Validate_Step2(){

var msg="";
var selection="";
// Check for a valid Shopping Cart Plan
if ((document.OrderForm.Shopping_Cart_Plan[0].checked == 0) &&
    (document.OrderForm.Shopping_Cart_Plan[1].checked == 0) &&
    (document.OrderForm.Shopping_Cart_Plan[2].checked == 0))
	{
	msg = msg + "* Please select a Shopping Cart Plan in STEP 2\n";
        }

if (msg != '')
 {
 alert(msg);
 return(false);
 }

else
 {

 if (document.OrderForm.Shopping_Cart_Plan[0].checked == 1)
    {
    SetCookie("Shopping_Cart_Plan_Description", Cart_No_Description, null, "/");
    SetCookie("Shopping_Cart_Plan", Cart1, null, "/");
    }

else if (document.OrderForm.Shopping_Cart_Plan[1].checked == 1)
    {
    SetCookie("Shopping_Cart_Plan_Description", Cart_Yes_Description, null, "/");
    SetCookie("Shopping_Cart_Plan", Cart2, null, "/");
    }

else if (document.OrderForm.Shopping_Cart_Plan[2].checked == 1)
    {
    SetCookie("Shopping_Cart_Plan_Description", Cart_Deluxe_Description, null, "/");
    SetCookie("Shopping_Cart_Plan", Cart3, null, "/");
    }


// Check to see if a Standard Hosting Plan was choosen, if not, so set Shopping cart to NA
vHosting = GetCookie("Hosting_Plan");
if ((vHosting != 'Bronze') && (vHosting != 'Silver') && (vHosting != 'Gold') && (vHosting != 'Platinum'))
	{
        //Set Shopping Cart Descriptions to NA - Does Not Apply
        SetCookie("Shopping_Cart_Plan_Description", Cart_NA_Description, null, "/");
        SetCookie("Shopping_Cart_Plan", Cart4, null, "/");
        }

 
 return(true);
 }
}



//***********************************************
function Validate_Step3(){

var msg="";
var selection="";
// Check for a valid Billing Cycle Plan
if ((document.OrderForm.Payment_Cycle[0].checked == 0) &&
    (document.OrderForm.Payment_Cycle[1].checked == 0) &&
    (document.OrderForm.Payment_Cycle[2].checked == 0) &&
    (document.OrderForm.Payment_Cycle[3].checked == 0))
	{
	msg = msg + "* Please select a Payment Cycle in STEP 3\n";
        }

if (msg != '')
 {
 alert(msg);
 return(false);
 }

else
 {

 if (document.OrderForm.Payment_Cycle[0].checked == 1)
    {
    SetCookie("Payment_Cycle_Description", Payment_Cycle_1, null, "/");
    SetCookie("Payment_Cycle", Payment1, null, "/");
    }

else  if (document.OrderForm.Payment_Cycle[1].checked == 1)
    {
    SetCookie("Payment_Cycle_Description", Payment_Cycle_3, null, "/");
    SetCookie("Payment_Cycle", Payment2, null, "/");
    }

else if (document.OrderForm.Payment_Cycle[2].checked == 1)
    {
    SetCookie("Payment_Cycle_Description", Payment_Cycle_6, null, "/");
    SetCookie("Payment_Cycle", Payment3, null, "/");
    }

else if (document.OrderForm.Payment_Cycle[3].checked == 1)
    {
    SetCookie("Payment_Cycle_Description", Payment_Cycle_12, null, "/");
    SetCookie("Payment_Cycle", Payment4, null, "/");
    }
 
 return(true);
 }
}



//***********************************************
function Validate_Step4(){

var msg="";
var selection="";
// Check for Terms Acceptance
if (document.OrderForm.terms.checked == false)
	{
	msg = msg + "* You must agree to our Web Hosting Terms and Agreement in STEP 4\n";
        }

if (msg != '')
 {
 alert(msg);
 return(false);
 }


else
 {
 return(true);
 }
}


//Retrieve Cookies
function get_Hosting_Plan_Description() {
var temp = ""; 

temp = GetCookie("Hosting_Plan_Description");
return temp;
}


function get_Shopping_Cart_Plan_Description() {
var temp = ""; 

temp = GetCookie("Shopping_Cart_Plan_Description");
return temp;
}


function get_Payment_Cycle_Description() {
var temp = ""; 

temp = GetCookie("Payment_Cycle_Description");
return temp;
}




//---------------------------------------------------------------------||
// FUNCTION:    SetCookie                                              ||
// PARAMETERS:  name, value, expiration date, path, domain, security   ||
// RETURNS:     Null                                                   ||
// PURPOSE:     Stores a cookie in the users browser                   ||
//---------------------------------------------------------------------||
function SetCookie (name,value,expires,path,domain,secure) {
   document.cookie = name + "=" + escape (value) +
                     ((expires) ? "; expires=" + expires.toGMTString() : "") +
                     ((path) ? "; path=" + path : "") +
                     ((domain) ? "; domain=" + domain : "") +
                     ((secure) ? "; secure" : "");
}




//---------------------------------------------------------------------||
// FUNCTION:    getCookieVal                                           ||
// PARAMETERS:  offset                                                 ||
// RETURNS:     URL unescaped Cookie Value                             ||
// PURPOSE:     Get a specific value from a cookie                     ||
//---------------------------------------------------------------------||
function getCookieVal (offset) {
   var endstr = document.cookie.indexOf (";", offset);

   if ( endstr == -1 )
      endstr = document.cookie.length;
   return(unescape(document.cookie.substring(offset, endstr)));
}


//---------------------------------------------------------------------||
// FUNCTION:    GetCookie                                              ||
// PARAMETERS:  Name                                                   ||
// RETURNS:     Value in Cookie                                        ||
// PURPOSE:     Retrieves cookie from users browser                    ||
//---------------------------------------------------------------------||
function GetCookie (name) {
   var arg = name + "=";
   var alen = arg.length;
   var clen = document.cookie.length;
   var i = 0;

   while ( i < clen ) {
      var j = i + alen;
      if ( document.cookie.substring(i, j) == arg ) return(getCookieVal (j));
      i = document.cookie.indexOf(" ", i) + 1;
      if ( i == 0 ) break;
   }

   return(null);
}





//Checkout
function CheckOut() {

vHosting = GetCookie("Hosting_Plan");
vShopping = GetCookie("Shopping_Cart_Plan");
vPayment = GetCookie("Payment_Cycle");

//Bronze Accounts ********************
if ((vHosting=="Bronze") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="1"))
 {
  vMonthly=Bronze_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 58;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Bronze Plan';
 document.PayPalForm.item_number.value='Bronze_3_NoCart';
 } 


if ((vHosting=="Bronze") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="3"))
 {
  vMonthly=Bronze_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 15;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Bronze Plan';
 document.PayPalForm.item_number.value='Bronze_3_NoCart';
 } 
 
 
 if ((vHosting=="Bronze") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="6"))
 {
  vMonthly=Bronze_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 16;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Bronze Plan (10% Discount)';
 document.PayPalForm.item_number.value='Bronze_6_NoCart';
 } 
 
 
  if ((vHosting=="Bronze") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="12"))
 {
  vMonthly=Bronze_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 17;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Bronze Plan (15% Discount)';
 document.PayPalForm.item_number.value='Bronze_12_NoCart';
 }


if ((vHosting=="Bronze") && (vShopping=="Deluxe") && (vPayment=="1"))
 {
  vMonthly=Bronze_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 59;

 //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Bronze Plan with shopping cart maintenance';
 document.PayPalForm.item_number.value='Bronze_3_YesCart';
 } 
 
 
 if ((vHosting=="Bronze") && (vShopping=="Deluxe") && (vPayment=="3"))
 {
  vMonthly=Bronze_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 40;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Bronze Plan with shopping cart maintenance';
 document.PayPalForm.item_number.value='Bronze_3_YesCart';
 } 
 
 
 if ((vHosting=="Bronze") && (vShopping=="Deluxe") && (vPayment=="6"))
 {
  vMonthly=Bronze_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 19;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Bronze Plan with shopping cart maintenance (10% Discount)';
 document.PayPalForm.item_number.value='Bronze_6_YesCart';
 } 
 
 
  if ((vHosting=="Bronze") && (vShopping=="Deluxe") && (vPayment=="12"))
 {
  vMonthly=Bronze_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 20;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Bronze Plan (with shopping cart maintenance)';
 document.PayPalForm.item_number.value='Bronze_12_YesCart';
 }
 
 
//Silver Accounts ********************
if ((vHosting=="Silver") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="1"))
 {
  vMonthly=Silver_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 60;

 //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Silver Plan';
 document.PayPalForm.item_number.value='Silver_3_NoCart';
 } 


if ((vHosting=="Silver") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="3"))
 {
  vMonthly=Silver_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 21;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Silver Plan';
 document.PayPalForm.item_number.value='Silver_3_NoCart';
 } 
 
 
 if ((vHosting=="Silver") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="6"))
 {
  vMonthly=Silver_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 22;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Silver Plan (10% Discount)';
 document.PayPalForm.item_number.value='Silver_6_NoCart';
 } 
 
 
  if ((vHosting=="Silver") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="12"))
 {
  vMonthly=Silver_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 23;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Silver Plan (15% Discount)';
 document.PayPalForm.item_number.value='Silver_12_NoCart';
 }

 

if ((vHosting=="Silver") && (vShopping=="Deluxe") && (vPayment=="1"))
 {
  vMonthly=Silver_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 61;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Silver Plan with shopping cart maintenance';
 document.PayPalForm.item_number.value='Silver_3_YesCart';
 } 
 

 if ((vHosting=="Silver") && (vShopping=="Deluxe") && (vPayment=="3"))
 {
  vMonthly=Silver_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 24;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Silver Plan with shopping cart maintenance';
 document.PayPalForm.item_number.value='Silver_3_YesCart';
 } 
 
 
 if ((vHosting=="Silver") && (vShopping=="Deluxe") && (vPayment=="6"))
 {
  vMonthly=Silver_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 25;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Silver Plan with shopping cart maintenance (10% Discount)';
 document.PayPalForm.item_number.value='Silver_6_YesCart';
 } 
 
 
  if ((vHosting=="Silver") && (vShopping=="Deluxe") && (vPayment=="12"))
 {
  vMonthly=Silver_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 26;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Silver Plan with shopping cart maintenance (15% Discount)';
 document.PayPalForm.item_number.value='Silver_12_YesCart';
 }
 
 
//Gold Accounts ********************
if ((vHosting=="Gold") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="1"))
 {
  vMonthly=Gold_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 62;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Gold Plan';
 document.PayPalForm.item_number.value='Gold_3_NoCart';
 } 


if ((vHosting=="Gold") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="3"))
 {
  vMonthly=Gold_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 27;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Gold Plan';
 document.PayPalForm.item_number.value='Gold_3_NoCart';
 } 
 
 
 if ((vHosting=="Gold") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="6"))
 {
  vMonthly=Gold_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 28;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Gold Plan (10% Discount)';
 document.PayPalForm.item_number.value='Gold_6_NoCart';
 } 
 
 
  if ((vHosting=="Gold") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="12"))
 {
  vMonthly=Gold_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 29;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Gold Plan (15% Discount)';
 document.PayPalForm.item_number.value='Gold_12_NoCart';
 }
 

if ((vHosting=="Gold") && (vShopping=="Deluxe") && (vPayment=="1"))
 {
  vMonthly=Gold_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 63;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Gold Plan with shopping cart maintenance';
 document.PayPalForm.item_number.value='Gold_3_YesCart';
 } 

 
 if ((vHosting=="Gold") && (vShopping=="Deluxe") && (vPayment=="3"))
 {
  vMonthly=Gold_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 30;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Gold Plan with shopping cart maintenance';
 document.PayPalForm.item_number.value='Gold_3_YesCart';
 } 
 
 
 if ((vHosting=="Gold") && (vShopping=="Deluxe") && (vPayment=="6"))
 {
  vMonthly=Gold_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 31;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Gold Plan with shopping cart maintenance (10% Discount)';
 document.PayPalForm.item_number.value='Gold_6_YesCart';
 } 
 
 
  if ((vHosting=="Gold") && (vShopping=="Deluxe") && (vPayment=="12"))
 {
  vMonthly=Gold_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 32;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Gold Plan with shopping cart maintenance (15% Discount)';
 document.PayPalForm.item_number.value='Gold_12_YesCart';
 }


//Platinum Accounts ********************
if ((vHosting=="Platinum") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="1"))
 {
  vMonthly=Platinum_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 64;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Platinum Plan';
 document.PayPalForm.item_number.value='Platinum_3_NoCart';
 } 


if ((vHosting=="Platinum") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="3"))
 {
  vMonthly=Platinum_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 33;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Platinum Plan';
 document.PayPalForm.item_number.value='Platinum_3_NoCart';
 } 
 
 
 if ((vHosting=="Platinum") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="6"))
 {
  vMonthly=Platinum_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 34;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Platinum Plan (10% Discount)';
 document.PayPalForm.item_number.value='Platinum_6_NoCart';
 } 
 
 
  if ((vHosting=="Platinum") && ((vShopping=="No") || (vShopping=="Yes")) && (vPayment=="12"))
 {
  vMonthly=Platinum_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 36;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Platinum Plan (15% Discount)';
 document.PayPalForm.item_number.value='Platinum_12_NoCart';
 }
 

if ((vHosting=="Platinum") && (vShopping=="Deluxe") && (vPayment=="1"))
 {
  vMonthly=Platinum_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 65;

 //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Platinum Plan with shopping cart maintenance';
 document.PayPalForm.item_number.value='Platinum_3_YesCart';
 } 
 
 if ((vHosting=="Platinum") && (vShopping=="Deluxe") && (vPayment=="3"))
 {
  vMonthly=Platinum_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 37;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Platinum Plan with shopping cart maintenance';
 document.PayPalForm.item_number.value='Platinum_3_YesCart';
 } 
 
 
 if ((vHosting=="Platinum") && (vShopping=="Deluxe") && (vPayment=="6"))
 {
  vMonthly=Platinum_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 38;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Platinum Plan with shopping cart maintenance (10% Discount)';
 document.PayPalForm.item_number.value='Platinum_6_YesCart';
 } 
 
 
  if ((vHosting=="Platinum") && (vShopping=="Deluxe") && (vPayment=="12"))
 {
  vMonthly=Platinum_Fee; vSetup=0.00; vShop=19.95;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 39;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Platinum Plan with shopping cart maintenance (15% Discount)';
 document.PayPalForm.item_number.value='Platinum_12_YesCart';
 }



//Reseller1 Accounts ********************
if ((vHosting=="Reseller1") && (vPayment=="1"))
 {
  vMonthly=Reseller1_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 77;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 1 Plan';
 document.PayPalForm.item_number.value='Reseller1_1';
 } 


if ((vHosting=="Reseller1") && (vPayment=="3"))
 {
  vMonthly=Reseller1_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 78;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 1 Plan';
 document.PayPalForm.item_number.value='Reseller1_3';
 } 
 
 
 if ((vHosting=="Reseller1") && (vPayment=="6"))
 {
  vMonthly=Reseller1_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 79;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 1 Plan (10% Discount)';
 document.PayPalForm.item_number.value='Reseller1_6';
 } 
 
 
  if ((vHosting=="Reseller1") && (vPayment=="12"))
 {
  vMonthly=Reseller1_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 80;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 1 Plan (15% Discount)';
 document.PayPalForm.item_number.value='Reseller1_12';
 }



//Reseller2 Accounts ********************
if ((vHosting=="Reseller2") && (vPayment=="1"))
 {
  vMonthly=Reseller2_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 81;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 2 Plan';
 document.PayPalForm.item_number.value='Reseller2_1';
 } 


if ((vHosting=="Reseller2") && (vPayment=="3"))
 {
  vMonthly=Reseller2_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 82;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 2 Plan';
 document.PayPalForm.item_number.value='Reseller2_3';
 } 
 
 
 if ((vHosting=="Reseller2") && (vPayment=="6"))
 {
  vMonthly=Reseller2_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 83;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 2 Plan (10% Discount)';
 document.PayPalForm.item_number.value='Reseller2_6';
 } 
 
 
  if ((vHosting=="Reseller2") && (vPayment=="12"))
 {
  vMonthly=Reseller2_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 84;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 2 Plan (15% Discount)';
 document.PayPalForm.item_number.value='Reseller2_12';
 }
 


//Reseller3 Accounts ********************
if ((vHosting=="Reseller3") && (vPayment=="1"))
 {
  vMonthly=Reseller3_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 85;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 3 Plan';
 document.PayPalForm.item_number.value='Reseller3_1';
 } 


if ((vHosting=="Reseller3") && (vPayment=="3"))
 {
  vMonthly=Reseller3_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*3+vSetup+vShop*3);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*3+vShop*3); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 88;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=6;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=3;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 3 Plan';
 document.PayPalForm.item_number.value='Reseller3_3';
 } 
 
 
 if ((vHosting=="Reseller3") && (vPayment=="6"))
 {
  vMonthly=Reseller3_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*6+vSetup+vShop*6);
  amt=decimal(amt - amt * 0.10);
  nextAmt=decimal(vMonthly*6+vShop*6); 
  nextAmt=decimal(nextAmt - nextAmt * 0.10);
    
 //This is used for 2checkout.com's product database 
  ProductID = 89;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=9;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=6;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 3 Plan (10% Discount)';
 document.PayPalForm.item_number.value='Reseller3_6';
 } 
 
 
  if ((vHosting=="Reseller3") && (vPayment=="12"))
 {
  vMonthly=Reseller3_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*12+vSetup+vShop*12);
  amt=decimal(amt - amt * 0.15);
  nextAmt=decimal(vMonthly*12+vShop*12); 
  nextAmt=decimal(nextAmt - nextAmt * 0.15);
    
 //This is used for 2checkout.com's product database 
  ProductID = 90;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=15;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=12;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Reseller 3 Plan (15% Discount)';
 document.PayPalForm.item_number.value='Reseller3_12';
 }
 


//Dedicated1 Accounts ********************
if (vHosting=="Dedicated1")
 {
  vMonthly=Dedicated1_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 95;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Pentium IV - 2.8GHz Plan';
 document.PayPalForm.item_number.value='Dedicated1_1';
 } 


//Dedicated2 Accounts ********************
if (vHosting=="Dedicated2")
 {
  vMonthly=Dedicated2_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 96;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Pentium IV - 3.0GHz Plan';
 document.PayPalForm.item_number.value='Dedicated2_1';
 } 


//Dedicated3 Accounts ********************
if (vHosting=="Dedicated3")
 {
  vMonthly=Dedicated3_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 97;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Pentium IV - 2.8GHz Plan';
 document.PayPalForm.item_number.value='Dedicated3_1';
 } 


//Dedicated4 Accounts ********************
if (vHosting=="Dedicated4")
 {
  vMonthly=Dedicated4_Fee; vSetup=0.00; vShop=0.00;
  amt=decimal(vMonthly*1+vSetup+vShop*1);
  amt=decimal(amt - amt * 0.00);
  nextAmt=decimal(vMonthly*1+vShop*1); 
  nextAmt=decimal(nextAmt - nextAmt * 0.00);
    
 //This is used for 2checkout.com's product database 
  ProductID = 98;

  //This is used for PayPal subscriptions
 document.PayPalForm.a1.value=amt;
 document.PayPalForm.p1.value=1;
 document.PayPalForm.t1.value='M';
 document.PayPalForm.a3.value=amt;
 document.PayPalForm.p3.value=1;
 document.PayPalForm.t3.value='M';
 document.PayPalForm.item_name.value='Web Hosting - Dual Pentium IV - 2.8GHz Plan';
 document.PayPalForm.item_number.value='Dedicated4_1';
 } 



 

//2CheckOut.com
document.TwoCheckOutForm.product_id.value=ProductID

//Display amount in Total Box
if (amt == 0)
 { document.Total_Box.total_due.value = '$0.00'; }
else
 { document.Total_Box.total_due.value = '$' + amt; }
}



function CheckExpress() {

if (document.Total_Box.total_due.value == '$0.00')
 {
 alert('                                 We\'re Sorry!\n  Your browser encountered a problem during Checkout.\nPlease use our Express Checkout to continue with your order.'); 
 return (false);
 }

else
 return (true);

}




//*****************************************

function PayPal(){

 theForm=document.PayPalForm;

 a="https://www.paypal.com/xclick/business=sales%40datalinkhosting.com";
 b="&item_name="+theForm.memo.value;
 c="&item_number=payment.htm_email_"+theForm.email_address.value+"_amt_"+theForm.chargetotal.value;
 d="&amount="+theForm.chargetotal.value
 e="&return=http://www.datalinkhosting.com/webhosting_account_details.shtml";

 location=a+b+c+d+e;
}



//************************************************

function decimal(anynum) {

		anynum = "" + eval(anynum)

                intnum=0

                if (anynum >= 1) {

        	         intnum = parseInt(anynum)

                }    

		intstr = ""+intnum

		decnum = Math.abs(parseFloat(anynum)-intnum) //isolate decimal portion

		decnum = decnum * 100 // multiply decimal portion by 100.

		decstr = "" + Math.abs(Math.round(decnum))

		while (decstr.length < 2) {

			decstr="0"+decstr

		}

		retval = intstr + "." + decstr

		if (intnum < 0) {

			retval=retval.substring(1,retval.length)

			retval="("+retval+")"        

		}       

		return retval

	}

