function set_action()
{

//Utility payments 
	if(document.form1.PayType[0].checked)
	{
		if(document.form1.UtilPay.value==0)
		{
		alert("Please select utility payment");
		document.form1.UtilPay.focus();
		return false;
		}
		else {
			if(document.form1.UtilPay.value=="BSESR")
			{
			document.form1.action="BSESR_boi.htm";
			}
			else if(document.form1.UtilPay.value=="BSESY")
			{
			document.form1.action="BSESY_boi.htm";
			}
			else if(document.form1.UtilPay.value=="APCPDCL")
			{
			document.form1.action="APCPDCL_boi.htm";
			}
			else if(document.form1.UtilPay.value=="NDPL")
			{
			document.form1.action="NDPL_boi_details.htm";
			}
			else if(document.form1.UtilPay.value=="MSEBMUM")
			{
			document.form1.action="MSEBMUM_boi.htm";
			}
			else if(document.form1.UtilPay.value=="BSES")
			{
			document.form1.action="BSES_boi.htm";
			}
			else if(document.form1.UtilPay.value=="IGLINSTA")
			{
			document.form1.action="IGLINSTA_boi.htm";
			}
			else if(document.form1.UtilPay.value=="MGL")
			{
			document.form1.action="MGL_boi.htm";
			}
			else if(document.form1.UtilPay.value=="RIMP")
			{
			document.form1.action="RIMP_boi.htm";
			}
			else if(document.form1.UtilPay.value=="AIRTUPLL")
			{
			document.form1.action="AIRTUPLL_boi.htm";
			}
			else if(document.form1.UtilPay.value=="TTSL")
			{
			document.form1.action="TTSL_boi.htm";
			}
			document.form1.submit();
		 }
	}	 
	//end Utility payments 
	
	//Postpaid Mobile
	else if(document.form1.PayType[1].checked)
	{
		if(document.form1.PostMobile.value==0)
		{
			alert("Please select mobile operator");
			document.form1.PostMobile.focus();
			return false;
		}
		else{ 
			if(document.form1.PostMobile.value=="AIRTUPMOB")
			{
			document.form1.action="AIRTUPMOB_boi.htm";
			}
			else if(document.form1.PostMobile.value=="CELL1INSTA")
			{
			document.form1.action="CELL1INSTA_boi.htm";
			}
			else if(document.form1.PostMobile.value=="IDEA")
			{
			document.form1.action="IDEA_boi.htm";
			}
			else if(document.form1.PostMobile.value=="RIMP")
			{
			document.form1.action="RIMP_boi.htm";
			}
			else if(document.form1.PostMobile.value=="TTSL")
			{
			document.form1.action="TTSL_boi.htm";
			}
			else if(document.form1.PostMobile.value=="DOCOMO")
			{
			document.form1.action="DOCOMO_boi.htm";
			}
			else if(document.form1.PostMobile.value=="VODAFONE")
			{
			document.form1.action="VODAFONE_boi.htm";
			}
			else if(document.form1.PostMobile.value=="RPGChen")
			{
			document.form1.action="RPGChen_boi.htm";
			}
			else if(document.form1.PostMobile.value=="DOLPHINDEL")
			{
			document.form1.action="DOLPHINDEL_boi_details.htm";
			}
			else if(document.form1.PostMobile.value=="SPICE")
			{
			document.form1.action="SPICE_boi.htm";
			}
			else if(document.form1.PostMobile.value=="SPICECHAN")
			{
			document.form1.action="SpiceChand_boi.htm";
			}
			else if(document.form1.PostMobile.value=="BPLMUM")
			{
			document.form1.action="BPLMUM_boi.htm";
			}
			else if(document.form1.PostMobile.value=="HUTCHHyd")
			{
			document.form1.action="HUTCHYD_boi.htm";
			}
			else if(document.form1.PostMobile.value=="ESSARDEL")
			{
			document.form1.action="ESSARDEL_boi.htm";
			}
			else if(document.form1.PostMobile.value=="CELFORCE")
			{
			document.form1.action="CELFORCE_boi.htm";
			}
			else if(document.form1.PostMobile.value=="HUTCHBlr")
			{
			document.form1.action="HUTCHBlr_boi.htm";
			}
			else if(document.form1.PostMobile.value=="Orange")
			{
			document.form1.action="Orange_boi.htm";
			}
			else if(document.form1.PostMobile.value=="BPLPune")
			{
			document.form1.action="BPLPune_boi.htm";
			}
			else if(document.form1.PostMobile.value=="HUTCHChen")
			{
			document.form1.action="HUTCHChen_boi.htm";
			}
			else if(document.form1.PostMobile.value=="HUTCHKol")
			{
			document.form1.action="HUTCHKol_boi.htm";
			}
						document.form1.submit();
		 }

	}//Postpaid Mobile end here
	
	//Card Payments starts here
	//Postpaid Mobile
	else if(document.form1.PayType[2].checked)
	{
		if(document.form1.PreMobile.value==0)
		{
			alert("Please select mobile operator");
			document.form1.PreMobile.focus();
			return false;
		}
		else{ 
			if(document.form1.PreMobile.value=="VODAPRE")
			{
			document.form1.action="VODAPRE_boi.htm";
			}
						document.form1.submit();
		 }

	}//Postpaid Mobile end here
	else if(document.form1.PayType[3].checked)
	{
		if(document.form1.creditCard.value==0)
		{
			alert("Please select your Credit Card");
			document.form1.creditCard.focus();
			return false;
		}
		else{ 
		 
			document.form1.action="../../pgidsk/pgmerc/boi/"+document.form1.creditCard.value+"_boi.jsp";
			
						document.form1.submit();
		 }

	}//Card Payments end here

	//DTH Payments starts here
	else if(document.form1.PayType[4].checked)
	{
		if(document.form1.dth.value==0)
		{
			alert("Please select your DTH service provider");
			document.form1.dth.focus();
			return false;
		}
		else{ 
			if(document.form1.dth.value=="TATASKYB")
			{
			document.form1.action="TATASKYB_boi.htm";
			}
			else if(document.form1.dth.value=="AIRTUPDTH")
			{
			document.form1.action="AIRTUPDTH_boi.htm";
			}
						document.form1.submit();
		 }

	}//DTH Payments end here

	//Insurance Payments starts here
	else if(document.form1.PayType[5].checked)
	{
		if(document.form1.insurance.value==0)
		{
			alert("Please select your insurance company.");
			document.form1.insurance.focus();
			return false;
		}
		else{ 
			if(document.form1.insurance.value=="IPRUINSTA")
			{
			document.form1.action="IPRUINSTA_boi.htm";
			}
			if(document.form1.insurance.value=="AXAINS")
			{
			document.form1.action="AXAINS_boi.htm";
			}
						document.form1.submit();
		 }

	}//Insurance Payments end here

	//Subscriptions Payments starts here
	else if(document.form1.PayType[6].checked)
	{
		if(document.form1.subscript.value==0)
		{
			alert("Please select a subscription");
			document.form1.subscript.focus();
			return false;
		}
		else{ 
			if(document.form1.subscript.value=="INDIA2DAY")
			{
			document.form1.action="INDIA2DAY_boi.htm";
			}
			else if(document.form1.subscript.value=="RDIGEST")
			{
			document.form1.action="RD_boi.htm";
			}
						document.form1.submit();
		 }

	}//Subscriptions Payments end here

	//Donation Payments starts here
	else if(document.form1.PayType[7].checked)
	{
		if(document.form1.donation.value==0)
		{
			alert("Please select an Organisation");
			document.form1.donation.focus();
			return false;
		}
		else{ 
			
			document.form1.action=document.form1.donation.value +"_boi.htm";
			document.form1.submit();
		 }

	}//Donation Payments end here


else{ //if PayType is  null
	alert("Please select your choice");
	}

}



