﻿// JScript File


var total1;
var total2;
var total3;
var xp;

function rbd1check ()
{
if(document.getElementById ("rbd1").checked==true)
{
if(document.getElementById ("rbd2").checked==false)
{
    var optionval2=2650;
   document.getElementById("lblelas2").innerText=optionval2;
   document.getElementById("lbltotal").innerText=optionval2;
   }
if(document.getElementById ("rbd3").checked==false)
{
    var optionval3=2000;
   document.getElementById("lblelas3").innerText=optionval3;
   document.getElementById("lbltotal").innerText=optionval3;
}
if(document.getElementById ("rbd4").checked==false)
{
    var optionval3=2400;
   document.getElementById("lblelas4").innerText=optionval3;
   document.getElementById("lbltotal").innerText=optionval3;
}
if(document.getElementById ("rbd5").checked==false)
{
    var optionval3=2000;
   document.getElementById("lblelas5").innerText=optionval3;
   document.getElementById("lbltotal").innerText=optionval3;
}
var x1 = document.getElementById("ddl1").selectedIndex;

var optionval1=(document.getElementById("ddl1").options[x1].value);//alert(optionval3);
var optiontext1=document.getElementById("ddl1").options[document.getElementById("ddl1").selectedIndex].text;

document.getElementById("lbl1").innerText=optionval1;
document.getElementById("lbltotal").innerText=optionval1;

document.getElementById("Hidden1").value="ELAS 1:03rd July 11 - 30th July 11|General English With Adventure|"+optiontext1+"|"+optionval1+"";

}
if(document.getElementById ("rbd1").checked==false)
{
   var optionval1=0;
   document.getElementById("lbl1").innerText=optionval1;
   document.getElementById("lbltotal").innerText=optionval1;
}
}

//function rbd1Select()
//{
//    if(document.getElementById ("rbd1").checked==true)
//    {       
//    if(document.getElementById ("rbd2").checked==false)
//    {
//     document.getElementById("lbltotal").innerText=document.getElementById("ddl1").options[document.getElementById("ddl1").selectedIndex].text;
////        var optionval2=0;
////        document.getElementById("lblelas2").innerText=optionval2;
////        document.getElementById("lbltotal").innerText=optionval2;
//   } 
////    var x1 = document.getElementById("ddl1").selectedIndex;
////    var optionval1=(document.getElementById("ddl1").options[x1].value);//alert(optionval3);
////    var optiontext1=document.getElementById("ddl1").options[document.getElementById("ddl1").selectedIndex].text;
////  
////    document.getElementById("lbl1").innerText=optionval1; 
////    document.getElementById("lbltotal").innerText=optionval1;
////    document.getElementById("Hidden1").value="ELAS 1: 03rd July 11 - 30th July 11|General English With Adventure|"+optiontext1+"|"+optionval1+"";


////mera code
// //   document.getElementById("lbltotal").innerText=document.getElementById("ddl1").options[document.getElementById("ddl1").selectedIndex].text;
//        
//    }
//}



//function rdb1select()
//{
//    if(document.getElementById ("rbd1").checked==true)
//    {        
//        document.getElementById("lbltotal").innerText= document.getElementById("lblelas1").innerText;
//       // document.getElementById("Hidden1").value="ELAS 2: 03rd July 11 - 30th July 11|General English With accommodation only|"+optiontext2+"|"+optionval2+"";

//    }
//}

//function rdb2select()
//{
//    if(document.getElementById ("rbd2").checked==true)
//    {        
//        document.getElementById("lbltotal").innerText= document.getElementById("lblelas2").innerText;
//       // document.getElementById("Hidden1").value="ELAS 2: 03rd July 11 - 30th July 11|General English With accommodation only|"+optiontext2+"|"+optionval2+"";

//    }
//}

//function rdb3select()
//{
//    if(document.getElementById ("rbd3").checked==true)
//    {
//        
//        document.getElementById("lbltotal").innerText= document.getElementById("lblelas3").innerText;
//    }
//}
//function rdb4select()
//{
//    if(document.getElementById ("rbd4").checked==true)
//    {        
//        document.getElementById("lbltotal").innerText= document.getElementById("lblelas4").innerText;
//    }
//}
//function rdb5select()
//{
//    if(document.getElementById ("rbd5").checked==true)
//    {        
//        document.getElementById("lbltotal").innerText= document.getElementById("lblelas5").innerText;
//    }
//}



function rbd2check ()
{
if(document.getElementById ("rbd2").checked==true)
{
if(document.getElementById ("rbd1").checked==false)
{
   var optionval1=0;
   document.getElementById("lbl1").innerText=optionval1;
   document.getElementById("lbltotal").innerText=optionval1;
}

if(document.getElementById ("rbd2").checked==false)
{
   var optionval2=2650;
   document.getElementById("lblelas2").innerText=optionval2;
   document.getElementById("lbltotal").innerText=optionval2;
}
if(document.getElementById ("rbd3").checked==false)
{
   var optionval3=2000;
   document.getElementById("lblelas3").innerText=optionval3;
   document.getElementById("lbltotal").innerText=optionval3;
}
if(document.getElementById ("rbd4").checked==false)
{
   var optionval2=2400;
   document.getElementById("lblelas4").innerText=optionval2;
   document.getElementById("lbltotal").innerText=optionval2;
}
if(document.getElementById ("rbd5").checked==false)
{
   var optionval2=2000;
   document.getElementById("lblelas5").innerText=optionval2;
   document.getElementById("lbltotal").innerText=optionval2;
}

//var x2 = document.getElementById("ddl2").selectedIndex;

var optionval2=2650;//(document.getElementById("ddl2").options[x2].value);//alert(optionval3);
var optiontext2=4;//document.getElementById("ddl2").options[document.getElementById("ddl2").selectedIndex].text;

document.getElementById("lblelas2").innerText=optionval2;
document.getElementById("lbltotal").innerText=optionval2;                                                             //optiontext3+":weeks"+"|"+optionval3+"";
document.getElementById("Hidden1").value="ELAS 2: 03rd July 11 - 30th July 11|General English With accommodation only|"+optiontext2+":weeks"+"|"+optionval2+"";

}
}


function rbd3check ()
{
    if(document.getElementById ("rbd3").checked==true)
    {
     if(document.getElementById ("rbd2").checked==false)
    {  
        var optionval2=2650;
        document.getElementById("lblelas2").innerText=optionval2;
        document.getElementById("lbltotal").innerText=optionval2;
    }
if(document.getElementById ("rbd1").checked==false)
{
   var optionval1=0;
   document.getElementById("lbl1").innerText=optionval1;
   document.getElementById("lbltotal").innerText=optionval1;
}
if(document.getElementById ("rbd4").checked==false)
{
   var optionval2=2400;
   document.getElementById("lblelas4").innerText=optionval2;
   document.getElementById("lbltotal").innerText=optionval2;
}
if(document.getElementById ("rbd5").checked==false)
{
   var optionval2=2000;
   document.getElementById("lblelas5").innerText=optionval2;
   document.getElementById("lbltotal").innerText=optionval2;
}

//var x3 = document.getElementById("ddl3").selectedIndex;
//var x31 = document.getElementById("ddl31").selectedIndex;
var optionval3=2000;//(document.getElementById("ddl3").options[x3].value);//alert(optionval3);
var optiontext3=4;//parseInt(document.getElementById("ddl3").options[document.getElementById("ddl3").selectedIndex].text);
//var optionval31=(document.getElementById("ddl31").options[x31].value);//alert(optionval3);
//var optiontext31=parseInt (document.getElementById("ddl31").options[document.getElementById("ddl31").selectedIndex].text);
//document.getElementById("lbl3").innerText=(Number(optionval31*optiontext31*optiontext3)+Number(optionval3));
//document.getElementById("lbltotal").innerText=(Number(optionval31*optiontext31*optiontext3)+Number(optionval3));

//document.getElementById("Hidden1").value="ELAS 3: 03rd July 11 - 30th July 11|General English Only|"+optiontext31+":Hours"+optiontext3+":weeks|"+(Number(optionval31*optiontext31*optiontext3)+Number(optionval3));

document.getElementById("lblelas3").innerText=optionval3;
document.getElementById("lbltotal").innerText=optionval3;
document.getElementById("Hidden1").value="ELAS 3: 03rd July 11 - 30th July 11|General English Only|"+optiontext3+":weeks"+"|"+optionval3+"";

}
if(document.getElementById ("rbd3").checked==false)
{
    var optionval3=0;

   document.getElementById("lbl3").innerText=optionval3;
}
}


function rbd4check ()
{
    if(document.getElementById ("rbd4").checked==true)
    {
    if(document.getElementById ("rbd1").checked==false)
    {
        var optionval1=0;
        document.getElementById("lbl1").innerText=optionval1;
        document.getElementById("lbltotal").innerText=optionval1;
    }
     if(document.getElementById ("rbd2").checked==false)
    {  
        var optionval2=2650;
        document.getElementById("lblelas2").innerText=optionval2;
        document.getElementById("lbltotal").innerText=optionval2;
    }
if(document.getElementById ("rbd3").checked==false)
{
   var optionval3=2000;
   document.getElementById("lblelas3").innerText=optionval3;
   document.getElementById("lbltotal").innerText=optionval3;
}
if(document.getElementById ("rbd4").checked==false)
{
    var optionval3=2400;

   document.getElementById("lblelas4").innerText=optionval3;
}
if(document.getElementById ("rbd5").checked==false)
{
   var optionval2=2000;
   document.getElementById("lblelas5").innerText=optionval2;
   document.getElementById("lbltotal").innerText=optionval2;
}

//var x3 = document.getElementById("ddl3").selectedIndex;
//var x31 = document.getElementById("ddl31").selectedIndex;
var optionval4=2400;//(document.getElementById("ddl3").options[x3].value);//alert(optionval3);
var optiontext4=4;//parseInt(document.getElementById("ddl3").options[document.getElementById("ddl3").selectedIndex].text);
//var optionval31=(document.getElementById("ddl31").options[x31].value);//alert(optionval3);
//var optiontext31=parseInt (document.getElementById("ddl31").options[document.getElementById("ddl31").selectedIndex].text);
//document.getElementById("lbl3").innerText=(Number(optionval31*optiontext31*optiontext3)+Number(optionval3));
//document.getElementById("lbltotal").innerText=(Number(optionval31*optiontext31*optiontext3)+Number(optionval3));

//document.getElementById("Hidden1").value="ELAS 3: 03rd July 11 - 30th July 11|General English Only|"+optiontext31+":Hours"+optiontext3+":weeks|"+(Number(optionval31*optiontext31*optiontext3)+Number(optionval3));

document.getElementById("lblelas4").innerText=optionval4;
document.getElementById("lbltotal").innerText=optionval4;
document.getElementById("Hidden1").value="ELAS 4: 03rd July 11 - 30th July 11|Adventure Activities With Accommodation only|"+optiontext4+":weeks"+"|"+optionval4+"";

}

}




function rbd5check ()
{
    if(document.getElementById ("rbd5").checked==true)
    {
    if(document.getElementById ("rbd1").checked==false)
    {
        var optionval1=0;
        document.getElementById("lbl1").innerText=optionval1;
        document.getElementById("lbltotal").innerText=optionval1;
    }
     if(document.getElementById ("rbd2").checked==false)
    {  
        var optionval2=2650;
        document.getElementById("lblelas2").innerText=optionval2;
        document.getElementById("lbltotal").innerText=optionval2;
    }
if(document.getElementById ("rbd3").checked==false)
{
   var optionval3=2000;
   document.getElementById("lblelas3").innerText=optionval3;
   document.getElementById("lbltotal").innerText=optionval3;
}
if(document.getElementById ("rbd4").checked==false)
{
    var optionval3=2400;
   document.getElementById("lblelas4").innerText=optionval3;
   document.getElementById("lbltotal").innerText=optionval3;
}
if(document.getElementById ("rbd5").checked==false)
{
   var optionval2=2000;
   document.getElementById("lblelas5").innerText=optionval2;
   document.getElementById("lbltotal").innerText=optionval2;
}

//var x3 = document.getElementById("ddl3").selectedIndex;
//var x31 = document.getElementById("ddl31").selectedIndex;
var optionval5=2000;//(document.getElementById("ddl3").options[x3].value);//alert(optionval3);
var optiontext5=4;//parseInt(document.getElementById("ddl3").options[document.getElementById("ddl3").selectedIndex].text);
//var optionval31=(document.getElementById("ddl31").options[x31].value);//alert(optionval3);
//var optiontext31=parseInt (document.getElementById("ddl31").options[document.getElementById("ddl31").selectedIndex].text);
//document.getElementById("lbl3").innerText=(Number(optionval31*optiontext31*optiontext3)+Number(optionval3));
//document.getElementById("lbltotal").innerText=(Number(optionval31*optiontext31*optiontext3)+Number(optionval3));

//document.getElementById("Hidden1").value="ELAS 3: 03rd July 11 - 30th July 11|General English Only|"+optiontext31+":Hours"+optiontext3+":weeks|"+(Number(optionval31*optiontext31*optiontext3)+Number(optionval3));

document.getElementById("lblelas5").innerText=optionval5;
document.getElementById("lbltotal").innerText=optionval5;
document.getElementById("Hidden1").value="ELAS 5: 03rd July 11 - 30th July 11|Adventure Activities only|"+optiontext5+":weeks"+"|"+optionval5+"";

}

}



function getCheckedValue() {
	
	if(document.getElementById ("chkcollection").checked==false)
	{
	if(document.getElementById ("rdo1").checked==true)
	{
	document.getElementById ("lblrdo").innerText=120;

document.getElementById("Hidden5").value="Heathrow|120";

	}
	else if(document.getElementById ("rdo2").checked==true)
	{
	document.getElementById ("lblrdo").innerText=145;


document.getElementById("Hidden5").value="Gatwick|120";

	}
	else if(document.getElementById ("rdo3").checked==true)
	{
	document.getElementById ("lblrdo").innerText=130;


document.getElementById("Hidden5").value="Stansted|120";

	}

	}
	else if(document.getElementById ("chkcollection").checked==true)
	{
	 
	document.getElementById ("lblrdo").innerText=0;
	
document.getElementById("Hidden5").value="Na|0";

    
 }
	
	
}



function getCheckedValue1() {
	
	if(document.getElementById ("chkdrop").checked==false)
	{
	if(document.getElementById ("rdo4").checked==true)
	{
	document.getElementById ("lblrdo1").innerText=120;

document.getElementById("Hidden6").value="Heathrow|120";
	}
	else if(document.getElementById ("rdo5").checked==true)
	{
	document.getElementById ("lblrdo1").innerText=145;


document.getElementById("Hidden6").value="Gatwick|120";
	}
	else if(document.getElementById ("rdo6").checked==true)
	{
	document.getElementById ("lblrdo1").innerText=130;


document.getElementById("Hidden6").value="Stansted|120";
	}

	}
	else if(document.getElementById ("chkdrop").checked==true)
	{
	 
	document.getElementById ("lblrdo1").innerText=0;

document.getElementById("Hidden6").value="Na|0";

    
 }
	
	
}


