
window.name = "OCI_Main";

// Ultimate client-side JavaScript client sniff. 
// (C) Netscape Communications 1999.  Permission granted to reuse and distribute. 
// Revised 17 May 99 to add is_nav5up and is_ie5up (see below). 
// Everything you always wanted to know about your JavaScript client 
// but were afraid to ask. Creates "is_" variables indicating: 
// (1) browser vendor: 
//     is_nav, is_ie, is_opera 
// (2) browser version number: 
//     is_major (integer indicating major version number: 2, 3, 4 ...) 
//     is_minor (float   indicating full  version number: 2.02, 3.01, 4.04 ...) 
// (3) browser vendor AND major version number 
//     is_nav2, is_nav3, is_nav4, is_nav4up, is_nav5, is_nav5up, is_ie3, is_ie4, is_ie4up 
// (4) JavaScript version number: 
//     is_js (float indicating full JavaScript version number: 1, 1.1, 1.2 ...) 
// (5) OS platform and version: 
//     is_win, is_win16, is_win32, is_win31, is_win95, is_winnt, is_win98 
//     is_os2 
//     is_mac, is_mac68k, is_macppc 
//     is_unix 
//        is_sun, is_sun4, is_sun5, is_suni86 
//        is_irix, is_irix5, is_irix6 
//        is_hpux, is_hpux9, is_hpux10 
//        is_aix, is_aix1, is_aix2, is_aix3, is_aix4 
//        is_linux, is_sco, is_unixware, is_mpras, is_reliant 
//        is_dec, is_sinix, is_freebsd, is_bsd 
//     is_vms 
// 
// See http://www.it97.de/JavaScript/JS_tutorial/bstat/navobj.html and 
// http://www.it97.de/JavaScript/JS_tutorial/bstat/Browseraol.html 
// for detailed lists of userAgent strings. 
// 
// Note: you don't want your Nav4 or IE4 code to "turn off" or 
// stop working when Nav5 and IE5 (or later) are released, so 
// in conditional code forks, use is_nav4up ("Nav4 or greater") 
// and is_ie4up ("IE4 or greater") instead of is_nav4 or is_ie4 
// to check version in code which you want to work on future 
// versions. 

    // convert all characters to lowercase to simplify testing 
    var agt=navigator.userAgent.toLowerCase(); 

    // *** BROWSER VERSION *** 
    // Note: On IE5, these return 4, so use is_ie5up to detect IE5. 
    var is_major = parseInt(navigator.appVersion); 
    var is_minor = parseFloat(navigator.appVersion); 

    // Note: Opera and WebTV spoof Navigator.  We do strict client detection. 
    // If you want to allow spoofing, take out the tests for opera and webtv. 
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
                && (agt.indexOf('webtv')==-1)); 
    var is_nav2 = (is_nav && (is_major == 2)); 
    var is_nav3 = (is_nav && (is_major == 3)); 
    var is_nav4 = (is_nav && (is_major == 4)); 
    var is_nav4up = (is_nav && (is_major >= 4)); 
    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) || 
                          (agt.indexOf("; nav") != -1)) ); 
    var is_nav5 = (is_nav && (is_major == 5)); 
    var is_nav5up = (is_nav && (is_major >= 5)); 

    var is_ie   = (agt.indexOf("msie") != -1); 
    var is_ie3  = (is_ie && (is_major < 4)); 
    var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) ); 
    var is_ie4up  = (is_ie  && (is_major >= 4)); 
    var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 
    var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4); 

    // KNOWN BUG: On AOL4, returns false if IE3 is embedded browser 
    // or if this is the first browser window opened.  Thus the 
    // variables is_aol, is_aol3, and is_aol4 aren't 100% reliable. 
    var is_aol   = (agt.indexOf("aol") != -1); 
    var is_aol3  = (is_aol && is_ie3); 
    var is_aol4  = (is_aol && is_ie4); 

    var is_opera = (agt.indexOf("opera") != -1); 
    var is_webtv = (agt.indexOf("webtv") != -1); 

    // *** JAVASCRIPT VERSION CHECK *** 
    var is_js; 
    if (is_nav2 || is_ie3) is_js = 1.0 
    else if (is_nav3 || is_opera) is_js = 1.1 
    else if ((is_nav4 && (is_minor <= 4.05)) || is_ie4) is_js = 1.2 
    else if ((is_nav4 && (is_minor > 4.05)) || is_ie5) is_js = 1.3 
    else if (is_nav5) is_js = 1.4 
    // NOTE: In the future, update this code when newer versions of JS 
    // are released. For now, we try to provide some upward compatibility 
    // so that future versions of Nav and IE will show they are at 
    // *least* JS 1.x capable. Always check for JS version compatibility 
    // with > or >=. 
    else if (is_nav && (is_major > 5)) is_js = 1.4 
    else if (is_ie && (is_major > 5)) is_js = 1.3 
    // HACK: no idea for other browsers; always check for JS version with > or >= 
    else is_js = 0.0; 

    // *** PLATFORM ***
    var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
    // NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
    //        Win32, so you can't distinguish between Win95 and WinNT.
    var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));

    // is this a 16 bit compiled version?
    var is_win16 = ((agt.indexOf("win16")!=-1) || 
               (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || 
               (agt.indexOf("windows 16-bit")!=-1) );  

    var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
                    (agt.indexOf("windows 16-bit")!=-1));

    // NOTE: Reliable detection of Win98 may not be possible. It appears that:
    //       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
    //       - On Mercury client, the 32-bit version will return "Win98", but
    //         the 16-bit version running on Win98 will still return "Win95".
    var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
    var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
    var is_win32 = (is_win95 || is_winnt || is_win98 || 
                    ((is_major >= 4) && (navigator.platform == "Win32")) ||
                    (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

    var is_os2   = ((agt.indexOf("os/2")!=-1) || 
                    (navigator.appVersion.indexOf("OS/2")!=-1) ||   
                    (agt.indexOf("ibm-webexplorer")!=-1));

    var is_mac    = (agt.indexOf("mac")!=-1);
    var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) || 
                               (agt.indexOf("68000")!=-1)));
    var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) || 
                                (agt.indexOf("powerpc")!=-1)));

    var is_sun   = (agt.indexOf("sunos")!=-1);
    var is_sun4  = (agt.indexOf("sunos 4")!=-1);
    var is_sun5  = (agt.indexOf("sunos 5")!=-1);
    var is_suni86= (is_sun && (agt.indexOf("i86")!=-1));
    var is_irix  = (agt.indexOf("irix") !=-1);    // SGI
    var is_irix5 = (agt.indexOf("irix 5") !=-1);
    var is_irix6 = ((agt.indexOf("irix 6") !=-1) || (agt.indexOf("irix6") !=-1));
    var is_hpux  = (agt.indexOf("hp-ux")!=-1);
    var is_hpux9 = (is_hpux && (agt.indexOf("09.")!=-1));
    var is_hpux10= (is_hpux && (agt.indexOf("10.")!=-1));
    var is_aix   = (agt.indexOf("aix") !=-1);      // IBM
    var is_aix1  = (agt.indexOf("aix 1") !=-1);    
    var is_aix2  = (agt.indexOf("aix 2") !=-1);    
    var is_aix3  = (agt.indexOf("aix 3") !=-1);    
    var is_aix4  = (agt.indexOf("aix 4") !=-1);    
    var is_linux = (agt.indexOf("inux")!=-1);
    var is_sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
    var is_unixware = (agt.indexOf("unix_system_v")!=-1); 
    var is_mpras    = (agt.indexOf("ncr")!=-1); 
    var is_reliant  = (agt.indexOf("reliantunix")!=-1);
    var is_dec   = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) || 
           (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) || 
           (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1)); 
    var is_sinix = (agt.indexOf("sinix")!=-1);
    var is_freebsd = (agt.indexOf("freebsd")!=-1);
    var is_bsd = (agt.indexOf("bsd")!=-1);
    var is_unix  = ((agt.indexOf("x11")!=-1) || is_sun || is_irix || is_hpux || 
                 is_sco ||is_unixware || is_mpras || is_reliant || 
                 is_dec || is_sinix || is_aix || is_linux || is_bsd || is_freebsd);

    var is_vms   = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1));



var wPhone;
var newURL;

function cust_main(wPhone,newURL) {
	if ( Check_Ver() == true ) {
		mvAlong(wPhone,newURL);
	} else {
		upg_req(wPhone,newURL);
	}
}

function Check_Ver()
{
	if (is_ie4up) {
		return true;
	} else if (is_nav4 && (is_minor <= 4.05)) {
		return false;
	} else {
		return true;
	}
}

function mvAlong(wPhone,newURL) {
	document.writeln("<BODY TEXT=\"#000000\" BGCOLOR=\"#FFFFFF\">");
	document.writeln("<DIV ALIGN=\"CENTER\">");
	document.writeln("<FONT COLOR=\"#000099\" SIZE=+2><B><I>Welcome to the OCI<BR></I></B></FONT>");
	document.writeln("<FONT COLOR=\"#000099\" SIZE=+3><B>WebOPTIS<BR></B></FONT>");
	document.writeln("<FONT COLOR=\"#000099\"><B>Login<BR></B></FONT>");
	document.writeln("<FONT COLOR=\"#000099\" SIZE=+1><B>You will now be forwarded to your home page . . .<BR></B></FONT>");
	document.writeln("<BR>");
	document.writeln("<FONT COLOR=\"#CC0000\" SIZE=+1><B>If you need assistance, please contact<BR>");
	document.writeln("the OCI Customer Service Center<BR>");
	document.writeln("at "+wPhone+"</B></FONT>");
	document.writeln("</DIV></BODY>");
	window.location.replace(newURL);
}

function upg_req(wPhone,newURL) {
	document.writeln("<body BGCOLOR=\"#efefef\">");
	document.writeln("<DIV ALIGN=\"CENTER\">");
	document.writeln("<TABLE WIDTH=\"95%\" HEIGHT=\"99%\">");
	document.writeln(" <TR>");
	document.writeln("  <TD ALIGN=\"CENTER\"><font COLOR=\"#ff0000\"><H1>Attention!</H1></font></TD>");
	document.writeln(" </TR>");
	document.writeln(" <tr BGCOLOR=\"#000080\">");
	document.writeln("  <td ALIGN=\"CENTER\" height=\"31\"><P><br></P></td>");
	document.writeln(" </tr>");
	document.writeln(" <tr>");
	document.writeln("  <td ALIGN=\"CENTER\"><H2>Your browser contains a component that expired on December 31, 1999.</H2><BR>");
	document.writeln("   <P><B>When you try to access the WebOPTIS site after December 31, 1999, your browser will stop responding and you will not be able to login and run reports.</B></P>");
	document.writeln("   <P><B>To remedy this situation you need to upgrade your Netscape browser to version 4.06 or higher.<BR><BR><a HREF=\"http://www.netscape.com/download\" TARGET=\"browserupgrade\">Download the newest version of Netscape Communicator.</a><BR><a HREF=\"http://cd.netscape.com/\" TARGET=\"browserupgrade\">Order the newest version of Netscape Communicator on CD.</a><BR><BR></B></P>");
	document.writeln("   <P>Expiration of this component is not related to the Year 2000 problem.<BR><a HREF=\"http://www.verisign.com/server/cus/rootcert/faq.html\" TARGET=\"rootfaq\">Visit the Verisign FAQ for more information about VeriSign Certificate expiration.</a><BR></P>");
	document.writeln("   <H3>For assistance or for more information, call the WebOPTIS Support Service at 1-800-678-6604.</H3>");
	document.writeln("   <P>You are using "+navigator.userAgent+"</P></td>");
	document.writeln(" </tr>");
	document.writeln(" <tr BGCOLOR=\"#000080\">");
	document.writeln("  <td ALIGN=\"CENTER\"><P><br></P></td>");
	document.writeln(" </tr>");
	document.writeln(" <tr>");
	document.writeln("  <td ALIGN=\"CENTER\"><P><A HREF=\"javascript:mvAlong(wPhone,newURL);\">Continue to your WebOPTIS Home Page</A></P></td>");
	document.writeln(" </tr>");
	document.writeln("</table>");
	document.writeln("</DIV></body>");
}

function OPTIS() {
	document.writeln("<FRAMESET ROWS=\"140,*\" border=0 frameborder=0>");
	document.writeln("<FRAMESET COLS=\"169,*\" border=0 frameborder=0>");
	document.writeln("<FRAME SRC=\"OPTIStopleft.html\" SCROLLING=\"no\">");
	document.writeln("<FRAME SRC=\"OPTIStop.html\" SCROLLING=\"NO\">");
	document.writeln("</FRAMESET>");
	document.writeln("<FRAME SRC=\"OPTISbody.html\" SCROLLING=\"AUTO\" NAME=\"body\">");
	document.writeln("</FRAMESET>");
	document.writeln("<NOFRAMES>");
	document.writeln("<H1>Your Browser does not have Frames support.</H1>");
	document.writeln("<H1>Frames are necessary for OCI's site.");
	document.writeln("</H1>");
	document.writeln("</NOFRAMES>");
}

function OCI() {
	document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">');
	document.writeln('<html>');
	document.writeln('<head>');
	document.writeln('<meta http-equiv="refresh" content="0; url=http://www.oci.com" />');
	document.writeln('</head>');
	document.writeln('<body>');
	document.writeln('</body>');
	document.writeln('</html>');
}

function BldPg() {
	if (location.hostname == "test1.optis.com" || location.hostname == "TEST1.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci6-secure.optis.com/verizon";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "gte.optis.com" || location.hostname == "GTE.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci6-secure.optis.com/verizon";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "verizon.optis.com" || location.hostname == "VERIZON.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci6-secure.optis.com/verizon";
		cust_main(wPhone,newURL);
		cust_main(wPhone,newURL);
	} else if (location.hostname == "unum.optis.com" || location.hostname == "UNUM.OPTIS.COM") {
		var wPhone = "(800) 678-6614"
		var newURL = "https://unum-secure.optis.com/unum";
//		var newURL = "UnderConstruction.html";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "training.unum.optis.com" || location.hostname == "TRAINING.UNUM.OPTIS.COM") {
		var wPhone = "(800) 678-6614"
		var newURL = "https://unum-secure.optis.com/unumtrain";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "demo.unum.optis.com" || location.hostname == "DEMO.UNUM.OPTIS.COM") {
		var wPhone = "(800) 678-6614"
		var newURL = "https://unum-secure.optis.com/unumtrain";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "vrs.optis.com" || location.hostname == "VRS.OPTIS.COM") {
		var wPhone = "(800) 678-6614"
		var newURL = "https://unum-secure.optis.com/unum?Logo=vrslogo.gif";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "up-mercer.optis.com" || location.hostname == "UP-MERCER.OPTIS.COM") {
		var wPhone = "(800) 678-6614"
		var newURL = "https://unum-secure.optis.com/unum?Logo=mercer_logo.gif";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "aol.optis.com" || location.hostname == "AOL.OPTIS.COM") {
		var wPhone = "(800) 678-6614"
		var newURL = "https://unum-secure.optis.com/unum";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "unum2.optis.com" || location.hostname == "UNUM2.OPTIS.COM") {
		var wPhone = "(800) 678-6614"
		var newURL = "https://unum2-secure.optis.com/unum";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "gsk.optis.com" || location.hostname == "GSK.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://beta2-secure.optis.com/gsk";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "gskuat.optis.com" || location.hostname == "GSKUAT.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci3-secure.optis.com/gsk";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "abb.optis.com" || location.hostname == "ABB.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci6-secure.optis.com/abb";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "abbuat.optis.com" || location.hostname == "ABBUAT.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci3-secure.optis.com/abb";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "aap.optis.com" || location.hostname == "AAP.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci6-secure.optis.com/alstom";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "alstom.optis.com" || location.hostname == "ALSTOM.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci6-secure.optis.com/alstom";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "rmispilot.optis.com" || location.hostname == "RMISPILOT.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci3-secure.optis.com/rmispilot";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "erfs.genex.optis.com" || location.hostname == "ERFS.GENEX.OPTIS.COM") {
		var wPhone = "(800) 678-6614"
		var newURL = "https://erfs-secure.optis.com/genexlogin.html";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "urcriteria.optis.com" || location.hostname == "URCRITERIA.OPTIS.COM") {
		//var wPhone = "(800) 678-6614"
		var newURL = "http://oci2-secure.optis.com/rm/login";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "genex.optis.com" || location.hostname == "GENEX.OPTIS.COM") {
		var wPhone = "(800) 678-6614"
		var tmppath = location.pathname.substr(0,9).toLowerCase()
		if (tmppath == "/customer") {
			var newURL = "http://registration.optis.com/register/?Page=Register&Contract=GenexClient";
			window.location.replace(newURL);
			return;
		} else if (tmppath == "/register") {
			var newURL = "http://registration.optis.com/register/?Page=Register&Contract=Genex";
			window.location.replace(newURL);
			return;
		} else {
			var newURL = "https://genex-secure.optis.com";
		}
		cust_main(wPhone,newURL);
	} else if (location.hostname == "genexer4.optis.com" || location.hostname == "GENEXER4.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci8-secure.optis.com/ereporting";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "cert.optis.com" || location.hostname == "CERT.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://www.optis.com/cert/userEnroll.htm";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "beta.optis.com" || location.hostname == "BETA.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://genex-secure.optis.com";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "cookson.optis.com" || location.hostname == "COOKSON.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci6-secure.optis.com/cookson";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "fedexdemo.optis.com" || location.hostname == "FEDEXDEMO.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://beta-secure.optis.com/cms";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "prototype.optis.com" || location.hostname == "PROTOTYPE.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://prototype-secure.optis.com/unum";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "eagle.optis.com" || location.hostname == "EAGLE.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci10-secure.optis.com/eagle";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "eagleuat.optis.com" || location.hostname == "EAGLEUAT.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci11-secure.optis.com/eagle";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "castlecooke.optis.com" || location.hostname == "CASTLECOOKE.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci10-secure.optis.com/castle";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "castlecookeuat.optis.com" || location.hostname == "CASTLECOOKEUAT.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci11-secure.optis.com/castle";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "chevron.optis.com" || location.hostname == "CHEVRON.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci10-secure.optis.com/chevron";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "chevronuat.optis.com" || location.hostname == "CHEVRONUAT.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci11-secure.optis.com/chevron";
		cust_main(wPhone,newURL);
		cust_main(wPhone,newURL);
	} else if (location.hostname == "info.oci.com" || location.hostname == "INFO.OCI.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "http://www.oci.com/office-status";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "demo.optis.com" || location.hostname == "DEMO.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://beta2-secure.optis.com/demo";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "met.optis.com" || location.hostname == "MET.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://beta2-secure.optis.com/ams";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "cms.optis.com" || location.hostname == "CMS.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://beta2-secure.optis.com/cms";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "ams.optis.com" || location.hostname == "AMS.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://beta2-secure.optis.com/ams";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "cmstrial.optis.com" || location.hostname == "CMSTRIAL.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://oci9-secure.optis.com/ercms";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "sales.oci.com" || location.hostname == "SALES.OCI.COM") {
		var wPhone = "(800) 678-6614"
		var newURL = "https://sales-secure.oci.com/APFW/default.aspx";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "fedexground.optis.com" || location.hostname == "FEDEXGROUND.OPTIS.COM") {
		var wPhone = "(800) 678-6604"
		var newURL = "https://ams-secure.optis.com/fedexgrnd";
		cust_main(wPhone,newURL);
	} else if (location.hostname == "www.optis.com" || location.hostname == "WWW.OPTIS.COM") {
		OPTIS();
	} else {
		OCI();
	}
}