var NS4 = document.all || document.getElementById?false:true;

		function getCoorX(imgID) {
		  if (NS4) return eval(imgID).x
		  else return docjslib_getRealLeft(imgID);
		}
		
		function getCoorY(imgID) {  
		  if (NS4) return eval(imgID).y
		  else return docjslib_getRealTop(imgID);
		}
			
		function moveDivTo(selDiv,x,y){
			if (document.all) {
				document.all[selDiv].style.left=x;
				document.all[selDiv].style.top=y;
				document.all[selDiv].style.visibility="visible";
    	}else if (document.layers) {
		   	document.layers[selDiv].left=x;
				document.layers[selDiv].top=y;
				document.layers[selDiv].visibility="show";
    	}else if (document.getElementById) {
		   	document.getElementById(selDiv).style.left=x;
				document.getElementById(selDiv).style.top=y;
				document.getElementById(selDiv).style.visibility="visible";
    	}
		}				
		
		function docjslib_getRealLeft(imgElem) {
			xPos = eval(imgElem).offsetLeft;
			tempEl = eval(imgElem).offsetParent;
		  	while (tempEl != null) {
		  		xPos += tempEl.offsetLeft;
		  		tempEl = tempEl.offsetParent;
		  	}
			return xPos;
		}
		
		function docjslib_getRealTop(imgElem) {
			yPos = eval(imgElem).offsetTop;
			tempEl = eval(imgElem).offsetParent;
			while (tempEl != null) {
		  		yPos += tempEl.offsetTop;
		  		tempEl = tempEl.offsetParent;
		  	}
			return yPos;
		}
		
		function trim(strText) { 
			// this will get rid of leading spaces 
			while (strText.substring(0,1) == ' ') 
				strText = strText.substring(1, strText.length);
			
			// this will get rid of trailing spaces 
			while (strText.substring(strText.length-1,strText.length) == ' ')
				strText = strText.substring(0, strText.length-1);
			
			return strText;
		}				
		


		function openWin(url){
			var winWidth = 780;
			var winHeight = 433;
			var winLeft = screen.availWidth;
			winLeft=(winLeft/2)-(winWidth/2)-16;
			window.open(url,"Tools","width=" + winWidth + ",height=" + winHeight + ",left=" + winLeft + ",top=150,menubar=0,location=0,toolbar=0,personalbar=0,status=0,resizable=1,scrollbars=0");
		}
		
		function getStyleObject(objectId) {
		    if(document.getElementById && document.getElementById(objectId)) {
			return document.getElementById(objectId).style;
		    } else if (document.all && document.all(objectId)) {
			return document.all(objectId).style;
		    } else if (document.layers && document.layers[objectId]) {
				return getObjNN4(document,objectId);
		    } else {
			return false;
		    } 
		} 		