
	
	
	var _x;
	var _y;
	var lastKeyPress;



	//#####################################################################
	function switchClass(obj,strClassName) {
		obj.className	= strClassName;
	}
	//#####################################################################
	function gotoURL(strUrl) {
		location = 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 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 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;
	}
	//#####################################################################

