	function forgotPwd()
	{
		showPopUpCenter("/forgotpwd.php", "ForgotPassword", 300, 200);
	}

	function forgotPwd2()
	{
		showPopUpCenter("/forgotpwd2.php", "ForgotPassword", 300, 200);
	}

	function navigate(frm)
	{
		var selIndex = getSelectedIndex(frm.rad);
		if( selIndex != -1 )
		{
			selIndex = frm.rad[selIndex].value;
			if( selIndex == 0 )
			{
				//If first option was chosen
				document.location.href = "/memberid.php";
			}
			else if( selIndex == 1 )
			{
				//If second option was chosen
				document.location.href = "/forgot.php";
			}			
			else if( selIndex == 2 )
			{
				//If second option was chosen
				document.location.href = "/cancel.php";
			}
			else if( selIndex == 3 )
			{
				//If second option was chosen
				document.location.href = "/nerover.php";
			}			
			else if( selIndex == 4 )
			{
				//If second option was chosen
				document.location.href = "/overquota.php";
			}			
			else if( selIndex == 5 )			
			{
				//If second option was chosen
				document.location.href = "/upgradefaq.php";
			}
			else if( selIndex == 6 )
			{
				//If second option was chosen
				document.location.href = "/nod502.php";
			}
			else if( selIndex == 7 )
			{
				//If second option was chosen
				document.location.href = "/ports.php";
			}
			else if( selIndex == 8 )
			{
				//If second option was chosen
				document.location.href = "/connections.php";
			}
			else if( selIndex == 9 )
			{
				//If second option was chosen
				document.location.href = "/posting.php";
			}
			else if( selIndex == 10 )
			{
				//If second option was chosen
				document.location.href = "/ports.php";
			}
			else if( selIndex == 11 )
			{
				//If second option was chosen
				document.location.href = "https://www.newsdemon.com/support-desk/index.php?_m=tickets&_a=submit&step=1&departmentid=7";
			}
			else if( selIndex == 12 )
			{
				//If second option was chosen
				document.location.href = "https://www.newsdemon.com/support-desk/index.php?_m=tickets&_a=submit&step=1&departmentid=7";
			}
			else if( selIndex == 13 )
			{
				//If second option was chosen
				document.location.href = "/posting.php";
			}
			else if( selIndex == 14 )
			{
				document.location.href = "/help_upgrade_1.php";
			}
			else if( selIndex == 15 )
			{
				document.location.href = "/sslnntp.php";
			}
			else if( selIndex == 16 )
			{
				document.location.href="/speedissue.php";
			}
			else if( selIndex == 17 )
			{
				document.location.href = "/wp-change-card-details/";
			}
				else if( selIndex == 18 )
			{
				document.location.href="/cancel-paypal-subscription/";
			}
				else if( selIndex == 19 )
			{
				document.location.href="/update-creditcard-info/";
			}
			else if( selIndex == 20 )
			{
				document.location.href = "/other_question.php";
			}
			else
			{
				alert("Please select an option.");
				return;
			}
		}
		else
		{
			alert("Please select an option.");
			return;
		}
	}

	function getSelectedIndex(radgroup)
	{
		/* Returns back the id of selected radio button in a radio button group  */
		var j = -1;
	
		for( i=0; i < radgroup.length; i++ )
		{
			if( radgroup[i].checked )
			{
				j = i;
			
			}
		}
		return j;
	}
