var objTimeOut = window.setInterval("timeOut()", 3600000);
function timeOut(){
objTimeOut = window.clearInterval(objTimeOut);
logout();
//window.location = "/ca/timeout_" + strVersion + ".htm";
window.location = "/ca/app/abccore/DocumentServer/timeout.htm";
}
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 CLIENT_SIDE = false;
var DIRECTORY = "";
if(CLIENT_SIDE)
{ //
DIRECTORY = "/ca";
} //
else //
{ //
DIRECTORY = "/ca"; //
} //
//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 //
function getLink( myLink ) //
{ //
if(CLIENT_SIDE) //
{ //
return myLink; //
} //
else //
{ //
var newLink = "CoverageAdvisor?Action="; //
if(myLink=="welcome.htm") //
{ //
newLink += "Welcome"; //
} //
else if(myLink=="1.htm") //
{ //
newLink += "CreateHealthProfile"; //
} //
else if(myLink=="1a.htm") //
{ //
newLink += "HealthcareNeeds"; //
} //
else if(myLink=="1b.htm") //
{ //
newLink += "PrescriptionDrugUse"; //
} //
else if(myLink=="1c.htm") //
{ //
newLink += "Summary"; //
} //
else if(myLink=="2.htm") //
{ //
newLink += "EstimateHealthcareUse"; //
} //
else if(myLink=="3.htm") //
{ //
newLink += "ChoosePlansToCompare"; //
}
else if(myLink=="3a.htm") //
{ //
newLink += "ModelOutOfPocketCosts"; //
}
else if(myLink=="3b.htm") //
{ //
newLink += "QuestionsForYourBenefitsManager"; //
} //
else if(myLink=="4.htm") //
{ //
newLink += "OutOfPocketExpenses"; //
} //
else if(myLink=="4a.htm") //
{ //
newLink += "DetailedPlanInformation"; //
} //
else if(myLink=="4b.htm") //
{ //
newLink += "ModelAccountContributions"; //
} //
else if(myLink=="5.htm") //
{ //
newLink += "HSAFinancialProjectionCalulatorIntro"; //
} //
else if(myLink=="5a.htm") //
{ //
newLink += "HSAFinancialProjectionCalulator"; //
} //
else if(myLink=="5b.htm") //
{ //
newLink += "HSAFinancialProjectionCalulatorSavings"; //
} //
return newLink; //
} //
} //
//
//////////////////////////////////////////////////////////////////////////////////
//This function submits a form if it is running on
//the server side and simply moves you to that page if you are in the client side
function doSubmit(location)
{
//We only want to submit if there is a server to submit it to :)
if(!CLIENT_SIDE)
{
document.forms.serverInputForm.submit();
}
else
{
document.location=getLink(location);
}
}
//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){
try{
document.getElementById("buttons").style.visibility = "hidden";
}catch(x){}
var strOut = "";
strOut += "