//rollover graphics for all pages

if (document.images) {
        img1on = new Image(156,24);
        img1on.src = "images/about2.gif";

        img1off = new Image(156,24);
        img1off.src = "images/about1.gif";

        img2on = new Image(156,17);
        img2on.src = "images/lookup2.gif";

        img2off = new Image(156,17);
        img2off.src = "images/lookup1.gif";

        img3on = new Image(156,23);
        img3on.src = "images/eob2.gif";

        img3off = new Image(156,23);
        img3off.src = "images/eob1.gif";

        img7on = new Image(156,24);
        img7on.src = "images/wellnesslinks2.gif";

        img7off = new Image(156,24);
        img7off.src = "images/wellnesslinks1.gif";

        img8on = new Image(156,24);
        img8on.src = "images/library2.gif";

        img8off = new Image(156,24);
        img8off.src = "images/library1.gif";

        img4on = new Image(156,24);
        img4on.src = "images/contact2.gif";

        img4off = new Image(156,24);
        img4off.src = "images/contact1.gif";

        img5on = new Image(156,24);
        img5on.src = "images/index2.gif";

        img5off = new Image(156,24);
        img5off.src = "images/index1.gif";

        img6on = new Image(156,24);
        img6on.src = "images/home2.gif";

        img6off = new Image(156,24);
        img6off.src = "images/home1.gif";

        img9on = new Image(156,24);
        img9on.src = "images/employer2.gif";

        img9off = new Image(156,24);
        img9off.src = "images/employer1.gif";

        img10on = new Image(156,24);
        img10on.src = "images/insured2.gif";

        img10off = new Image(156,24);
        img10off.src = "images/insured1.gif";

        img11on = new Image(156,24);
        img11on.src = "images/elig2.gif";

        img11off = new Image(156,24);
        img11off.src = "images/elig1.gif";


        img12on = new Image();
        img12on.src = "images/defaul_03a.gif";

        img12off = new Image();
        img12off.src = "images/defaul_03.gif";

        img13on = new Image();
        img13on.src = "images/defaul_05a.gif";

        img13off = new Image();
        img13off.src = "images/defaul_05.gif";

        img14on = new Image();
        img14on.src = "images/defaul_06a.gif";

        img14off = new Image();
        img14off.src = "images/defaul_06.gif";


        img15on = new Image();
        img15on.src = "images/defaul_09a.gif";

        img15off = new Image();
        img15off.src = "images/defaul_09.gif";

        img16on = new Image();
        img16on.src = "images/defaul_11a.gif";

        img16off = new Image();
        img16off.src = "images/defaul_11.gif";

        img17on = new Image();
        img17on.src = "images/defaul_12a.gif";

        img17off = new Image();
        img17off.src = "images/defaul_12.gif";

        img18on = new Image(156,24);
        img18on.src = "images/atlas2.gif";

        img18off = new Image(156,24);
        img18off.src = "images/atlas1.gif";

        img19on = new Image(156,17);
        img19on.src = "images/change2.gif";

        img19off = new Image(156,17);
        img19off.src = "images/change1.gif";

        img20on = new Image(156,17);
        img20on.src = "images/register2.gif";

        img20off = new Image(156,17);
        img20off.src = "images/register1.gif";

        img21on = new Image(156,24);
        img21on.src = "images/provider2.gif";

        img21off = new Image(156,24);
        img21off.src = "images/provider1.gif";

        img22on = new Image();
        img22on.src = "images/emp2.gif";

        img22off = new Image();
        img22off.src = "images/emp1.gif";

        img23on = new Image();
        img23on.src = "images/rdet2.gif";

        img23off = new Image();
        img23off.src = "images/rdet1.gif";



}
function imgOn(imgName) {
        if (document.images) {
                document[imgName].src = eval(imgName + "on.src");
        }
}
function imgOff(imgName) {
        if (document.images) {
                document[imgName].src = eval(imgName + "off.src");
        }

}


function pullDown(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}



// Create an entry in this format for each help popup you will have.
// hmsg["popup name"] = new helpmsg(
// "Title of popup", "header style", "Message Style", "Help Message");

// 'popup name' is the what you will call the popup later, used to open help.
// 'title of popup' is shown at the top of the help box that opens.  (Optional)
// 'header style' is a predefined style of how to display the title.
//    header style valid options include:  'header', 'fancyheader', 'h1', 'h2', or ""
// 'message style' is a predefined style of how to display the help message.
//    message style valid options include:  'plain', 'italics', 'bold', ""
// 'help message' is the the text shown in the popup.  It should explain the topic.

var hmsg = new Array();

hmsg["question"] = new helpmsg(
"Password Question",  "h3", "plain", "Select a question to remind you of what your password is.  Try to choose something that only you would know the answer to, such as:  What is my Dad's favorite color?");

hmsg["group"] = new helpmsg(
"", "", "plain", "Your Group Number can be found on your Insurance ID Card.");

hmsg["faq"] = new helpmsg(
"JavaScript Source FAQs", "h2", "italics", "Answers to the most common JavaScript questions we receive at The JavaScript Source.");

hmsg["news"] = new helpmsg(
"", "", "", "A monthly newsletter with links to all the script we've added to the site in the last month, a webmaster-related column, and links to other useful webmaster sites.");


var myPopup = new helpbox("myPopup", hmsg, 275, 175, "#ffffee");

// 275 is the width of the popup box
// 175 is the height of the popup box
// "#ffffee" is the color of the popup box


function helpmsg(header, hstyle, mstyle, message) {
this.DEFAULTHSTYLE = "plain";
this.DEFAULTMSTYLE = "plain";

this.header = header;
if (hstyle) this.hstyle = hstyle;
else this.hstyle = this.DEFAULTHSTYLE;
this.message = message;
if (mstyle) this.mstyle = mstyle;
else this.mstyle = this.DEFAULTMSTYLE;
return this;
}
new helpmsg();
helpmsg.prototype.show = show;

function show() {
var H = "<FONT FACE='arial'>" + this.header + "</FONT>";
if (this.hstyle == "h1") H = "<H1>" + H + "</H1>";
else if (this.hstyle == "h2") H = "<H2>" + H + "</H2>";
else if (this.hstyle == "h3") H = "<H3>" + H + "</H3>";
else if (this.hstyle == "h4") H = "<H4>" + H + "</H4>";
if (this.hstyle == "fancyheader") H = "<table width='75%'>" +
"<tr><td bgcolor='#6060ff' align='center' valign='center'>" +
"<H1><FONT COLOR='white'>" + H +
"</FONT></H1>" + "</td></tr></table>";
else if (this.hstyle == "italics")
H = "<I>" + H + "</I>";

var M = "<FONT FACE='arial'>" + this.message + "</FONT>";
if (this.mstyle == "plain") {}
if (this.mstyle == "italics") M = M.italics();
else if (this.mstyle == "bold") M = M.bold();

var htmlpage = "";
if (this.hstyle.indexOf("header")>=0)
htmlpage = H + M;
else htmlpage = H + "<BR>" + M;
return htmlpage;
}

function helpbox(name, hm, width, height, bgcolor) {
this.name = name;
this.helpmessage = hm;
this.timerHandle = null;
this.windowHandle = null;
this.DEFAULTWIDTH = 250;
this.DEFAULTHEIGHT = 150;
this.DEFAULTBGCOLOR = "#ffffcc";
this.POPUPDELAY = 100;
if (width) this.width = width;
else this.width = this.DEFAULTWIDTH;
if (height) this.height = height;
else this.height = this.DEFAULTHEIGHT;
if (bgcolor) this.bgcolor = bgcolor;
else this.bgcolor = this.DEFAULTBGCOLOR;
return this;
}
function startHelp(msgindex) {
var cmdstr="top." + this.name + ".showHelp('" + msgindex + "')";
this.timerHandle = setTimeout(cmdstr, this.POPUPDELAY);
}
function showHelp(msgindex) {
if (!this.windowHandle || !this.windowHandle.name || this.windowHandle.name=="")
this.windowHandle = window.open(
"",
"subWindow",
"toolbar=no," +
"location=no," +
"directories=no," +
"status=no," +
"menubar=no," +
"scrollbars=no," +
"resizable=no," +
"width=" + this.width + "," +
"height=" + this.height
);
else
this.windowHandle.focus();
this.windowHandle.document.open();
var to_page =
"<HTML>\n" +
"<BODY BGCOLOR='" + this.bgcolor + "'><P>" +
this.helpmessage[msgindex].show() +
"</BODY></HTML>\n";
this.windowHandle.document.write(to_page);
this.windowHandle.document.close();
}
function clearHelp() {
clearTimeout(this.timerHandle);
if (this.windowHandle && this.windowHandle.name) {
this.windowHandle.close();
this.windowHandle=null;
   }
}
new helpbox();
helpbox.prototype.startHelp = startHelp;
helpbox.prototype.showHelp = showHelp;
helpbox.prototype.clearHelp = clearHelp;



function toFocus() {
document.form.frmemail.focus();
}

function toForm() {
document.form.frmemail.focus();
}

function giveFocus() {
document.form.usertype.focus();
}

function makeFocus() {
document.form.reason.focus();
}

function LoadValues(theform)
{
   var email, pin

        email = document.form.frmemail.value;
        pin = document.form.frmpin.value;

        alert( email + " / " + pin );


}
