		var xmlHttp
		var divName
		
		var scriptName
		var tempX = 0;
		var tempY = 0;
		var refreshParent=0;
		var tblHeight=0;
		//asdf
		var IE = document.all?true:false

				// If NS -- that is, !IE -- then set up for mouse capture
				if (!IE) document.captureEvents(Event.MOUSEMOVE)

				// Set-up to use getMouseXY function onMouseMove
				document.onmousemove = getMouseXY;
		
		function getMouseXY(e) {
			  if (IE) { // grab the x-y pos.s if browser is IE
			    tempX = event.clientX + document.body.scrollLeft
			    tempY = event.clientY + document.body.scrollTop
			  } else {  // grab the x-y pos.s if browser is NS
			    tempX = e.pageX
			    tempY = e.pageY
			  }  
			  // catch possible negative values in NS4
			  if (tempX < 0){tempX = 0}
			  if (tempY < 0){tempY = 0}  
	
			  return true
			}
			
		function showFloatContent(page,divId,width,height,valueX,valueY){
			// alert(page+" "+divId+" "+width+" "+height);
			
			
				
			document.getElementById(divId).style.width = width+'px';
			document.getElementById(divId).style.height = height + 'px';
			
			 
			    if(valueY==1){
			    	tempY=tempY-300;
					document.getElementById(divId).style.top = tempY + 'px';
				}else if(valueY==0){
					var centerY=(document.body.clientHeight-document.getElementById(divId).offsetHeight)/2
					document.getElementById(divId).style.top = centerY;
				}else{
					var centerY=(document.body.clientHeight-document.getElementById(divId).offsetHeight)/2
					document.getElementById(divId).style.top = valueY;
				}	
		    
			 
		    if(valueX==1){
				
		    	document.getElementById(divId).style.left = tempX + 'px';
			}else if(valueX==0){
				var centerX=(document.body.clientWidth-document.getElementById(divId).offsetWidth)/2
				document.getElementById(divId).style.left = centerX;
			}else{
				var centerX=(document.body.clientWidth-document.getElementById(divId).offsetWidth)/2
				document.getElementById(divId).style.left = valueX;
			}
		    
		    changeContent(page,divId);   
			document.getElementById(divId).style.visibility = "visible";
				
		}
		
		function hideFloatContent(divId,isParent){
			 
			if(isParent==null || isParent==0){
				
				changeContent("close.php",divId);  
				document.getElementById(divId).style.visibility = "hidden";
			}else{
				if(isParent==1){
					parent.document.getElementById(divId).style.visibility = "hidden";
				}else if(isParent==2){
					parent.parent.document.getElementById(divId).style.visibility = "hidden";
				}
			}
		}
		
		function changeContent(page,divNameValue,userHeight)
		{ 
			
			xmlHttp=GetXmlHttpObject()
			if (xmlHttp==null)
			{
			 alert ("Browser does not support HTTP Request")
			 return
			} 
			
			divName=divNameValue
			if(userHeight!=null)
			{
				tblHeight=userHeight;
			}else{
				tblHeight=0;
			}
			
			xmlHttp.onreadystatechange=stateChangedResult
			xmlHttp.open("GET",page,true)
			xmlHttp.send(null)
			
		}
		
		
		function stateChangedResult() 
		{
			
			if (xmlHttp.readyState==1) 
			{ 
				
				document.getElementById(divName).innerHTML="<table height="+tblHeight+"><td valign=center width='100%'><img src='images/loading.gif'></td></table>";
			}
			else if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{ 
				
				reResult=xmlHttp.responseText;
				var test="<table style='border:1px solid black;background-color:white'><Td>asdfasjd fjalsjdfl </td></table>";
				
				document.getElementById(divName).innerHTML=reResult;
			} 
		}
		
		
		
		function GetXmlHttpObject()
		{
			var xmlHttp=null;
			try
			 {
			 // Firefox, Opera 8.0+, Safari
			 xmlHttp=new XMLHttpRequest();
			 }
			catch (e)
			 {
			 //Internet Explorer
			 try
			  {
			  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			  }
			 catch (e)
			  {
			  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
			 }
			return xmlHttp;
		}
		function linkMouseOver(obj)
		{
			document.body.style.cursor='hand';
		}
		
		function linkMouseOut(obj)
		{
			document.body.style.cursor='auto';
		}
		
		function openWindow(url)
		{
			window.open(url,'mywindow','status=0,toolbar=0,scrollbars=0,resizable=0,menubar=0,width=350,height=250,location=0'); 
		}
		
		function linkMouseClickedOut(obj)
		{
			document.body.style.cursor='auto';
		}
