	var dragapproved=false
	var minrestore=0
	var initialwidth,initialheight
	var ie5=document.all&&document.getElementById
	var ns6=document.getElementById&&!document.all
	var varframe	
	
	function iecompattest(){
	return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}
// Spawns a new, dhtml popup window 
		//[Blu 04/22/05]  Why 2 sets of curlies??
	function loadwindow(width,height,dwindow,cframe,src){
	{
	varframe=cframe;
	document.getElementById(dwindow).style.display=''
	document.getElementById(dwindow).style.width=initialwidth=width+"px"
	document.getElementById(dwindow).style.height=initialheight=height+"px"
	document.getElementById(dwindow).style.left=screen.width/4+"px"
	document.getElementById(dwindow).style.top=ns6? window.pageYOffset*1+60+"px" : iecompattest().scrollTop*1+60+"px"
	document.getElementById(cframe).className='Dhtmlpopupborder';
	document.getElementById(cframe).src=src;
	}
	}
// [Blu 04/22/05] Modified dhtml popup window 
// Include position and display params  >> width, height, position, top, left, display
	function loadwindowpos(ewidth,eheight,eposition,etop,eleft,edisplay,dwindow,cframe,esrc){	
		
		varframe=cframe;
		
		if (eposition == 'na') {
			eposition = 'absolute'
			eleft = screen.width/4
			etop = ns6? window.pageYOffset*1+60 : iecompattest().scrollTop*1+60
			}			
		
		document.getElementById(dwindow).style.width=initialwidth=ewidth+"px"	
				
		document.getElementById(dwindow).style.height=initialheight=eheight+"px"		
		document.getElementById(dwindow).style.top=etop+"px"
		document.getElementById(dwindow).style.left=eleft+"px"
		document.getElementById(dwindow).style.display=edisplay		
		document.getElementById(cframe).className='Dhtmlpopupborder';
		document.getElementById(cframe).src=esrc;
		}	
	
// Handles Maximize/Restore Event
	function maximize(dwindow,maxname,maxgif,restoregif){
	if (minrestore==0){
	minrestore=1 //maximize window
	document.getElementById(maxname).setAttribute("src",restoregif)
	document.getElementById(dwindow).style.width=ns6? window.innerWidth-20+"px" : iecompattest().clientWidth+"px"
	document.getElementById(dwindow).style.height=ns6? window.innerHeight-20+"px" : iecompattest().clientHeight+"px"
	document.getElementById(dwindow).style.left=ns6? window.pageXOffset+"px" : iecompattest().scrollLeft+"px"
	document.getElementById(dwindow).style.top=ns6? window.pageYOffset+"px" : iecompattest().scrollTop+"px"
	}
	else{
	minrestore=0 //restore window
	document.getElementById(maxname).setAttribute("src",maxgif)
	document.getElementById(dwindow).style.width=initialwidth
	document.getElementById(dwindow).style.height=initialheight
	document.getElementById(dwindow).style.left=screen.width/4+"px"
	document.getElementById(dwindow).style.top=ns6? window.pageYOffset*1+60+"px" : iecompattest().scrollTop*1+60+"px"
	}
	document.getElementById(varframe).className='Dhtmlpopupborder';
	}
// Close Event	
	function closeit(dwindow){
	
	document.getElementById(dwindow).style.display="none"
	}
// Spawns a dhtml popup for events from a frame page
	function loadwindowfromframes(width,height,dwindow,cframe,src){
	varframe=cframe;
	parent.document.getElementById(dwindow).style.display=''
	parent.document.getElementById(dwindow).style.width=initialwidth=width+"px"
	parent.document.getElementById(dwindow).style.height=initialheight=height+"px"
	parent.document.getElementById(dwindow).style.left=screen.width/4+"px"
	parent.document.getElementById(dwindow).style.top=ns6? window.parent.pageYOffset*1+60+"px" : iecompattest().scrollTop*1+60+"px"
	parent.document.getElementById(cframe).className='Dhtmlpopupborder';
	parent.document.getElementById(cframe).src=src;
	}
// Handles Maximize/Restore Event when dhtml is spawned from a frame page	
	function maximizefromframes(dwindow,cframe,maxname,maxgif,restoregif,width,height){
	varframe=cframe;
	initialwidth=width+"px"
	initialheight=height+"px"
	maximize(dwindow,maxname,maxgif,restoregif);
	}
	

	

