var objTimeOut = window.setInterval("timeOut()", 3600000);
function timeOut(){
objTimeOut = window.clearInterval(objTimeOut);
logout();
//window.location = "/cav4/timeout_" + strVersion + ".htm";
window.location = "/cav4/app/hcboexp/DocumentServer/timeout.htm?TemplocaleId=en";
}
function myClearInterval(){
//alert( objTimeOut );
objTimeOut = window.clearInterval(objTimeOut);
//alert( objTimeOut );
}
var myCurrentPage = "Undefined";
var strVersion="core";
//////////////////This is for easy transfer from client to server/////////////////
var DIRECTORY = "/cav4";
//This is used for each link on the page because the page naming scheme was diff on server templates and on the
// client htm pages
// NO LONGER RELEVENT, BUT VERY DEEPLY ENTRENCHED...
function getLink( myLink ) //
{ //
var newLink = "CoverageAdvisor?Action="; //
if(myLink=="welcome.htm") //
{ //
newLink += "Welcome"; //
} //
else if(myLink=="1.htm") //
{ //
newLink += "CreateHealthProfile"; //
} //
else if(myLink=="1a.htm") //
{ //
newLink += "HealthcareNeeds"; //
} //
/*Modified by VL on 7th June for Prescription Drugs */
else if(myLink=="1b.htm") //
{ //
newLink += "PrescriptionDrugs"; //
} //
//
/*Modified by VL on 10th June for new pages */
else if(myLink=="2.htm") //
{ //
newLink += "PrescriptionDrugUse"; //
}
else if(myLink=="2a.htm") //
{ //
newLink += "PlannedMedicalCare"; //
}
else if(myLink=="2b.htm") //
{ //
newLink += "EstimatedMedicalCare"; //
} //
else if(myLink=="3.htm") //
{ //
newLink += "YourPlan"; //
}
else if(myLink=="3a.htm") //
{ //
newLink += "YourPlanCore"; //
}
else if(myLink=="3b.htm") //
{ //
newLink += "QuestionsForYourBenefitsManager"; //
} //
else if(myLink=="4.htm") //
{ //
newLink += "DetailedPlanInformation"; //
} //
/*Added by VL on 5th June 2006 for new pages*/
else if(myLink=="4a.htm") //
{ //
newLink += "SpendingAccounts"; //
}
else if(myLink=="4b.htm") //
{ //
newLink += "HealthSavingsAccount"; //
}
/*End of VL code*/
else if(myLink=="4c.htm") //
{ //
newLink += "ModelAccountContributions"; //
}
else if(myLink=="5a.htm") //
{ //
newLink += "HSAFinancialProjectionCalulatorSavings"; //
} //
else if(myLink=="5b.htm") //
{ //
newLink += "HSAFinancialProjectionCalulator"; //
}
else {
newLink += myLink;
} //
return newLink; //
} //
//////////////////////////////////////////////////////////////////////////////////
//This function submits a form
function doSubmit(location)
{
document.forms.serverInputForm.submit();
}
//creates the hidden input field for the tax value
//this is used on the estimate heathcare use page
function createServerTaxInput()
{
var strOut = "";
strOut += "
";
if ( document.getElementById( "taxForm" ) )
document.getElementById("taxForm").innerHTML = strOut;
}
// a special-purpose helper to translate special relationships to standard cases
// for the backend; cannot simply repeat the standard cases, since it confuses
// the reselection code (the first of the identical series is always selected).
function translateRelationship(strDetailedRelationship) {
if (strDetailedRelationship == "Partner") {
return "Spouse";
}
return strDetailedRelationship;
}
//this creates the hidden input fields on the summary page of all of the updated profiles
function createServerInput(location, processAction){
try{
document.getElementById("buttons").style.visibility = "hidden";
}catch(x){}
var strOut = "";
strOut += "
You have indicated that " + objPersonArray[i].strName + " has and is regularly treated for the following conditions or is taking the following prescription drugs:
"; if(objPersonArray[i].con0 == "true"){strOut += "Asthma