<!--

function validateForm_frmListServerSignUp() {
	
var formObj

formObj = document.frmListServerSignUp;

if (formObj.fname.value == '')
{
 alert("Please enter your first name.");
 			formObj.fname.focus();
            return false;
}

if (formObj.lname.value == '')
{
 alert("Please enter your last name.");
 			formObj.lname.focus();
            return false;
}

if (formObj.email.value == '')
{
 alert("Please enter an e-mail address.");
 			formObj.email.focus();
            return false;
}
			

if (!formObj.lists[0].checked && !formObj.lists[1].checked && !formObj.lists[2].checked && !formObj.lists[3].checked)
{
 alert("Please select at least one list from which to receive e-mail.");
            return false;
}
	
return true;

}// validateForm_frmListServerSignUp()


function validateForm_frmMain(sanmina) {
	
var formObj

formObj = document.frmMain;

if (document.frmMain.initialsetup.value == 'yes')
{

//if (document.frmMain.insurance.options[document.frmMain.insurance.selectedIndex].value == '') {
//           alert("Please select your insurance company.");
//           return false;
//        	}

if(sanmina == '')
{
if (document.frmMain.keyword.options[document.frmMain.keyword.selectedIndex].value == '') {
           alert("Please select the prefix from your insurance ID card.");
            return false;
        	}
}
			
}
			
return true;

}// validateForm_frmMain()

function printpage()
{
window.print()
}

function checkDate_onchange(str) {
  if (str.length != 10) 
  { 
  alert("Please check the date entered and be sure it is in the mm/dd/yyyy format.");
  return false 
  }

  for (j=0; j<str.length; j++) {
    if ((j == 2) || (j == 5)) {
      if (str.charAt(j) != "/") 
	  { 
	  alert('Please check the date entered. Be sure to use the "/" in the mm/dd/yyyy format.');
	  return false 
	  }
    } else {
      if ((str.charAt(j) < "0") || (str.charAt(j) > "9")) 
	  {
	  alert("Please check the date entered. Be sure to use only numerics for month, day and year for example 01/29/2001.");
	  return false 
	  }
    }
  }

  var month = str.charAt(0) == "0" ? parseInt(str.substring(1,2)) : parseInt(str.substring(0,2));
  var day = str.charAt(3) == "0" ? parseInt(str.substring(4,5)) : parseInt(str.substring(3,5));
  var begin = str.charAt(6) == "0" ? (str.charAt(7) == "0" ? (str.charAt(8) == "0" ? 9 : 8) : 7) : 6;
  var year = parseInt(str.substring(begin, 10));

  if (day == 0) 
  { 
  alert("Please check the date entered. You entered a zero for the day.");
  return false 
  }
  if (month == 0 || month > 12) 
  { 
  alert("Please check the date entered. You entered an invalid month.");
  return false 
  }
  if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {
    if (day > 31) 
	{ 
	alert("Please check the date entered. You entered an invalid day for the month you entered.");
	return false 
	}
  } else {
    if (month == 4 || month == 6 || month == 9 || month == 11) {
      if (day > 30) 
	  { 
	  alert("Please check the date entered. You entered an invalid day for the month you entered.");
	  return false 
	  }
    } else {
      if (year%4 != 0) {
        if (day > 28) 
		{ 
		alert("Please check the date entered. You entered an invalid day for the month you entered.");
		return false 
		}
      } else {
        if (day > 29) { 
		alert("Please check the date entered. You entered an invalid day for the month you entered.");
		return false 
		}
      }
    }
  }
  return true;
}//function checkDate_onchange(str)





function isDate(str) {
  if (str.length != 10) { return false }

  for (j=0; j<str.length; j++) {
    if ((j == 2) || (j == 5)) {
      if (str.charAt(j) != "/") { return false }
    } else {
      if ((str.charAt(j) < "0") || (str.charAt(j) > "9")) { return false }
    }
  }

  var month = str.charAt(0) == "0" ? parseInt(str.substring(1,2)) : parseInt(str.substring(0,2));
  var day = str.charAt(3) == "0" ? parseInt(str.substring(4,5)) : parseInt(str.substring(3,5));
  var begin = str.charAt(6) == "0" ? (str.charAt(7) == "0" ? (str.charAt(8) == "0" ? 9 : 8) : 7) : 6;
  var year = parseInt(str.substring(begin, 10));

  if (day == 0) { return false }
  if (month == 0 || month > 12) { return false }
  if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {
    if (day > 31) { return false }
  } else {
    if (month == 4 || month == 6 || month == 9 || month == 11) {
      if (day > 30) { return false }
    } else {
      if (year%4 != 0) {
        if (day > 28) { return false }
      } else {
        if (day > 29) { return false }
      }
    }
  }
  return true;
}//function isDate(str)

function ShowHideHTML(formitem,id)
{

var theinnerHTML 
theinnerHTML = '';


FAQsArray = new Array(11);

//alert(FAQsArray.length);

for (i=0; i < FAQsArray.length; i++)
{ 
FAQsArray[i] = new Array(2);
}

/*
FAQsArray[1][1] = "Will all Anthem members receive new ID cards?"
FAQsArray[1][2] = "Yes, all members will receive new ID numbers effective 11/1/03.  They should receive their cards late October.  Here are things you should know about the new member numbers: <ul><li>They are 10 digit numbers<li>There is no suffix<li>Prefix (YGC, YGG etc) remains the same</ul>"
	
	<CFSET FAQsArray[2][1] = "How often will members receive new ID numbers?">
	<CFSET FAQsArray[2][2] = "Member numbers will change every time a Subscriber changes employers.  Make sure to check members' ID cards on a regular basis to ensure you have the most up to date ID number.  Claims will deny if submitted with an incorrect ID number.">

	<CFSET FAQsArray[3][1] = "Do I need to call BHN when my clients get new ID numbers 11/1/03?">
	<CFSET FAQsArray[3][2] = "There is no need to contact BHN when everyone gets a new ID number 11/1/03. Going forward, each time a member changes ID numbers, BHN must be contacted to transfer the current open authorization to the new ID number.">

	<CFSET FAQsArray[4][1] = "What do the new provider ID's look like?">
	<CFSET FAQsArray[4][2] = "They are 13 characters made up of numbers and letters.  Provider ID's contain zeros, not the letter O.">

	<CFSET FAQsArray[5][1] = "When should I start using my new ACES provider ID?">
	<CFSET FAQsArray[5][2] = "Your new provider ID can be used anytime after 4/1/03, but must be used for claims submitted 8/1/03 and after.">
	
	<CFSET FAQsArray[6][1] = "When should I start using my new ACES provider ID?">
	<CFSET FAQsArray[6][2] = "Your new provider ID can be used anytime after 4/1/03, but must be used for claims submitted 8/1/03 and after.">

	<CFSET FAQsArray[6][1] = "Where on the HCFA form should I place my new ID?">
	<CFSET FAQsArray[6][2] = "Enter the entire 13 characters in the PIN ## portion of block 33 on the HCFA 1500.<ul><li>It should not reach over to the GRP ## section of block 33.<li>The provider ID contains zeros not the letter O.<li>Block 24K must be empty when using your new provider ID.</ul>">
	
	<CFSET FAQsArray[7][1] = "Am I required to indicate a referring provider's UPIN or RAN number on the HCFA 1500? ">
	<CFSET FAQsArray[7][2] = "No, UPIN's and RAN's are not required for behavioral health claims.">
	
	<CFSET FAQsArray[8][1] = "Are Members' benefits changing?">
	<CFSET FAQsArray[8][2] = "Yes.  Currently, for behavioral health services, copayments are variable depending on the number of visits the member has in a year.  Effective August 1, 2003, the copayment will be the same for all covered visits.<br><br>For example:  A member might currently have visits 1 - 15 at a $10 copay, visits 16 - 20 at 20% of the maximum allowable charge.  In this scenario, as of August 1, 2003, visits 1 - 20 will process with a $10 copayment.">
	
	<CFSET FAQsArray[9][1] = "Will I receive a new remittance advice (RA) with this new adjudication system?">
	<CFSET FAQsArray[9][2] = "Yes, for claims processed on ACES, providers will receive a new RA and a reimbursement check for behavioral health services on Anthem check stock. There will be a span of time that both the 'old' and 'new' RA's will be received.<ul><li>This will effect Managed Care claims for dates of service 8/1/ and after<li>o	Indemnity/PPO claims for dates of service 11/1 and after</ul>">
	
	<CFSET FAQsArray[10][1] = "Will the current claims processing system ""go away?""">
	<CFSET FAQsArray[10][2] = "Yes, Anthem's current claims system will be retired 6/1/04.  This effects your claims payment, so please submit them promptly.<ul><li>Claims for services rendered to Managed Care members prior to 8/1/03 must be processed before 6/1/04<li>Claims for services rendered to Indemnity/PPO members prior to 11/1/03 must be processed before 6/1/04</ul>">
	
	<CFSET FAQsArray[11][1] = "Are there any other claims submission guidelines that I need to know?">
	<CFSET FAQsArray[11][2] = "Yes, claims for services prior to August 1, 2003 are to be billed on a separate claim form  from dates of service after August 1, 2003.  This is necessary when utilizing two claims adjudication systems simultaneously.">
*/	

//alert(id);

if(id == 'auth_to_date')
{
document.getElementById(id).innerHTML = 'Here';
//alert(formitem.value);
}

/*
if(id == 'auth_to_date' && (formitem.value == 'deny' || formitem.value == 'pend'))
{
document.getElementById(id).innerHTML = '<input type="HIDDEN" name="auth_to" value="">';
//alert(formitem.value);
}
else if (id == 'auth_to_date')
{
document.getElementById(id).innerHTML = 'Auth To (date): <input type="text" name="auth_to" value="" OnChange="checkDate_onchange_new(this.value,this)">';
//alert(formitem.value);

var formObj

formObj = document.frmPAReview;

var id2
id2 = 'auth_days_id';

//alert(formObj.program_type.value);
if ((formitem.value == 'auth') && (formObj.program_type.value != 'IP' && formObj.program_type.value != 'TRN' && formObj.program_type.value != 'RES'))
{
theinnerHTML = '';
theinnerHTML += '<table border="0" cellspacing="0" cellpadding="0"  width="450"><tr>';
theinnerHTML += '<td align="left" valign="top"># of days authed: <input type="NUMBER" size="5" name="auth_days" value="" OnChange="CheckIfNumeric(this)"></td>';
theinnerHTML += '</tr></table>';
//alert(id2);
document.getElementById(id2).innerHTML = theinnerHTML;
}
else
{
document.getElementById(id2).innerHTML = '<input type="HIDDEN" name="auth_days" value="">';
}

}


if(formitem.value == 'deny' && id == 'criteria_dropdown')
{
theinnerHTML += 'Criteria:&nbsp;<select name="criteria">';
theinnerHTML += '<option value="">Select One</option>';
//theinnerHTML += '<option value="Annual maximum">Annual maximum</option>';
//theinnerHTML += '<option value="Extended or overnight pass">Extended or overnight pass</option>';
theinnerHTML += '<option value="Lack of Information">Lack of Information</option>';
theinnerHTML += '<option value="Lack of medical necessity">Lack of medical necessity</option>';
//theinnerHTML += '<option value="Late Notification / Failure to pre-cert ">Late Notification / Failure to pre-cert </option>';
//theinnerHTML += '<option value="MEMBER NOT ELIGIBLE">MEMBER NOT ELIGIBLE</option>';
//theinnerHTML += '<option value="No benefit for requested service">No benefit for requested service</option>';
//theinnerHTML += '<option value="Out of benefits alert">Out of benefits alert</option>';
//theinnerHTML += '<option value="Out of Network ">Out of Network </option>';
//theinnerHTML += '<option value="Request to go OON">Request to go OON</option>';
theinnerHTML += '</select>';
document.getElementById(id).innerHTML = theinnerHTML;
//alert(formitem.value);
}
else if (id == 'criteria_dropdown' && (formitem.value == 'auth' || formitem.value == 'pend'))
{
document.getElementById(id).innerHTML = '<input type="HIDDEN" name="criteria" value="">';
//alert(formitem.value);
}


if(formitem.value == 'deny' || formitem.value == 'pend')
{
var id3
id3 = 'auth_days_id';
document.getElementById(id3).innerHTML = '<input type="HIDDEN" name="auth_days" value="">';
//alert(formitem.value);
}

*/

}// ShowHideHTML


//-->