
  	stdBrowser = (document.getElementById) ? true : false

		function popUp(evt,currElem,xceord,yceord ) {
			popUpWin = (stdBrowser) ? document.getElementById(currElem).style : eval("document." + currElem)
			if (document.all) {
				popUpWin.pixelTop = parseInt(evt.y)+yceord
				popUpWin.pixelLeft = Math.max(8,parseInt(evt.x)+xceord)
			}
			else {
				if (stdBrowser) {
					popUpWin.top = parseInt(evt.pageY)+yceord + "px"
					popUpWin.left = Math.max(8,parseInt(evt.pageX)+xceord) + "px"
				}
				else {
					popUpWin.top = parseInt(evt.pageY)+yceord
					popUpWin.left = Math.max(8,parseInt(evt.pageX)+xceord)
				}
			}
			popUpWin.visibility = "visible"
		}

		function popDown(currElem) {
			popUpWin = (stdBrowser) ? document.getElementById(currElem).style : eval("document." + currElem)
			popUpWin.visibility = "hidden"
		}
		
	


function countBytes(value) {
        var escapedStr = encodeURI(value);
        if (escapedStr.indexOf("%") != -1) {
            var count = escapedStr.split("%").length - 1;
            if (count == 0) {
            	count++;
            }
            var tmp = escapedStr.length - (count * 3);
            count = count + tmp;
            return count;
        } else {
            count = escapedStr.length;
            return count;
        }

     }


