
	//
	//START GLOBAL VARS
		var iC = 0;
	
	//
	//
	
	//
	//START ACCESSOR METHODS
	
				//USED TO GET THE TOP POSTION FOR POPUPS
				function getTPos(){
					var iTP = 0;
					
					//set the left edge of the popup to start at 80% of the screen's width.
					iTP = screen.width - (screen.width * .80);					
					//if they have a small screen make sure it lines up on the 300px.					if(iTP<250){						iTP = 250;					}					
					return iTP;
				}	
					//USED TO GET THE LEFT POSITION FOR POPUPS
				function getLPos(){
					var iLP = 0;
										//set the left edge of the popup to start at 30% of the screen's width.
					iLP = screen.width - (screen.width * .70);					
					//if they have a small screen make sure it lines up on the 300px.					if(iLP<300){						iLP = 300;					}
					return iLP;
				}
	
	
				//USED TO DETERMINE THE WIDTH OF A POPUP WINDOW
				function getScreenW(){
					var iX = 0;
										//set the width of the popup to 40% of the screen's width.
					iX = screen.width - (screen.width * .60);
					
					//if they have a small screen make sure it is at least 400px wide.
					if(iX < 400){
						iX = 400;					}					
					return iX;
				}
						//USED TO DETERMINE THE HEIGHT OF A POPUP WINDOW
				function getScreenH(){
					var iY = 0;
					
					//set the width of the popup to 40% of the screen's height.
					iY = screen.height - (screen.height * .60);
					
					//if they have a small screen make sure it is at least 400px height.
					if(iY < 400){
						iY = 400;					}										return iY;
				}
				
	//END ACCESSOR METHODS 
	//
	
	
	
	
	
	
	//
	//START MUTATOR METHODS
	
				//RESETS THE WINOPEN VAR... NO LONGER BEING USED.				function setWinOpen(){					winOpen = 1;				}	
	
				//SETS THE WINCLOSED VAR TO FALSE... NO LONGER BEING USED.				function setWinClosed(){					alert('setClosed');					winOpen = 0;				}
				
				
				
				
				//USED TO INCREMENT THE GLOBAL COUNTER USED IN MULTI-POPUP SITUATIONS.
				function incWinCnt(){

					iC++;
					
					return iC;			
				}
				
	
	//END MUTATOR METHODS
	//
	
	
	
	
	
	
	//
	//START ROLLOVER RELATED METHODS 
		
				function MM_swapImgRestore() { //v3.0					var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;				}				function MM_preloadImages() { //v3.0					var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();					var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)					if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}				}				function MM_findObj(n, d) { //v4.01					var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {					d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}					if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];						for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);							if(!x && d.getElementById) x=d.getElementById(n); return x;				}				function MM_swapImage() { //v3.0					var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)					if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}				}
	
	
	//END ROLLOVER RELATED METHODS
	//
	
	
	
	
	
	//
	//START WORKER FUNCTIONS
	
	
				//LAUNCHES A POPUP
				function nagPopUp(url){
						var winOpen,winCnt;
						winOpen = 0;
						winCnt = incWinCnt("++");

						//BUILD A DYNAMIC NAME
						var winName = "Nag_Screen"+ winCnt;
							
						//THE ADDITIONAL MATH FOR POS VARS STAGGERS THE POPUP WINDOWS..
						//WHEN MULTIPLE POPUPS ARE LAUNCHED SIMOTANEOUSLY.
						var tPos = getTPos() + (winCnt * 30);
						var lPos = getLPos() + (winCnt * 30);
						
						//GET DYNAMIC HEIGHT AND WIDTH
						var scrnW = getScreenW();
						var scrnH = getScreenH();


						window.open(url,winName,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+ scrnW +",height="+ scrnH +",top="+ tPos +",left="+ lPos);
				}



	
				//DISPLAYES A FORM IN A POP UP WINDOW...
				//APPEARS TO BE THE SAME FUNCTION AS DISPCHAPTER()				function dispForm(url){
						var winOpen = 0;
												var tPos = getTPos();
						var lPos = getLPos();
						var scrnW = getScreenW();
						var scrnH = getScreenH();													window.open(url,"OncuraPartners","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+ scrnW +",height="+ scrnH +",top="+ tPos +",left="+ lPos);				}
	
	
	
				//USED TO UNCHECK THE CHECKBOXES IN CLINICALEXAMMAST.ASP
				function unCheckMe(eNo,fName){
					//eNo = element number of the input you wish to uncheck
					//fName = name of the form containing oName

					document.abSys.elements[eNo].checked = 0;
				}
	
	
	
				//THIS FUNCTION IS CALLED FROM THE CLINCALEXAMMAST.ASP INCULDE FILE
				function abSystem(url,eNo,fName){
					unCheckMe(eNo,fName);
					dispForm(url);
				}


				//THIS FUNCTION WAS ORIGINALLY USED TO OPEN POP UPS FOR THE BOOK... 
				//IT MAY BE DEPRECATED ALREADY BY THE HELP SYSTEM.
				function dispChapter(url){
						var winOpen = 0;

						var tPos = getTPos();
						var lPos = getLPos();
						var scrnW = getScreenW();
						var scrnH = getScreenH();
						
						window.open(url,"OncuraPartners","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+ scrnW +",height="+ scrnH +",top="+ tPos +",left="+ lPos);
				}
	
	
				//REDIRECTS THE PARENT TO THE DESIRED LOCATION.
				function redirectParent(url){
					if(url != null){
						opener.location.href=url;
						window.close();
					}
				}
				
				
				//USED TO CLOSE WINDOWS CONTAINING THE POPUP HEADER/FOOTER TEMPLATE
				function close_window() {
				    window.close();
				}
	

				//MIMICS THE BACK BUTTON IN THE BROWSER.
				function goBack(){
					javascript:history.back(-1)
				}
			
			
				//USED TO REFRESH THE CURRENT PAGE
				function refreshPage(sMID,sDestURL){
					if(sMID == ""){
						document.location.href = sDestURL;
					}else{
						if(this.location.href.indexOf("login") == -1){
							document.location.href = document.location.href;
						}
					}
				}
	
	//END WORKER FUNCTIONS
	//
	
	
	