        function ChangeImg() {
          if(document.images) {
            eval("document."+ChangeImg.arguments[0]+".src=('"+ChangeImg.arguments[1]+"')");
          }
        }

        function MM_preloadImages() {
          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];}}
        }

	IsNs = ( navigator.appName.indexOf("Netscape") >= 0 )? true:false;
	
	var _x;
	var _y;
	var lastKeyPress;

	document.onmousemove	= GrabMouseCoordinates;
	document.onkeydown	= GrapKeyPress;

	if (IsNs) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP | Event.MOUSEMOVE | Event.KEYDOWN);
	//#####################################################################
	function switchClass(obj,strClassName) {
		obj.className	= strClassName;
	}
	//#####################################################################
	function gotoURL(strUrl) {
		document.location.href = strUrl;
	}
	//#####################################################################
	function displayConfirm(text, URL) {
		if (confirm(text)) location.href = URL
	}
	//#####################################################################
	function openPopup(windowname, URL, sw, sh) {
		popWindow = window.open(URL,windowname,"scrollbars=auto,status=yes,resizable=yes,width=" + sw + ",height=" + sh);
	}
	//#####################################################################

	//#####################################################################

	//#####################################################################

	//#####################################################################
	function checkEnterPress(functionToCall) {		
		if(lastKeyPress == 13) {
			eval(functionToCall);
		}		
	}
	//#####################################################################
	function SetOption(obj,strValue) {
		if(strValue != '') {
			for(i = 0; i < obj.length; i++) {
				if(obj.options[i].value == strValue) obj.options[i].selected = true;
			}
		}
	}
	//#####################################################################
	function GrapKeyPress(e) {
		if (IsNs)
			var iKey=e.which;
		else
			var iKey=event.keyCode;
			
		lastKeyPress = iKey;
	}
	//#####################################################################
	function GrabMouseCoordinates(e) {
		
		if(IsNs) {
			_x = e.clientX;
			_y = e.clientY
			//window.pageYOffset
		}
		else {
			_x = window.event.clientX;
			_y = window.event.y + document.body.scrollTop
		}
		
		//Debug :
		//status = _x + 'x' + _y
		//status = document.body.scrollTop;
	
		return true;
	}
	//#####################################################################


