function set_action()
{

//Utility
	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="biller_APCPDCL_details.htm";
			}
			else if(document.form1.UtilPay.value=="BESCOM")
			{
			document.form1.action="biller_BESCOM.htm";
			}
			else if(document.form1.UtilPay.value=="BSESR")
			{
			document.form1.action="BSESR_pnb_details.htm";
			}
			else if(document.form1.UtilPay.value=="BSESY")
			{
			document.form1.action="BSESY_pnb_details.htm";
			}
			else if(document.form1.UtilPay.value=="NDPL")
			{
			document.form1.action="biller_NDPL_details.htm";
			}
			else if(document.form1.UtilPay.value=="MSEBMUM")
			{
			document.form1.action="biller_MSEBMUM_details.htm";
			}
			else if(document.form1.UtilPay.value=="BSES")
			{
			document.form1.action="biller_BSES_details.htm";
			}
			else if(document.form1.UtilPay.value=="MPSEB")
			{
			document.form1.action="biller_MPSEB.htm";
			}
			else if(document.form1.UtilPay.value=="MGL")
			{
			document.form1.action="biller_MGL.htm";
			}
			else if(document.form1.UtilPay.value=="IGLINSTA")
			{
			document.form1.action="biller_IGLINSTA_details.htm";
			}
			else if(document.form1.UtilPay.value=="AIRTUPLL")
			{
			document.form1.action="biller_AIRTUPLL_details.htm";
			}
			else if(document.form1.UtilPay.value=="TTSL")
			{
			document.form1.action="biller_TTSL_details.htm";
			}
			else if(document.form1.UtilPay.value=="RIMP")
			{
			document.form1.action="biller_RIM.htm";
			}
			else if(document.form1.UtilPay.value=="MTNLDEL")
			{
			document.form1.action="biller_MTNLDEL_details.htm";
			}
			else if(document.form1.UtilPay.value=="MTNLMUM")
			{
			document.form1.action="biller_MTNLMUM.htm";
			}
			else if(document.form1.UtilPay.value=="HMWSSB")
			{
			document.form1.action="biller_HMWSSB.htm";
			}
			else if(document.form1.UtilPay.value=="In2cable")
			{
			document.form1.action="biller_IN2CABLE.htm";
			}
			document.form1.submit();
		 }
	}	 
	//end Utility
	
	//Postpaid
	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="biller_AIRTUPMOB_details.htm";
			}
			else if(document.form1.PostMobile.value=="CELL1INSTA")
			{
			document.form1.action="biller_CELL1INSTA_details.htm";
			}
			else if(document.form1.PostMobile.value=="IDEA")
			{
			document.form1.action="biller_IDEA.htm";
			}
			else if(document.form1.PostMobile.value=="RIMP")
			{
			document.form1.action="biller_RIM.htm";
			}
			else if(document.form1.PostMobile.value=="TTSL")
			{
			document.form1.action="biller_TTSL_details.htm";
			}
			else if(document.form1.PostMobile.value=="DOCOMO")
			{
			document.form1.action="biller_DOCOMO_details.htm";
			}
			else if(document.form1.PostMobile.value=="VODAFONE")
			{
			document.form1.action="biller_VODAFONE_details.htm";
			}
			else if(document.form1.PostMobile.value=="RPGChen")
			{
			document.form1.action="biller_RPGChen.htm";
			}
			else if(document.form1.PostMobile.value=="DOLPHINDEL")
			{
			document.form1.action="biller_DOLPHINDEL_details.htm";
			}
			else if(document.form1.PostMobile.value=="SPICE")
			{
			document.form1.action="biller_SPICE.htm";
			}
			else if(document.form1.PostMobile.value=="SPICECHAN")
			{
			document.form1.action="biller_SpiceChand.htm";
			}
			else if(document.form1.PostMobile.value=="BPLMUM")
			{
			document.form1.action="biller_BPLMUM.htm";
			}
						document.form1.submit();
		 }

	}//Postpaid end 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="biller_VODAPRE_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/pgmerc/pnb/biller_"+document.form1.creditCard.value+".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="biller_TATASKYB_details.htm";
			}
			else if(document.form1.dth.value=="AIRTUPDTH")
			{
			document.form1.action="biller_AIRTUPDTH_details.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=="MAXLIFE")
						{
						document.form1.action="biller_MAXLIFE.htm";
						}
			 if(document.form1.insurance.value=="IPRUINSTA")
						{
						document.form1.action="biller_IPRUINSTA_details.htm";
						}
			 if(document.form1.insurance.value=="AXAINS")
						{
						document.form1.action="https://www.billdesk.com/pnb/biller_AXAINS_details.htm";
						}
			 if(document.form1.insurance.value=="TALICINSTA")
						{
						document.form1.action="https://www.billdesk.com/pnb/biller_TALIC_details.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="biller_INDIA2DAY.htm";
			}
			else if(document.form1.subscript.value=="RDIGEST")
			{
			document.form1.action="biller_RD.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="biller_"+document.form1.donation.value +".htm";
			document.form1.submit();
		 }

	}//Donation Payments end here


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

}



