//function calpackage(thepackagenum,thecycle,thepriceoverride,thepricediscount)
//function calpackage(thepackagenum,thecycle,thepricediscount) 
function calpackage(thepackagenum,thecycle) 
{

switch (thepackagenum){

case "9": thepackage = 9.90; break; // GlobzHost QuickStart
case "2": thepackage = 19.90; break; // GlobzHost intermediate
case "4": thepackage = 39.90; break; // GlobzHost Advanced
case "5": thepackage = 12.99; break; // GlobzHost Special   

case "33": thepackage = 148.90; break; // WinHost QuickStart 
case "34": thepackage = 209.90; break; // WinHost Intermediate
case "35": thepackage = 376.90; break; // WinHost Advanced

case "11": thepackage = 35.95; break; // GRS1
case "12": thepackage = 65.95; break; // GRS2
case "13": thepackage = 131.95; break; // GRS3

case "130": thepackage = 450.00; break; // 5-Pages Design
case "131": thepackage = 650.00; break; // 15-Pages Design
case "133": thepackage = 950.00; break; // 35-Pages Design
case "132": thepackage = 1300.00; break; // 60-Pages Design
case "199": thepackage = 0.00; break; // Domainonly

default : thepackage = 0.00;
}

//if (thepriceoverride) { 
//var thepackage = thepriceoverride; 
//}
//if (thepricediscount) {
//var thepackage = thepackage - (thepackage * thepricediscount); 
//}

if (thecycle == 12)
{
	if (thepackagenum == 28)
	{
	PACKAGEPRICE = 698.00;
	} else {
	PACKAGEPRICE = thepackage * 12 * 1.00
	}
}

if (thecycle == 24)
{
	if (thepackagenum == 28)
	{
	PACKAGEPRICE = 1198.00;
	} else
	{
	PACKAGEPRICE = thepackage * 24 * 1.00
	}
}

if (thecycle == 36)
{
	if (thepackagenum == 28)
	{
	PACKAGEPRICE = 1198.00;
	} else
	{
	PACKAGEPRICE = thepackage * 36 * 1.00
	}
}

if (thecycle == 13)
{
	if (thepackagenum == 28)
	{
	PACKAGEPRICE = 1198.00;
	} else
	{
	PACKAGEPRICE = thepackage * 12 * 1.00
	}
}

if (thecycle == 1 || thecycle == 3)
{
PACKAGEPRICE = thepackage * thecycle
}


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


//function calonetime(thepackagenum,theqty,thecycle,thepricewaivesetup)
function calonetime(thepackagenum,theqty,thecycle)
{

if (thecycle == 12)
{
	if (thepackagenum == 0)
	{
	PACKAGEPRICE = 0.00;
	} else {
	PACKAGEPRICE = '50.00'
	} 
}
if (thecycle == 13)
{
	if (thepackagenum == 0)
	{
	PACKAGEPRICE = 0.00;
	} else {
	PACKAGEPRICE = '00.00'
	} 
}
if (thecycle == 24)
{

	PACKAGEPRICE = '0.00'

}
if (thecycle == 36)
{

	PACKAGEPRICE = '0.00'

}


var PACKAGEPRICE = Math.round(PACKAGEPRICE*100)/100;

return PACKAGEPRICE;
}

