function set_action()
{

//Postpaid Mobile
	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=="APCPDCL")
			{
			document.form1.action="APCPDCL_iob_details.htm";
			}
			else if(document.form1.UtilPay.value=="BSESR")
			{
			document.form1.action="BSESR_iob_details.htm";
			}
			else if(document.form1.UtilPay.value=="BSESY")
			{
			document.form1.action="BSESY_iob_details.htm";
			}
			else if(document.form1.UtilPay.value=="NDPL")
			{
			document.form1.action="NDPL_iob_details.htm";
			}
			else if(document.form1.UtilPay.value=="MSEBMUM")
			{
			document.form1.action="MSEBMUM_iob_details.htm";
			}
			else if(document.form1.UtilPay.value=="BSES")
			{
			document.form1.action="BSES_iob_details.htm";
			}
			else if(document.form1.UtilPay.value=="IGLINSTA")
			{
			document.form1.action="IGLINSTA_iob_details.htm";
			}
			else if(document.form1.UtilPay.value=="MGL")
			{
			document.form1.action="MGL_iob.htm";
			}
			else if(document.form1.UtilPay.value=="AIRTUPLL")
			{
			document.form1.action="AIRTUPLL_iob_details.htm";
			}
			else if(document.form1.UtilPay.value=="TTSL")
			{
			document.form1.action="TTSL_details_iob.htm";
			}
			else if(document.form1.UtilPay.value=="RIMP")
			{
			document.form1.action="RIM_iob.htm";
			}
			else if(document.form1.UtilPay.value=="MTNLMUM")
			{
			document.form1.action="MTNLMUM_iob.htm";
			}
			else if(document.form1.UtilPay.value=="In2cable")
			{
			document.form1.action="IN2CABLE_iob.htm";
			}
			else if(document.form1.UtilPay.value=="HMWSSB")
			{
			document.form1.action="HMWSSB_iob.htm";
			}
			else if(document.form1.UtilPay.value=="BESCOM")
			{
			document.form1.action="BESCOM_iob.htm";
			}
			else if(document.form1.UtilPay.value=="MPSEB")
			{
			document.form1.action="MPSEB_iob.htm";
			}
			document.form1.submit();
		 }
	}	 
	//end Postpaid Mobile
	
	//Utillity Payment
	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_iob_details.htm";
			}
			else if(document.form1.PostMobile.value=="CELL1INSTA")
			{
			document.form1.action="CELL1INSTA_iob_details.htm";
			}
			else if(document.form1.PostMobile.value=="IDEA")
			{
			document.form1.action="IDEA_iob.htm";
			}
			else if(document.form1.PostMobile.value=="RIMP")
			{
			document.form1.action="RIM_iob.htm";
			}
			else if(document.form1.PostMobile.value=="TTSL")
			{
			document.form1.action="TTSL_details_iob.htm";
			}
			else if(document.form1.PostMobile.value=="DOCOMO")
			{
			document.form1.action="DOCOMO_details_iob.htm";
			}
			else if(document.form1.PostMobile.value=="VODAFONE")
			{
			document.form1.action="VODAFONE_iob_details.htm";
			}
			else if(document.form1.PostMobile.value=="RPGChen")
			{
			document.form1.action="RPGChen_iob.htm";
			}
			else if(document.form1.PostMobile.value=="DOLPHINDEL")
			{
			document.form1.action="DOLPHINDEL_iob_details.htm";
			}
			else if(document.form1.PostMobile.value=="SPICE")
			{
			document.form1.action="SPICE_iob.htm";
			}
			else if(document.form1.PostMobile.value=="SPICECHAN")
			{
			document.form1.action="SpiceChand_iob.htm";
			}
			else if(document.form1.PostMobile.value=="BPLMUM")
			{
			document.form1.action="BPLMUM_iob.htm";
			}
						document.form1.submit();
		 }

	}//Postpaid Bills end here
	
	//Prepaid 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_iob_details.htm";
			}
						document.form1.submit();
		 }

	}//Prepaid Mobile end here

		//Card Payments starts 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/pgijsp/iob/"+document.form1.creditCard.value+"_iob.jsp";
			
			document.form1.submit();
		 }

	}//Card Payments end here
	
		//Insuranse Payments starts 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=="AIRTUPDTH")
			{
			document.form1.action="AIRTUPDTH_iob_details.htm";
			}
			else if(document.form1.dth.value=="TATASKYB")
			{
			document.form1.action="TATASKYB_iob_details.htm";
			}
						document.form1.submit();
		 }

	}//DTH Payments end 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_iob_details.htm";
				}
			if(document.form1.insurance.value=="AXAINS")
				{
				document.form1.action="AXAINS_iob_details.htm";
				}
			if(document.form1.insurance.value=="TALICINSTA")
				{
				document.form1.action="TALIC_iob_details.htm";
				}
			document.form1.submit();
		 }

	}//Insuranse 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_iob.htm";
			}
			else if(document.form1.subscript.value=="RDIGEST")
			{
			document.form1.action="RD_iob.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 +"_iob.htm";
			document.form1.submit();
		 }

	}//Donation Payments end here


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

}



