
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href= URL;
}


if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


/*
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
*/


//if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly

var imgdir;
var sitedir;
var scriptdir;
var homedir;

if(window.homepage)
{
imgdir="images/";
sitedir="";
scriptdir="js/";
homedir="";
}
else if(window.demo46)
{
imgdir="../../images/";
sitedir="../../";
scriptdir="../../js/";
homedir="../../";
}
else if(window.absolutepage)
{
imgdir="https://www.diclientsite.com/images/";
sitedir="https://www.diclientsite.com/";
scriptdir="https://www.diclientsite.com/js/";
homedir="https://www.diclientsite.com/";
}
else if(window.demo)
{
imgdir="../../images/";
sitedir="../../";
scriptdir="../../js/";
homedir="../../";
}
else
{
imgdir="../images/";
sitedir="../";
scriptdir="../js/";
homedir="../";
}

if (document.images) {
  
home_on = new Image(69,22);
home_on.src = imgdir + "cs_subnav_clientsite_on.gif";

home_off = new Image(69,22);
home_off.src = imgdir + "cs_subnav_clientsite_off.gif";

contacts_on = new Image(79,22);
contacts_on.src = imgdir + "cs_subnav_contacts_on.gif";

contacts_off = new Image(79,22);
contacts_off.src = imgdir + "cs_subnav_contacts_off.gif";

security_on = new Image(60,22);
security_on.src = imgdir + "cs_subnav_security_on.gif";

security_off = new Image(60,22);
security_off.src = imgdir + "cs_subnav_security_off.gif";

press_on = new Image(78,22);
press_on.src = imgdir + "cs_subnav_press_on.gif";

press_off = new Image(78,22);
press_off.src = imgdir + "cs_subnav_press_off.gif";

forms_on = new Image(78,22);
forms_on.src = imgdir + "cs_subnav_forms_on.gif";

forms_off = new Image(78,22);
forms_off.src = imgdir + "cs_subnav_forms_off.gif";

mydi_on = new Image(78,22);
mydi_on.src = imgdir + "cs_subnav_mydi_on.gif";

mydi_off = new Image(78,22);
mydi_off.src = imgdir + "cs_subnav_mydi_off.gif";
  

}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

//show-hide layers
function toggleVisibility(id, NNtype, IEtype, W3Ctype) {
    if (document.getElementById) {
    eval("document.getElementById(id).style.visibility = \"" + W3Ctype + "\"");
    } else {
    if (document.layers) {
    document.layers[id].visibility = NNtype;
    } else {
    if (document.all) {
    eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
            }
        }
    }
}


//Open Window Function
function openWin (url,width,height,extras) {
	if (window.open) {
		if (width < 0 || height < 0) {
			newWin = window.open(url,"new_win",extras);
		} else {
			newWin = window.open(url,"new_win","width="+ width +",height="+ height +","+ extras);
		}
	} else {
		return false;
	}
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.srifcu.org/Forms/OnlineForm.cgi?form=' + nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=700,height=600,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

function open_link(url){
	window.open(url);
}

function quickstartWindow(selection) {
	PreView = window.open("", "Preview", "screenX=0,screenY=0,top=0,left=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=800,height=600");
	PreView.document.open();
	PreView.document.write("<html>");
	PreView.document.write("<head>");
	PreView.document.write("<title>QuickStart Template Website</title>");
	PreView.document.write("</head>");
	PreView.document.write("");
	PreView.document.write("<body bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='window.focus();'>");
	PreView.document.write("");
	PreView.document.write("<form><div align=center>");
	PreView.document.write("<img " + "src=" + selection + " border=0>");
	PreView.document.write("<p>");
	PreView.document.write("<div align=center><input type='button' value='Close Window' " + " onClick='window.close()'></div>");
	PreView.document.write("</div></form>");
	PreView.document.write("");
	PreView.document.write("</body>");
	PreView.document.write("</html>");
	PreView.document.close();
}


/************************************** End of File ******************************************/

