var jsLAID;var jsLBID;var jsUserType;var ShortCompanyName;var jsMBRSystemID;var agt=navigator.userAgent.toLowerCase(); // *** BROWSER VERSION *** // Note: On IE5, these return 4, so use is_ie5up to detect IE5. var is_major = parseInt(navigator.appVersion); var is_minor = parseFloat(navigator.appVersion); // Note: Opera and WebTV spoof Navigator.  We do strict client detection. // If you want to allow spoofing, take out the tests for opera and webtv. var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)                 && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)                 && (agt.indexOf('webtv')==-1)); var is_nav2 = (is_nav && (is_major == 2)); var is_nav3 = (is_nav && (is_major == 3)); var is_nav4 = (is_nav && (is_major == 4)); var is_nav5 = (is_nav && (is_major == 5)); var is_nav5up = (is_nav && (is_major >= 5)); var is_webtv = (agt.indexOf('webtv') !=- 1); var is_ie   = (agt.indexOf("msie") != -1); var is_ie3  = (is_ie && (is_major < 4)); var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 4.0") !=-1) ); var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );var is_ie501  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.01") !=-1) );  var is_ie55  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1) ); var is_ie6  = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.0") !=-1) ); var is_ie7  = (is_ie && (is_major == 4) && (agt.indexOf("msie 7.0") !=-1) );var is_ie8  = (is_ie && (is_major == 4) && (agt.indexOf("msie 8.0") !=-1) );var is_ie4up  = (is_ie && !is_ie3 );var is_ie5up  = (is_ie && !is_ie3 && !is_ie4 );var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie501&& !is_ie55);var is_ie3456  = ( is_ie3 || is_ie4 || is_ie5 || is_ie501 || is_ie55 || is_ie6);var is_ieMac  = (is_ie && (is_major == 4) && (agt.indexOf("mac") !=-1) ); var is_opera = (agt.indexOf("opera") != -1);var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);var is_opera6 = (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1);var is_opera7 = (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1);var is_opera7up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5 && !is_opera6);var is_opera8 = (agt.indexOf("opera 8") != -1 || agt.indexOf("opera/8") != -1);var is_opera8up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5 && !is_opera6 && !is_opera7);var is_opera9 = (agt.indexOf("opera 9") != -1 || agt.indexOf("opera/9") != -1);var is_konqueror = (agt.indexOf("konqueror") != -1);var is_konqueror1 = (agt.indexOf("konqueror/1") != -1);var is_konqueror2 = (agt.indexOf("konqueror/2") != -1);var is_konqueror3 = (agt.indexOf("konqueror/3") != -1);var is_konqueror3up = (is_konqueror && !is_konqueror1 && !is_konqueror2 );var is_safari = (agt.indexOf("mozilla") != -1 && agt.indexOf("safari") != -1);if (is_safari == true) { is_nav5up = false ; }var is_Mac  = (agt.indexOf("mac")!=-1) ; var is_Windows  = (agt.indexOf("windows")!=-1) ; var is_linux = (agt.indexOf("inux")!=-1);var is_unix  = ((agt.indexOf("x11")!=-1) || is_linux);var pathView = document.URL;pos = pathView.indexOf("nsf");var GNServerPath = pathView.substring(0, pos+3);var GNURLPath = pathView.substring(0, pos+3);var RAJWorkDBPath;slash = GNServerPath.indexOf( "http://" );tempString = GNServerPath.substring(7);slash = tempString.indexOf( "/" );tempString = tempString.substring(slash+1);RAJWorkDBPath = replaceSubstring(GNServerPath, "rentajudge.nsf", "raj/work.nsf") ;RAJWorkDBPath = replaceSubstring(RAJWorkDBPath, "rentajudge.nsf", "raj/work.nsf") ;var iHeight = "420" ;var iWidth = "760" ;function gotoRegister() {	newURL = "/fMBRSignup?OpenForm";	window.location = GNServerPath + newURL;}function setListeners() {	document.forms[0].GNGaltID.value = jsLAID;	if (is_nav5up || is_safari || is_konqueror3up ) {		cal1Tag = document.getElementById("IDSearchText") ;		cal1Tag.addEventListener("keydown", checkEnter, true) ;	}}function sessionLogout( ){	var logoutURL = GNServerPath + "?Logout&RedirectTo=" + GNServerPath ;	window.location =  logoutURL;}function openHelpPopup(helpURL){	var helpurl = helpURL ;	winpops=window.open(helpurl,"HelpPopup","width=556,height=500,scrollbars=yes,resizable=yes") ;}function goToForum() {	var forumurl = "/cpa/discussion.nsf" ;	winpops=window.open(forumurl,"Centripetal Arts Forum","width=1100,height=800,scrollbars=yes,resizable=yes") ;}function loadHelpPopup(helpURL){	var loadURL = GNServerPath + "/vSysHelpByTopic/" + helpURL + "?OpenDocument" ;	openHelpPopup(loadURL) ;}function popupImage(imgURL, width, height){	var helpurl = GNServerPath + imgURL ;	fWidth = width ;	fHeight = height ;	winpops=window.open(helpurl,"PopupImage","width=" + fWidth + ",height=" + fHeight + ",scrollbars=no,resizable=no") ;}// Search box enter/return handlerfunction checkEnter(e) {	var key;	if (!e) var e = window.event;	if (e.keyCode) key = e.keyCode;	else if (e.which) key = e.which;	if (key == 13) 	{		qstr = document.forms[0].GNSearchText.value;		if (qstr == "SEARCH" || qstr == "") {			alert("Please enter the search criteria.");		} else {			goSearch();		}		returnPressed = true;		return false;	} else {		return true;	}}function checkLoginEnter(e) {	var key;	if (!e) var e = window.event;	if (e.keyCode) key = e.keyCode;	else if (e.which) key = e.which;	if (key == 13) 	{		document.forms[1].submit();		return false;	} else {		return true;	}}function goSearch() {	var frm = document.forms[0];	searchVal = frm [ "GNSearchText" ].value;	searchVal = replaceSubstring ( searchVal, " ", "+" );	searchVal = replaceSubstring ( searchVal, ",", "" );	searchVal = replaceSubstring ( searchVal, ".", "" );	searchVal = replaceSubstring ( searchVal, "?", "" );	searchRange = "Site";	if ( frm .GNSearchType ) {		if ( frm .GNSearchType[ 1 ] . checked  == true ) { searchRange = "Section" ;	}	}	newURL = GNServerPath + "/fSearchResults?OpenForm&Start=1&Cat1=" + jsLAID  + "&Srchval=" + searchVal + "&Range=" + searchRange;	document.location.replace( newURL );}function changeInnerText( colText, colID ) {	jsColText = colText;	jsColID = colID;	if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) {		document.getElementById( jsColID ).innerHTML = colText;	}	if (is_ie4) {		document.all[ jsColID ].innerHTML = colText ;	}}function getGNRandomNumber( range ) {	jsRange = range;	//get random number between 0 and length-1	randomNum = 1 + Math.floor((jsRange * Math.random()));	if ( randomNum == jsRange + 1 ) { randomNum = jsRange;}	return randomNum;}function GNViewArticle(DocKey) {	jsDocKey = DocKey ;	fullOpenCommand = "vGNCNTDisplayByDocKey/" + jsDocKey + "?OpenDocument" ;	composeString = replaceSubstring(fullOpenCommand, " ", "+") ;	iWidth = "600" ;	iHeight = "520" ;	openGNDialog(composeString, iWidth, iHeight, redisplayContent, ",scrollbars=yes") ;}function GNLoadPage(loadURL){	var textString = loadURL ;	startTextPos = textString.indexOf( "&Cat1=" );	backTextPos = textString.indexOf( "&Cat2=" );	ExtractText = textString.substring(startTextPos + 6, backTextPos);	if ( ExtractText == "home" ) {		domForm = "fHome";	} else if ( ExtractText == "howitworks" ) {		domForm = "fHowItWorks";	} else if ( ExtractText == "services" ) {		domForm = "fServices";	} else if ( ExtractText == "news" ) {		domForm = "fNews";	} else if ( ExtractText == "faq" ) {		domForm = "fFAQ";	} else if ( ExtractText == "sitemap" ) {		domForm = "fSiteMap";	} else if ( ExtractText == "termsofuse" ) {		domForm = "fTermsOfUse";	} else if ( ExtractText == "privacy" ) {		domForm = "fPrivacy";	} else if ( ExtractText == "copyright" ) {		domForm = "fCopyright";	} else if ( ExtractText == "contact" ) {		domForm = "fContact";	} else if ( ExtractText == "links" ) {		domForm = "fLinks";	}	if (jsUserType == "SiteAdmin" ) {		pageURL = domForm + "_edit?OpenForm";	} else {		pageURL = domForm + "?OpenForm";	}	if ( pageURL.indexOf( "www." ) != -1 ) {		if ( pageURL.indexOf( "http://" ) == -1 ) {			pageURL = "http://" + pageURL ;		}	}	// deal with new window if this is an external URL - later	window.location = pageURL}function GNSitePageLink(loadURL){	var pageURL = loadURL ;	window.location = GNServerPath + replaceSubstring(pageURL, "GNPublic", "Public1") ;}function flip(expNum) {	if (viewFirstLine == "" ) { viewFirstLine = expNum}	viewLastLine = expNum ;	x = 1-x;	xcount +=1;	outline(x);}function outline(x) {	document.write("</tr>") ;	if (x == 1)  {		document.write("<tr bgcolor=" + jsFormBodyColor + ">") ;	} else {		document.write("<tr bgcolor=" + jsFormHilightColor + ">") ;	}}function newLineFlip(expNum, program, mode, dockey) {	jsProgram = program ;	jsMode = mode ;	jsDocKey = dockey ;	if (viewFirstLine == "" ) { viewFirstLine = expNum}	viewLastLine = expNum ;	x = 1-x;	xcount +=1;	newOutline(x, jsProgram, jsMode, jsDocKey);}function newOutline(x, program, mode, dockey) {	jsProgram = program ;	jsMode = mode ;	jsDocKey = dockey ;	ViewButtonHTML = 'View' ;	EditButtonHTML = 'Edit' ;	if ( jsMode == "Edit" ) {		ButtonHTML = EditButtonHTML ;	} else {		ButtonHTML = ViewButtonHTML ;	}	hrefString = '<a class="viewLink" href="javascript:' + jsProgram + "('" + jsMode + "', '" + jsDocKey + "');" + '">' + ButtonHTML + '</a>'	document.write("</tr>") ;	if (x == 1)  {		fullHTML = '<tr bgcolor=' + jsFormBodyColor + '><td height=20 valign="top" style="padding-left:5px; padding-top:5px;">' + hrefString + "</td>" ;	} else {		fullHTML = '<tr bgcolor=' + jsFormHilightColor + '><td height=20 valign="top" style="padding-left:5px; padding-top:5px;">' + hrefString + "</td>" ;	}	document.write( fullHTML ) ;}function showNextPage() {	if (ViewComplete == "N" ) { return ; }	catPos = pathView.indexOf("&Cat1=");	startPos = pathView.indexOf("&Start=");	pathLength = pathView.length ;	newLastLine = parseInt(lastLine) + 1 ;	if (startPos > -1) {		firstString = pathView.substring(0, startPos) + "&Start=" + newLastLine;		lastString = pathView.substring(catPos, pathLength) ;	} else {		firstString = pathView.substring(0, catPos) + "&Start=" + newLastLine;		lastString = pathView.substring(catPos, pathLength) ;	}	newString = firstString + lastString ;	window.location.replace(newString) ;} function showPreviousPage() {	if (ViewComplete == "N" ) { return ; }	catPos = pathView.indexOf("&Cat1=");	startPos = pathView.indexOf("&Start=");	pathLength = pathView.length ;	prevPageFirstLine = firstLine - MaxLines ;	if (prevPageFirstLine <= 1) { prevPageFirstLine = 1}	if (startPos > -1) {		firstString = pathView.substring(0, startPos) + "&Start=" + prevPageFirstLine;		lastString = pathView.substring(catPos, pathLength) ;	} else {		firstString = pathView.substring(0, catPos) + "&Start=" + prevPageFirstLine;		lastString = pathView.substring(catPos, pathLength) ;	}	newString = firstString + lastString ;	window.location.replace(newString) ;} function trim (field) {	if ( field == null ) return;	var tempString = document.forms[0] [ field ] [ "value" ];	if ( tempString == "" ) return;	var startPos = 0;	var newString = '';	var testCharPos = 0;	tempString = tempString + " ";	var tempLength = tempString.length;	var endPos = tempLength + 1;	while (startPos < endPos) {		testCharPos = tempString.indexOf(" ", startPos);		newString = tempString.substring(0,testCharPos + 1);		for (var i = testCharPos + 1; i < tempLength + 1; i++)  {			if ( tempString.charAt(i) != " " ) break;		}		newString = newString + tempString.substring(i, tempLength) + '';		tempString = newString + '';		if ( i == tempLength) break;		tempLength = tempString.length;		startPos = testCharPos + 1;		endPos = tempLength + 1;	}	tempLength = tempString.length;	if ( tempString.charAt(tempLength - 1) == " " ) {		tempString =  tempString.substring(0, tempLength - 1) + '';	}	if ( tempString.charAt(0) == " " ) {		tempString =  tempString.substring(1, tempLength) + '';	}	document.forms[0] [ field ] [ "value" ] = tempString;}function trim1 (field) {	if ( field == null ) return;	var tempString = document.forms[1] [ field ] [ "value" ];	if ( tempString == "" ) return;	var startPos = 0;	var newString = '';	var testCharPos = 0;	tempString = tempString + " ";	var tempLength = tempString.length;	var endPos = tempLength + 1;	while (startPos < endPos) {		testCharPos = tempString.indexOf(" ", startPos);		newString = tempString.substring(0,testCharPos + 1);		for (var i = testCharPos + 1; i < tempLength + 1; i++)  {			if ( tempString.charAt(i) != " " ) break;		}		newString = newString + tempString.substring(i, tempLength) + '';		tempString = newString + '';		if ( i == tempLength) break;		tempLength = tempString.length;		startPos = testCharPos + 1;		endPos = tempLength + 1;	}	tempLength = tempString.length;	if ( tempString.charAt(tempLength - 1) == " " ) {		tempString =  tempString.substring(0, tempLength - 1) + '';	}	if ( tempString.charAt(0) == " " ) {		tempString =  tempString.substring(1, tempLength) + '';	}	document.forms[1] [ field ] [ "value" ] = tempString;}function trimValue (fieldValue) {	var tempString = fieldValue;	if ( tempString == "" ) return;	var startPos = 0;	var newString = '';	var testCharPos = 0;	tempString = tempString + " ";	var tempLength = tempString.length;	var endPos = tempLength + 1;	while (startPos < endPos) {		testCharPos = tempString.indexOf(" ", startPos);		newString = tempString.substring(0,testCharPos + 1);		for (var i = testCharPos + 1; i < tempLength + 1; i++)  {			if ( tempString.charAt(i) != " " ) break;		}		newString = newString + tempString.substring(i, tempLength) + '';		tempString = newString + '';		if ( i == tempLength) break;		tempLength = tempString.length;		startPos = testCharPos + 1;		endPos = tempLength + 1;	}	tempLength = tempString.length;	if ( tempString.charAt(tempLength - 1) == " " ) {		tempString =  tempString.substring(0, tempLength - 1) + '';	}	if ( tempString.charAt(0) == " " ) {		tempString =  tempString.substring(1, tempLength) + '';	}	return tempString;}function showObject( Obj) {	jsObjectID = Obj	if (is_ie5up || is_nav5up || is_safari || is_konqueror3up || is_opera7up ) { 		if ( document.getElementById( jsObjectID ) ) {			document.getElementById( jsObjectID ).style.visibility = "visible"; 			document.getElementById( jsObjectID ).style.display = "";		} else {			//alert( showobj + " not found" );		}	} else if (is_ie4) {		if ( document.all[ jsObjectID ] ) {			document.all[ jsObjectID ].style.visibility = "visible";			document.all[ jsObjectID ].style.display = "";		} else {			//alert( showobj + " not found" );		}	}}function showObj( ObjectID ) {	jsObjectID = ObjectID;	if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) {		document.getElementById( ObjectID ).style.visibility = "visible" ;	} else if (is_ie4) {		document.all[ ObjectID ].style.visibility = "visible" ;	}}function hideObject( Obj ) {	jsObjectID = Obj	if (is_ie5up || is_nav5up || is_safari || is_konqueror3up || is_opera7up ) { 		if ( document.getElementById( jsObjectID ) ) {			document.getElementById( jsObjectID ).style.visibility = "hidden"; 			document.getElementById( jsObjectID ).style.display = "none";			document.getElementById( jsObjectID ).value = "";		} else {			//alert( hideobj + " not found" );		}	} else if (is_ie4) {		if ( document.all[ jsObjectID ] ) {			document.all[ jsObjectID ].style.visibility = "hidden";			document.all[ jsObjectID ].style.display = "none";		} else {			//alert( hideobj + " not found" );		}	}}function hideObj( ObjectID ) {	jsObjectID = ObjectID;	if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) {		document.getElementById( ObjectID ).style.visibility = "hidden" ;	} else if (is_ie4) {		document.all[ ObjectID ].style.visibility = "hidden" ;	}}function checkSetup(jsUserMode) {	tempFormName = document.forms[0].name	showCaret = new Image() ;	showCaret.src = jsLACaret ;	// setDefaultSelection() ;	if ( jsUserMode == "Admin" ) {		setAdminBoxLocation() ;	}	return ;}function generateSystemID() {	currentDate = new Date() ;	currentMS = currentDate.getTime() + "";	currentMSLength = currentMS.length ;	newMS = "RJ" + currentMS.substring(currentMSLength - 11) ;	return newMS ;}function replaceSubstring(charString, search, replace) {	var tempCharString = charString + '';	var searchChars = search + '';	var replaceChars = replace + '';	p = 0;	while (p < tempCharString.length && (p = tempCharString.indexOf(searchChars, p)) >= 0) {		tempCharString = tempCharString.substring(0, p) + replaceChars + tempCharString.substring(p + searchChars.length, tempCharString.length);		p += replaceChars.length;	}	return tempCharString;}	//------------------------- START Modal Dialog Code ---------------------------// show the opaque layer under the windowfunction hideParentOpaqueLayer() {	if ( is_ie ) {		opener = window.dialogArguments;	}	if (opener) opener.hideObj( "opaqueLayer" ) ;}// Close the dialog.function closeme() {   window.close() ;} // Handle click of the Cancel button.function handleCancel() {   closeme() ;   return false ;}// Handle click of OK button.function handleGNSubmit() {   if (opener && !opener.closed) {		opener.dialogWin.returnFunc() ;   } else {      alert("You have closed the main window.\n\nNo action will be taken on the choices in this dialog box.")   }   // closeme() ;   return false ;}function redisplayContent() {	document.location.reload(true) ;}function GNNoAction() {	return ;}function GNReloadSite() {	fullOpenCommand = GNServerPath + "/" ;	window.location.replace(fullOpenCommand);}// One object tracks the current modal dialog opened from this window.var dialogWin = new Object() ;// Generate a modal dialog.// Parameters://    url -- URL of the page/frameset to be loaded into dialog//    width -- pixel width of the dialog window//    height -- pixel height of the dialog window//    returnFunc -- reference to the function (on this page)//                  that is to act on the data returned from the dialog//    args -- [optional] any data you need to pass to the dialogfunction openGNDialog(url, width, height, returnFunc, winType, args) {	if (!dialogWin.win || (dialogWin.win && dialogWin.win.closed)) {				// Initialize properties of the modal dialog object.		dialogWin.returnFunc = returnFunc;		dialogWin.returnedValue = "";		//dialogWin.args = args		dialogWin.url = url;		dialogWin.width = width;		dialogWin.height = height;		// Keep name unique so Navigator doesn't overwrite an existing dialog.		dialogWin.name = (new Date()).getSeconds().toString();		// Assemble window attributes and try to center the dialog.		dialogWin.left = (screen.width - dialogWin.width) / 2;		dialogWin.top = (screen.height - dialogWin.height) / 2 - 15 ;		if ( winType == "modal") {			showObj( "opaqueLayer" );			if (window.showModalDialog) {				// deal with the scrolling part				//alert( "full modal dialog")				if ( args.indexOf( "scrollbars=yes " ) != -1 ) {					if ( is_safari ) { 						args = "scrollbars:yes;";					} else {						args = "scroll:yes;";					}				} else {					if ( is_safari ) { 						args = "scrollbars:no;";					} else {						args = "scroll:no;";					}				}    				window.showModalDialog(dialogWin.url, self,"center:yes;resizable:no;status:no;" + args + "dialogwidth:" + dialogWin.width + "px;dialogheight:" + dialogWin.height + "px");   			} else {				var attr = "height=" + dialogWin.height + ",width=" + dialogWin.width + ",left=" + dialogWin.left + ",top=" + dialogWin.top + ",toolbar=no,status=no,resizable=no,modal=yes"  + args;				dialogWin.win=window.open(dialogWin.url, dialogWin.name, attr, false);				dialogWin.win.focus();   			}		} else {			var attr = "height=" + dialogWin.height + ",width=" + dialogWin.width + ",left=" + dialogWin.left + ",top=" + dialogWin.top + ",toolbar=no,status=no,resizable=no"  + args;			//alert( attr )			dialogWin.win=window.open(dialogWin.url, dialogWin.name, attr, false);			dialogWin.win.focus();		}	} else {		dialogWin.win.focus();	}}//-------------------------END  Modal Dialog Code ---------------------------// ------------------------START the document layer position code   --------------function setPopUpLayerLocation( popupName ) {	jspopupName = popupName ;	if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) {		navLinksTableObj = document.getElementById("GNAdminTools") ;			yPos = parseInt(findPosY(navLinksTableObj)) ;		xPos = parseInt(findPosX(navLinksTableObj) + 150) ;		// alert ( yPos )		// alert  (xPos )		xSetPos = parseInt(document.body.clientWidth/2 - 125)		ySetPos = parseInt(findPosY(navLinksTableObj) + 235) ;		xSFPos = parseInt(document.body.clientWidth/2 - 150)		ySFPos = parseInt(findPosY(navLinksTableObj) + 130) ;		} else if (is_ie4) {		navLinksTableObj = document.all["GNAdminTools"] ;		yPos = parseInt(findPosY(navLinksTableObj)) ;		xPos = parseInt(findPosX(navLinksTableObj) + 175) ;		xSetPos = parseInt(document.body.clientWidth/2 - 125)		ySetPos = parseInt(findPosY(navLinksTableObj) + 235) ;		xSFPos = parseInt(document.body.clientWidth/2 - 130)		ySFPos = parseInt(findPosY(navLinksTableObj) + 50) ;		if ( document.all[ jspopupName ] ) {						document.all[ jspopupName ].style.left = xPos ;			document.all[ jspopupName ].style.top = yPos ;		}	}		LayersSet = "Yes" ;	return ;}function findPosX(obj) {	var curleft = 0;	if (obj.offsetParent)	{		while (obj.offsetParent)		{			curleft += obj.offsetLeft			obj = obj.offsetParent;		}	}	else if (obj.x)		curleft += obj.x;	return curleft;}function findPosY(obj) {	var curtop = 0;	if (obj.offsetParent)	{		while (obj.offsetParent)		{			curtop += obj.offsetTop			obj = obj.offsetParent;		}	}	else if (obj.y)		curtop += obj.y;	return curtop;}function setOpaqueLayerSize() {	if ( is_ie ) {		winWidth = document.body.offsetWidth;		winHeight = document.body.offsetHeight;	} else {		winWidth = window.innerWidth;		winHeight = window.innerHeight;	}	//alert( "winWidth = " + winWidth + " winHeight = " + winHeight )	if (is_ie5up || is_nav5up || is_opera7up || is_safari || is_konqueror3up ) {		if ( document.getElementById("opaqueLayer") ) {			document.getElementById("opaqueLayer").style.left = "0px" ;			document.getElementById("opaqueLayer").style.top = "0px" ;			document.getElementById("opaqueLayer").style.width= winWidth + "px" ;			document.getElementById("opaqueLayer").style.height= winHeight + "px" ;			//alert( "set!!")		}	} else if (is_ie4) {		if ( document.all["opaqueLayer"] ) {						document.all["opaqueLayer"].style.left = 0 ;			document.all["opaqueLayer"].style.top = 0 ;			document.all["opaqueLayer"].style.width = winWidth ;			document.all["opaqueLayer"].style.height = winHeight ;		}	}	return ;}// ------------------------END the document layer position code   --------------//This indicates that the Calculations library has loadedGeneralLibLoaded = "Yes";