
//rollover function for left side navigation
function rollOver(imName,over) {
    if (over) { document.images[imName].src = eval(imName + "2.src") }
         else { document.images[imName].src = eval(imName + "1.src") }
}
//rollover function for left side navigation in module levels
function rollOver2(imName,over) {
    if (over) { document.images[imName].src = eval("../" + imName + "2.src") }
         else { document.images[imName].src = eval("../" + imName + "1.src") }
}
//open window functions for try me, show me, and tell me
var infoWindow
function newWindow(url) {
	if (!infoWindow || infoWindow.closed) {
		infoWindow = window.open(url,"infoit","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=800,height=650,left=70,top=40");
     }
	 else {
		// window's already open; bring to front and update
		infoWindow = window.open(url,"infoit","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=640,height=480,left=10,top=10");
	 	infoWindow.focus();
	 }	
}
var tellWindow
function new_window(url) {
	if (!tellWindow || tellWindow.closed) {
		tellWindow = window.open(url,"tellit","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,height=400,width=340,left=10,top=10");
     }
	 else {
		// window's already open; bring to front and update
		tellWindow.close();
		tellWindow = window.open(url,"tellit","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,height=400,width=340,left=10,top=10");
	 }	
}
var tellWindow2
function new_window2(url) {
	if (!tellWindow2 || tellWindow2.closed) {
		tellWindow2 = window.open(url,"tellit2","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,height=400,width=360,left=400,top=10");
     }
	 else {
		// window's already open; bring to front and update
		tellWindow2.close();
		tellWindow2 = window.open(url,"tellit2","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,height=400,width=360,left=400,top=10");
	 }	
}
var showWindow
function show_window(url) {
	if (!showWindow || showWindow.closed) {
		showWindow = window.open(url,"showit","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,height=400,width=340,left=400,top=10");
     }
	 else {
		// window's already open; bring to front and update
		showWindow.close();
		showWindow = window.open(url,"showit","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,height=400,width=340,left=400,top=10"); 	
	 }	
}
var tryWindow
function openWindow(url,height,width) {
	if (!tryWindow || tryWindow.closed) {
		tryWindow = window.open(url,"tryit","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,left=150,top=10,height="+height+",width="+width);
     }
	 else {
		// window's already open; close,update,bring to front and update
		tryWindow.close();
		tryWindow = window.open(url,"tryit","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,left=150,top=10,height="+height+",width="+width);
	}	
}
var tryWindow2
function openWindow2(url,height,width) {
	if (!tryWindow2 || tryWindow2.closed) {
		tryWindow2 = window.open(url,"tryit2","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,left=200,top=100,height="+height+",width="+width);
     }
	 else {
		// window's already open; close,update,bring to front and update
		tryWindow2.close();
		tryWindow2 = window.open(url,"tryit2","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,left=200,top=100,height="+height+",width="+width);
	}	
}
var printForm
//for word documents
function openForm(url){
      if(!printForm || printForm.closed){
       printForm=window.open(url,"printForm","resizable,scrollbars,menubar,width=640,height=600");
	   }
	   else{
	   printForm.focus();
	   }
} 
var printForm2
//for word documents
function openForm2(url){
      if(!printForm2 || printForm2.closed){
       printForm2=window.open(url,"printForm2","resizable,scrollbars,menubar,width=640,height=640");
	   }
	   else{
	   printForm2.focus();
	   }
}
var popupWindow
// pop-up Window for index page referencing "Getting Started"
function popWindow(url,height,width) {
	if (!popupWindow || popupWindow.closed) {
		popupWindow = window.open(url,"popup","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,left=200,top=50,height="+height+",width="+width);
     }
	 else {
		// window's already open; close,update,bring to front and update
		popupWindow.close();
		popupWindow = window.open(url,"popup","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,left=200,top=50,height="+height+",width="+width);
	 }
}	 
var popupWindow2
// pop-up Window for tips in stress management
function popWindow2(url,height,width) {
	if (!popupWindow2 || popupWindow2.closed) {
		popupWindow2 = window.open(url,"popup2","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,left=400,top=20,height="+height+",width="+width);
     }
	 else {
		// window's already open; close,update,bring to front and update
		popupWindow2.close();
		popupWindow2 = window.open(url,"popup2","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,left=400,top=20,height="+height+",width="+width);
	 }
}	



