function check401K()
{
	with(document.frmContactUs)
	{
		if (lstCategory.selectedIndex == 5)
		{
			var win = launchCenter("/portal/redirect/redirect_401k.asp","warning",150,300,",toolbar=no,menubar=no,status=no,scrollbars=no,resizable=0");
		}
		
		//if (lstCategory.selectedIndex == 6)
		//{
			//window.location = ("/company_profile/contact_us/death_claim.asp");
		//}
	}
}

function checkPolicyowner()
{
	with(document.frmContactUs)
	{
		if (lstCategory.selectedIndex != 4)
		{
			// hideElement('policy_contract_number'); NOT USED FOR NOW
		}
		else
		{
			// showElement('policy_contract_number');
		}
	}
}

function launchCenter(URL, name, height, width, paramString) {
			var str = "height=" + height + ",innerheight=" + height;
			str += ",width=" + width + ",innerwidth=" + width;
			if (window.screen) {
				var ay = screen.availHeight - 30;
				var ax = screen.availWidth - 10;
						
				var cx = (ax - width)/2;
				var cy = (ay - height)/2;
						
				str += ",left=" + cx + ",screenX=" + cx;
				str += ",top=" + cy + ",screenY=" + cy;
		}
			str += paramString;
			return window.open (URL,name,str);
		}
		
function ValidateContactFormFirst()
{
	with(document.frmContactUs)
	{
		if (lstCategory.selectedIndex == 0 || lstCategory.selectedIndex == 1 || lstCategory.selectedIndex == 3)
		{
			alert ("Please select the category.");
			lstCategory.focus();
			return false;
		}
		
		if (lstCategory.selectedIndex == 5)
		{
			check401K();
			return false;		
		}
			
		if ((lstCategory.selectedIndex == 4) && (trim(PolicyNumber.value) == ""))
		{
			alert("Please enter the policy/contract number. If you do not know your policy/contract number, type in 'NA'");
			PolicyNumber.select();
			PolicyNumber.focus();
			return false;
		}
	}				
}