function Login_Click()
{
	if (Trim(document.lgfrm.txtName.value)=="")
		{
			alert ("Enter Login Name")
			document.lgfrm.txtName.select();
			return false;
		}
	if (document.lgfrm.txtName.value.length<5)
				{
				alert("Your Login Name should have at least 5 characters");
				document.lgfrm.txtName.select()
				return false;
		}
		if (Trim(document.lgfrm.txtPassword.value)=="")
		{
			alert ("Enter Login Password")
			document.lgfrm.txtPassword.focus();
			return false;
		}	
	if (document.lgfrm.txtPassword.value.length<5)
				{
				alert("Your Password should have at least 5 characters");
				document.lgfrm.txtPassword.select()
				return false;
		}
	
		document.lgfrm.action="regis/logchk.asp"
		document.lgfrm.submit();
		return true;
}
function pollcheck()									// for Health Poll
{
var fname = document.Poll;
var chlen = fname.choice.length;
var count=0;
var isSelected=false;
var selChoice;
for (count = 0; count < chlen; count++)
{
	if (fname.choice[count].checked == true)
	{
		selChoice=fname.choice[count].value;
		isSelected=true;
		break;
	}
}
	if (isSelected == true)
	{
		location.href="poll/index.asp"
		//window.open('Poll/new_pollindex.asp?Choice='+selChoice,'','width=320,height=415,left=0,top=0,scrollbars=yes')
		//return true;
	}
	else
	{
		alert("Please Select A Choice");
		return false;
	}

}
function selectInteractives()
{
if (document.Int.types.value=="")
{
alert("Please Select Interactives")
}
else
{
window.location.href=document.Int.types.value
}
}
function go()
{
 
 ss=filelist.options[filelist.selectedIndex].value
 //document.write(ss)
 location.href=ss
 }
 
 function ChangeCal()
 {
  if (document.frmCal.calc.value=="")
{
alert("Please Select Calculator")
}
else
{
window.location.href=document.frmCal.calc.value
}
  }
function CalcNut()
{
  if (document.frmNut.txtChoice2.value=="")
{
alert("Please Select Calculator")
}
else
{
window.location.href=document.frmNut.txtChoice2.value
}
  }
  
