 //function used to load 3 pages into specified frames
function loadFrames(frame1,page1,frame2,page2,frame3,page3) {
	eval("parent."+frame1+".location='"+page1+"'");
	eval("parent."+frame2+".location='"+page2+"'");
	eval("parent."+frame3+".location='"+page3+"'");
}

//function used to load 2 pages into specified frames
function clearFrames(frame1,page1,frame2,page2) {
if(window.name == "mainFrame") {
	eval("parent."+frame1+".location='"+page1+"'");
	eval("parent."+frame2+".location='"+page2+"'");
	}
}

//function used to clear 1 frame into specified frames
function clearFrame(frame1,page1) {
if(window.name == "mainFrame") {
	eval("parent."+frame1+".location='"+page1+"'");
	}
}

//function used to load 2 pages into specified frames
function clearFramesSearch(frame1,page1,frame2,page2) {
	eval("parent."+frame1+".location='"+page1+"'");
	eval("parent."+frame2+".location='"+page2+"'");
}

//function used to prevent 'View above...' from being
//displayed in the Mainframe
function displayLink() {
if(window.name == "mainFrame")
	document.write("");
else
	document.write("View above...");
}

//function used to prevent 'Go back...' from being
//displayed in the BottomFrame
function displayBack() {
if(window.name == "mainFrame")
	document.write("Go back...");
else
	document.write("");
}

//function used to load the passed page to the bottomFrame
//and clear the leftFrame
function loadFrame(page) {
if(window.name == "mainFrame") {
	eval("parent.bottomFrame.location='"+page+"'");
	eval("parent.leftFrame.location='../../layout/blank.html'"); 
	}
else
	eval("parent.leftFrame.location='"+page+"'");
}

//calls openIT with defined display parameters
function sizeScreen(width,height) {
mywin001=openIT('../../includes/index.html',width,height,null,null,'mywin001',5,true,true,true);
return false;
}

//function used to create a Chromeless window in Internet Explorer
function openIT(u,W,H,X,Y,n,b,x,m,r) {
	var cU  ='includes/images/navico/close.gif'   //gif for close on normal state.
	var cO  ='includes/images/navico/close.gif'  //gif for close on mouseover.
	var cL  ='includes/images/navico/clock.gif'      //gif for loading indicator.
	var mU  ='includes/images/navico/minimize.gif'     //gif for minimize to taskbar on normal state.
	var mO  ='includes/images/navico/minimize.gif'    //gif for minimize to taskbar on mouseover.
	var xU  ='includes/images/navico/max.gif'     //gif for maximize normal state.
	var xO  ='includes/images/navico/max.gif'    //gif for maximize on mouseover.
	var rU  ='includes/images/navico/restore.gif'     //gif for minimize on normal state.
	var rO  ='includes/images/navico/restore.gif'    //gif for minimize on mouseover.
	var tH  ='Diagnostic Imaging Pathways'   //title for the title bar in html format.
	var tW  ='Diagnostic Imaging Pathways'   //title for the task bar of Windows.
	var wB  ='#929a22'   //Border color.
	var wBs ='#929a22'   //Border color on window drag.
	var wBG ='#929a22'   //Background of the title bar.
	var wBGs='#929a22'   //Background of the title bar on window drag.
	var wNS ='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0'  //Html parameters for Netscape.
	var fSO ='scrolling=auto noresize'   //Html parameters for main content frame.
	var brd =b||5;   //Extra border size.
	var max =x||false;   //Maximize option (true|false).
	var min =m||false;   //Minimize to taskbar option (true|false).
	var res =r||false;   //Resizable window (true|false).
	var tsz =20;   //Height of title bar.
	return chromeless(u,n,W,H,X,Y,cU,cO,cL,mU,mO,xU,xO,rU,rO,tH,tW,wB,wBs,wBG,wBGs,wNS,fSO,brd,max,min,res,tsz)
}
