function MM_package()
{ //v3.0

var p,pp,pn,total;
p = eval("'"+document.bform.P_name.options[document.bform.P_name.selectedIndex].value+"'");
pp = eval("'"+document.bform.P_per.options[document.bform.P_per.selectedIndex].value+"'");
pn = eval("'"+document.bform.P_night.options[document.bform.P_night.selectedIndex].value+"'");
total=eval(p * pp * pn);
total =total - total * 5 / 100;

if(document.bform.pack[0].checked)
{
document.bform.P_name.disabled=false;
document.bform.P_per.disabled=false;
document.bform.P_night.disabled=false;
document.bform.P_total.value = total;
}
if(document.bform.pack[1].checked)
{
document.bform.P_total.value = 0;
document.bform.P_name.disabled=true;
document.bform.P_per.disabled=true;
document.bform.P_night.disabled=true;
}


//------------------------------------------------------------------------------------------

var per,roomtype,mvalue,v,m,bfast,bammount,Htotal,Rvalue,nroom,stayday;
roomtype = eval("'"+document.bform.R_type.options[document.bform.R_type.selectedIndex].value+"'");

if (roomtype == eval("690")) document.bform.max.value = 1;
if (roomtype == eval("780")) document.bform.max.value = 2;
if (roomtype == eval("870")) document.bform.max.value = 3;
if (roomtype == eval("890")) document.bform.max.value = 2;
if (roomtype == eval("1140")) document.bform.max.value = 3;
if (roomtype == eval("1080")) document.bform.max.value = 2;
if (roomtype == eval("0"))   document.bform.max.value = 0;

per = eval("'"+document.bform.person.options[document.bform.person.selectedIndex].value+"'");
stayday= eval("'"+document.bform.stay_day.options[document.bform.stay_day.selectedIndex].value+"'");


if(roomtype == 0 || per == 0)
{
 document.bform.H_total.value = 0;
}
else
{
 mvalue = eval(document.bform.max.value);
 document.bform.roomtxt.value = Math.round(eval(per / mvalue + "+" + 0.49));
 nroom = eval(document.bform.roomtxt.value);
 Rvalue = nroom * roomtype;
 Rvalue = Rvalue * stayday;
 Rvalue = Rvalue - Rvalue * 5 / 100; 


if(document.bform.booking[0].checked)
{
document.bform.R_type.disabled=false;
document.bform.roomtxt.disabled=false;
document.bform.person.disabled=false;
document.bform.date1.disabled=false;
document.bform.ar_time.disabled=false;
document.bform.stay_day.disabled=false;
document.bform.H_total.disabled=false;
document.bform.H_total.value = eval(Rvalue);
}

if(document.bform.booking[1].checked)
{
document.bform.H_total.value = 0;
document.bform.R_type.disabled=true;
document.bform.roomtxt.disabled=true;
document.bform.person.disabled=true;
document.bform.date1.disabled=false;
document.bform.ar_time.disabled=true;
document.bform.stay_day.disabled=true;
document.bform.H_total.disabled=true;
//document.bform.B_fast[1].checked=true; -- HS: Breakfast option removed
}
}

/* HS Begin Break Fast option removed
if(document.bform.B_fast[0].checked){
document.bform.breakchoice.disabled=false;
document.bform.breakfast.disabled=false;
bammount = per * 40 * stayday;
document.bform.breakfast.value = bammount;
}

if(document.bform.B_fast[1].checked){
document.bform.breakchoice.disabled=true;
document.bform.breakfast.disabled=true;
bammount = per * 0;
document.bform.breakfast.value = bammount;
}
HS End
*/

//---------------------------------------------------------------------------------------

//City tour section begins
var citypick2;
var cityp,citypick,y,total12;

// No of People
cityp = eval("'"+document.bform.city_p.options[document.bform.city_p.selectedIndex].value+"'");

//Choice of AC or Standard Car with Amount
citypick = eval("'"+document.bform.city_tour.options[document.bform.city_tour.selectedIndex].value+"'");

if(document.bform.citytour[0].checked)
{
	//Enable controls
	document.bform.city_tour.disabled=false;
	document.bform.city_p.disabled=false;
	document.bform.C_total.disabled=false;
	
	var iTotal = new Number();
	iTotal = 0;
	
	//Calculate Totals
	if((cityp%3)==0)
	{
		
		iTotal = ((cityp/3)* citypick);
		
	}
	else
	{
		iTotal = ((((cityp-(cityp%3))/3)+1)*citypick)	
	}
	
	document.bform.C_total.value = iTotal;
}
else
{
	//Diable Controls
	document.bform.city_tour.disabled=true;
	document.bform.city_p.disabled=true;
	document.bform.C_total.disabled=true;
	document.bform.city_tour.selectedIndex=0;
	document.bform.city_p.selectedIndex=0;
	document.bform.C_total.value=0;

}

//City tour section Ends

//---------------------------------------------------------------------------------------------


// Airport Pickup Section Start
//Disable Controls and Enable Controls
if(document.bform.air[0].checked==true)
{
	//Book the pickup 
	//Enable the controls
	document.bform.air_person.disabled=false;
	document.bform.air_pickup.disabled=false;
	document.bform.A_total.disabled=false;
	//Calculate and Display Total

	//If Room booking is selected then automatically pickup the no of persons
	if(document.bform.booking[0].checked)
	{
		document.bform.air_person.selectedIndex = document.bform.person.selectedIndex;
	}


	var airp,airpick,x,total1;
	airp = eval("'"+document.bform.air_person.options[document.bform.air_person.selectedIndex].value+"'"); // No of people
	airpick = eval("'"+document.bform.air_pickup.options[document.bform.air_pickup.selectedIndex].value+"'"); //Type of Car and Cost
	
	
	// -------- Airport Pickup
	var iTotalCharge = new Number();
	var iModVal = new Number();
	
	iModVal = airp%3;
	if(iModVal==0)
	{
		iTotalCharge = (airp/3)*airpick;
	}
	else
	{
		iTotalCharge = (((airp - iModVal) / 3)+1)*airpick;
	}
	
	document.bform.A_total.value = iTotalCharge;
	
		
}

if(document.bform.air[1].checked==true)
{
	//Pickup not required
	document.bform.A_total.value = 0;
	document.bform.air_person.disabled=true;
	document.bform.air_pickup.disabled=true;
	document.bform.A_total.disabled=true;
	document.bform.air_person.selectedIndex=0;
	document.bform.air_pickup.selectedIndex=0;

}

// Airport Pickup Section Ends



//----------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------

// HS BEGIN: BFast Option removed
//document.bform.NetTotal.value = eval(document.bform.H_total.value + "+" + document.bform.P_total.value + "+" + document.bform.A_total.value + "+" + document.bform.C_total.value + "+" + document.bform.breakfast.value);
document.bform.NetTotal.value = eval(document.bform.H_total.value + "+" + document.bform.P_total.value + "+" + document.bform.A_total.value + "+" + document.bform.C_total.value);
//// HS END: BFast Option removed
//----------------------------------------------------------------------------------------
}
