 // RH 07/02/2007
 // CCS Modified 8/17/2007 to handle ICA/PCA site
 // CCS Modified 12/26/2011 to handle RPR application on ICA/PCA site 
// CCS Modified 1/11/2012 to fix incorrect target URLs for ICA/PCA & RPR
 function gotoPage()
 {
 	if(document.forms[0].radiobutton[0].checked==true)
	      document.forms[0].action = "http://Reports.CompetitivePromotion.com/bin/webReport.dll/menu";
	else if (document.forms[0].radiobutton[1].checked==true)
	{
	    document.forms[0].action = "http://RPR.CompetitivePromotion.com/Login.aspx";
//	    document.forms[0].action = "http://RPR.BizWareConsulting.com/Login.aspx";
                         document.forms[0].target = "_blank";
	}
	else if (document.forms[0].radiobutton[2].checked==true)
	{
 	    document.forms[0].uname.value = document.forms[0].Username.value;
	    document.forms[0].pwd.value = document.forms[0].Password.value;	
	    document.forms[0].action = "http://www.competitivepromotion.com/npf/npf_login.php";
	}
	else if (document.forms[0].radiobutton[3].checked==true)
	{
	    document.forms[0].action = "http://Alerts.CompetitivePromotion.com/Login.aspx";
//	    document.forms[0].action = "http://Alerts.BizWareConsulting.com/Login.aspx";
                         document.forms[0].target = "_blank";
	}
	
	document.forms[0].submit();
 }
 

// CCS 8/17/2007 Not used 
//  function notAvailable()
// {
// 	alert("ICA/PCA will be available soon");
//	document.forms[0].radiobutton[0].checked = true;
// }

