var offsetxpoint=10 //Customize x offset of tooltipvar offsetypoint=20 //Customize y offset of tooltipvar ie=document.allvar ns6=document.getElementById && !document.allvar enabletip=falsevar helpdiv, helpshim;var currenthelpkey = ""var currenthelphtml = ""var xmlhttp=false;/*@cc_on @*//*@if (@_jscript_version >= 5)try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) {xmlhttp = false;}}@end @*/if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {	xmlhttp = new XMLHttpRequest();	}function inithelp(formname) {	if (ie||ns6) helpdiv=document.all? document.all["helpdiv"] : document.getElementById? document.getElementById("helpdiv") : ""	if (ie||ns6) helpshim=document.all? document.all["helpshim"] : document.getElementById? document.getElementById("helpshim") : ""	if (document.getElementById && document.createTextNode) {	var imgs=document.getElementsByTagName('img');	for (var i=0;i<imgs.length;i++) {		if (imgs[i].className=="help") {//			imgs[i].onmouseover=function(){help(this.id);return false}			imgs[i].onmousemove=function(){help(this.id);return false}			imgs[i].onmouseout=function(){hidehelp();return false}			}		}	}	form = formname		var x = document.getElementById('content');	if (!x) return;	x.onmouseover = function(){hidehelp();return false}}// AN IDEA FOR LATER!  WE CAN CHANGE THIS TO CACHE EACH LOOKED UP ENTRY INTO MEMORY, THEN IF THE USER GOES BACK TO A HELP FIELD IN THE SAME DOC/SESSION// IT'LL GET FROM CACHE AND NOT FROM AN XML LOOKUP!function help(field) {	field = field.split("h_")[1]	key = form + field		if (key != currenthelpkey) {		surl = "/help?readviewentries&restricttocategory=" + key		xmlhttp.open("GET", surl);		xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { showhelp(field) } }		xmlhttp.send(null);	} else 	{		showhelp(field)	}}function showhelp(field) {	if (ns6||ie){		mytext=(xmlhttp.responseText.indexOf("<text>")==-1) ? "Sorry ... help for " + field + " not found" : conv2simple(xmlhttp.responseText)		helpdiv.innerHTML=mytext		enabletip=true		currenthelpkey = key		currenthelphtml = mytext		return false	}}function hidehelp() {	if (ns6||ie){		enabletip=false		helpdiv.style.visibility="hidden"		helpdiv.style.left="-1000px"		helpdiv.style.backgroundColor=''		helpdiv.style.width=''		helpshim.style.visibility="hidden"		helpshim.style.left="-1000px"	}}function ietruebody(){	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function positiontip(e){	if (enabletip) {		var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;		var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;		var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20						//Find out how close the mouse is to the corner of the window		var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20		var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000		if (rightedge<helpdiv.offsetWidth)																																				//if the horizontal distance isn't enough to accomodate the width of the context menu			helpdiv.style.left=ie? ietruebody().scrollLeft+event.clientX-helpdiv.offsetWidth+"px" : window.pageXOffset+e.clientX-helpdiv.offsetWidth+"px"	//move the horizontal position of the menu to the left by it's width		else if (curX<leftedge)			helpdiv.style.left="5px"		else			helpdiv.style.left=curX+offsetxpoint+"px"																																	//position the horizontal position of the menu where the mouse is positioned			//same concept with the vertical position		if (bottomedge<helpdiv.offsetHeight)			helpdiv.style.top=ie? ietruebody().scrollTop+event.clientY-helpdiv.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-helpdiv.offsetHeight-offsetypoint+"px"		else			helpdiv.style.top=curY+offsetypoint+"px"		helpshim.style.left = helpdiv.style.left		helpshim.style.top = helpdiv.style.top		helpshim.style.height = helpdiv.offsetHeight		helpshim.style.visibility="visible"		helpdiv.style.visibility="visible"		}		}document.onmousemove=positiontip