
<!--
function FormAction()
{
if(document.BAMlogin.field1.value == "") {
alert("Please enter your user name.")
return false;
}
if(document.BAMlogin.field2.value == "") {
alert("Please enter your password.")
return false;
}
if(document.BAMlogin.corpEntCd.selectedIndex == 0) {
alert("Please select a state.")
return false;
}
document.BAMlogin.action = 'https://members.hcsc.net/members/servlet/com.hcsc.member.LoginServlet';
document.BAMlogin.method = 'post';
document.BAMlogin.name = 'LoginInfoForm';
document.BAMlogin.field1.name = 'userId';
document.BAMlogin.field2.name = 'pswd';
document.BAMlogin.unique.value="1";
document.BAMlogin.converted.value="Y";
document.BAMlogin.dest.value="null";
document.BAMlogin.passedParms.value="corpEntCd=TX1";
document.BAMlogin.requestFunction.value="auth";

return true && setTimeout('PasswordReset()',100);
}

function Show_Helpblank()
{
if (document.BAMlogin.corpEntCd.selectedIndex == 0)
{
document.getElementById('Logoblank').style.display = "";
}
else
{
document.getElementById('Logoblank').style.display = "none";
}
}

function Show_Help0()
{
if (document.BAMlogin.corpEntCd.selectedIndex == 1)
{
document.getElementById('Clicker0').style.display = "";
document.getElementById('Logo0').style.display = "";
}
else
{
document.getElementById('Clicker0').style.display = "none";
document.getElementById('Logo0').style.display = "none";
}
}

function Show_Help1()
{
if (document.BAMlogin.corpEntCd.selectedIndex == 2)
{
document.getElementById('Clicker1').style.display = "";
document.getElementById('Logo1').style.display = "";
}
else
{
document.getElementById('Clicker1').style.display = "none";
document.getElementById('Logo1').style.display = "none";
}
}

function Show_Help2()
{
if (document.BAMlogin.corpEntCd.selectedIndex == 3)
{
document.getElementById('Clicker2').style.display = "";
document.getElementById('Logo2').style.display = "";
}
else
{
document.getElementById('Clicker2').style.display = "none";
document.getElementById('Logo2').style.display = "none";
}
}

function Show_Help3()
{
if (document.BAMlogin.corpEntCd.selectedIndex == 4)
{
document.getElementById('Clicker3').style.display = "";
document.getElementById('Logo3').style.display = "";
}
else
{
document.getElementById('Clicker3').style.display = "none";
document.getElementById('Logo3').style.display = "none";
}
}

function Show_Help4()
{
if (document.BAMlogin.corpEntCd.selectedIndex == 5)
{
document.getElementById('Clicker4').style.display = "";
document.getElementById('Logo4').style.display = "";
}
else
{
document.getElementById('Clicker4').style.display = "none";
document.getElementById('Logo4').style.display = "none";
}
}

 
<!--

function TrimString(vstrPass)
{
 	var intLen, intCtr;
 	var intStart, intEnd
 
 	intLen = vstrPass.length
 
 	for( intCtr=0; intCtr<=intLen-1; intCtr ++)
		{
			if (vstrPass.charAt(intCtr) != ' ' )
			{
				intStart = intCtr
				break;
			}
 		}
 		intCtr = intLen - 1
 		
		for( intCtr=intLen-1; intCtr>=0; intCtr -- )
		{
			if (vstrPass.charAt(intCtr) != ' ' )
			{
				intEnd = intCtr + 1
				break;
			}
		 }
		 vstrPass = vstrPass.substring(intStart, intEnd);
		 return vstrPass; 
}


function CheckData()
{	
	val=document.LoginEntry.UserId.value
	val = TrimString(val)
	document.LoginEntry.UserId.value = val	
	
	if(document.LoginEntry.UserId.value.length == 0)
	{
		alert("Enter User ID")
		document.LoginEntry.UserId.focus()
	    return false;
	}

	
	document.LoginEntry.submit()	
	return true;
}

function PasswordReset()
{	
	document.BAMlogin.field2.value = "";
	return true;
}

document.write('<div style="padding-left:5px;"><br>');
document.write('<table cellpadding=0 cellspacing=0 width="250"><tr><td> ');
document.write('<form name="BAMlogin" style="display: inline; margin: 0;" onsubmit="return FormAction();" target="_blank"> ');
document.write('<div id="Logoblank" STYLE="display: block" align="center"><img src="images/bam.gif" alt="Blue Access For Members" border="0"></div>');
document.write('<div id="Logo0" STYLE="display: none" align="center"><a href="https://members.hcsc.net/members/mbrsignon_il.html" target="_blank"><img src="images/bam.gif" alt="Blue Access For Members" border="0"></a></div>');
document.write('<div id="Logo1" STYLE="display: none" align="center"><a href="https://members.hcsc.net/members/mbrsignon_nm.html" target="_blank"><img src="images/bam.gif" alt="Blue Access For Members" border="0"></a></div>');
document.write('<div id="Logo2" STYLE="display: none" align="center"><a href="https://members.hcsc.net/members/mbrsignon_ok.html" target="_blank"><img src="images/bam.gif" alt="Blue Access For Members" border="0"></a></div>');
document.write('<div id="Logo3" STYLE="display: none" align="center"><a href="https://members.hcsc.net/members/mbrsignon_tx.html" target="_blank"><img src="images/bam.gif" alt="Blue Access For Members" border="0"></a></div>');
document.write('<div id="Logo4" STYLE="display: none" align="center"><a href="https://members.hcsc.net/members/mbrsignon_tx.html" target="_blank"><img src="images/bam.gif" alt="Blue Access For Members" border="0"></a></div>');
document.write('<br><div style="padding-left:5px;"><SELECT class="box" name="corpEntCd" style="background-color:#ffffff; color:#000000; width:245px; font-size:8pt; font-family:verdana;" onClick="Show_Helpblank(); Show_Help0(); Show_Help1(); Show_Help2(); Show_Help3(); Show_Help4();"> ');
document.write('<OPTION VALUE="">Select Your State: ');
document.write('<OPTION VALUE="IL1">Illinois ');
document.write('<OPTION VALUE="NM1">New Mexico ');
document.write('<OPTION VALUE="OK1">Oklahoma ');
document.write('<OPTION VALUE="IL1">Texas (non HMO) ');
document.write('<OPTION VALUE="TX1">Texas (HMO) ');
document.write('</SELECT></div> ');
document.write('<br><table width="92%" cellpadding=0 cellspacing=0 align="right"><tr><td align="right"> ');
document.write('User Name: &nbsp;</td><td><INPUT type="text" name="field1" class="box" size="20" style="background-color:#ffffff; color:#000000; font-size:9pt; font-family:arial;"> ');
document.write('</td><td width="5">&nbsp;</td></tr><tr><td align="right"> ');
document.write('Password: &nbsp;</td><td><INPUT type="password" name="field2" class="box" size="20" style="background-color:#ffffff; color:#000000; font-size:9pt; font-family:arial;">');
document.write('</td><td></td></tr> ');
document.write('<input type="hidden" name="unique" />  ');
document.write('<input type="hidden" name="converted" />  ');
document.write('<input type="hidden" name="dest" />  ');
document.write('<input type="hidden" name="passedParms" />  ');
document.write('<input type="hidden" name="fep" />  ');
document.write('<input type="hidden" name="requestFunction" />  ');
document.write('<input type="hidden" name="CicsNewPasswordField" />  ');
document.write('<input type="hidden" name="CicsNewPassword2Field" />  ');
document.write('<tr><td colspan="2" align="center"><br><INPUT type=image alt="Log In" value="true" name="login" src="images/bam_login.gif" border="0" width="52" height="19" align="absmiddle" target="_blank" onClick="return FormAction();">&nbsp;<img src="images/lock.gif"><br><br></td></tr>');
document.write('<tr><td colspan="2" align="center">');
// Illinois Help
document.write('<div id="Clicker0" STYLE="display: none" align="left">');
document.write('<li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotUserIdServlet?unique=1&amp;corpEntCd=IL1&amp;requestFunction=auth" target="_blank" class="content">User Name</a>');
document.write('<li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotPasswordServlet?unique=1&amp;corpEntCd=IL1&amp;requestFunction=auth" target="_blank" class="content">Password</a>');
document.write('<li><a href="http://www.bcbsil.com/mmedia/bamtrailer/bam.htm" target="_blank">Take a tour</a> ');
document.write('<li>Need a User Name? <a href="https://members.hcsc.net/members/mbrsignon_il.html" target="_blank">Register Now</a></div> ');
// New Mexico Help
document.write('<div id="Clicker1" STYLE="display: none" align="left"><li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotUserIdServlet?unique=1&amp;corpEntCd=NM1&amp;requestFunction=auth" target="_blank" class="content">User Name</a>');
document.write('<li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotPasswordServlet?unique=1&amp;corpEntCd=NM1&amp;requestFunction=auth" target="_blank" class="content">Password</a>');
document.write('<li><a href="http://www.bcbsnm.com/mmedia/bamtrailer/bam_nm.htm" target="_blank">Take a tour</a> ');
document.write('<li>Need a User Name? <a href="https://members.hcsc.net/members/mbrsignon_nm.html" target="_blank">Register Now</a></div> ');
// Oklahoma Help
document.write('<div id="Clicker2" STYLE="display: none" align="left">');
document.write('<li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotUserIdServlet?unique=1&amp;corpEntCd=OK1&amp;requestFunction=auth" target="_blank" class="content">User Name</a>');
document.write('<li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotPasswordServlet?unique=1&amp;corpEntCd=OK1&amp;requestFunction=auth" target="_blank" class="content">Password</a>');
document.write('<li><a href="http://www.bcbsil.com/mmedia/bamtrailer/ok/bam.htm" target="_blank">Take a tour</a> ');
document.write('<li>Need a User Name? <a href="https://members.hcsc.net/members/mbrsignon_ok.html" target="_blank">Register Now</a></div> ');
// Texas HMO Help
document.write('<div id="Clicker3" STYLE="display: none" align="left">');
document.write('<li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotUserIdServlet?unique=1&amp;corpEntCd=IL1&amp;requestFunction=auth" target="_blank" class="content">User Name</a>');
document.write('<li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotPasswordServlet?unique=1&amp;corpEntCd=IL1&amp;requestFunction=auth" target="_blank" class="content">Password</a>');
document.write('<li><a href="http://www.bcbstx.com/mmedia/bamtrailer/bam.htm" target="_blank">Take a tour</a> ');
document.write('<li>Need a User Name? <a href="https://members.hcsc.net/members/mbrsignon_tx.html" target="_blank">Register Now</a></div> ');
// Texas Non-HMO Help
document.write('<div id="Clicker4" STYLE="display: none" align="left"><li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotUserIdServlet?unique=1&amp;corpEntCd=TX1&amp;requestFunction=auth" target="_blank" class="content">User Name</a>');
document.write('<li>I forgot my <a href="https://members.hcsc.net/members/servlet/com.hcsc.member.ForgotPasswordServlet?unique=1&amp;corpEntCd=TX1&amp;requestFunction=auth" target="_blank" class="content">Password</a>');
document.write('<li><a href="http://www.bcbstx.com/mmedia/bamtrailer/bam.htm" target="_blank">Take a tour</a> ');
document.write('<li>Need a User Name? <a href="https://members.hcsc.net/members/mbrsignon_tx.html" target="_blank">Register Now</a></div> ');
document.write('<br></td></tr></table>');
document.write('</form> ');
document.write('</td></tr></table></div> ');
