function launchUserHelp(helpFile, showFrame, orgId) {
	launchFQUserHelp("", helpFile, showFrame, orgId);
}

function openUserPref(lnk){
	window.location.href=lnk + "&urlRedirect=" + escape(window.location.href);
}

function launchFQUserHelp(baseUrl, helpFile, showFrame, orgId) {
	var center = 1;
	if (showFrame) {
		var width=550;
		helpFrame = "&useFrame=true";		
	} else {
		var width=350;
		helpFrame = "&useFrame=false";
	}
	args=getHelpArgs(width,375,center,0);
	if ((parseInt(navigator.appVersion) >= 4 ) && (center))
	{
		if(window.formhelp && !window.formhelp.closed)
		{
			formhelp.close();
		}
	}
	
	var helpUrl = "";
	
	if (baseUrl != "") {
		helpUrl = baseUrl + "/";
	}
			
	helpUrl = helpUrl + "EndUser?Action=HelpDisplay&helpFile=" + helpFile + helpFrame + "&orgId=" + orgId; 
	
	formhelp=window.open(helpUrl, "LNPHelp", args);
}

function getHelpArgs(width,height,center,menu)
{
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ) && (center))
	{
		if (menu==0)
		{
			xposition = (screen.width - width) - 10;
			yposition = (screen.height - height) - 58;
		}else if(menu==1){
			xposition = (screen.width - width) / 2;
			yposition = ((screen.height - height) / 2) - 67;
		}
	}
	if (navigator.appName == 'Netscape')
	{
		width = width + 25;
		height = height + 25;
	}
	args="width="+width+",height="+height+",toolbar="+menu+",menubar="+menu+",screenx="+ xposition+",screeny="+yposition+",left="+xposition+",top="+yposition+",resizable=1,scrollbars=1,";
	return args;
}

function checkSearch() {
	if (document.frmMain.terms.value == "") {
		alert("Please enter a search parameter!");
		return false;
	} else {
		return true;
	}
}

function goAction(act) {
	document.frmMain.Action.value = act;
	document.frmMain.target = "_top";
	document.frmMain.submit();
}

function showSwoosh(val) {
	//document.getElementById("hover" + val).style.display = ""; 
	temp = "document.hover.hover" + val + ".style.display = \"\";";
	eval(temp);
}
function hideSwoosh(val) {
	//document.getElementById("hover" + val).style.display = "none";
	temp = "document.hover.hover" + val + ".style.display = \"none\";";
	eval(temp);
}
function userDocDisclaimer(){
	alert("This document and any links, illustrations, comments or other information included in or accompanying it are\nindependently provided by your firm through either independent creation or based upon independent\nrelationships between your firm and third party sources other than LexisNexis(TM). LexisNexis(TM) has not\ncreated, supplied, reviewed or endorsed this document and accompanying information.");
}
function userContentDisclaimer(){
	alert("Any added material (\"Editorial Content\"), including related links, illustrations, comments and other information,\nis added at your firm's risk. LexisNexisTM does not ensure the security or confidentiality of Editorial Content.\nYour firm assumes all risks related to the Editorial Content, including risk of loss and breach of confidentiality.");
}
function WM_toggle(id){
	idPlus = id + "_plus";
	idMinus = id + "_minus";
  if (document.getElementById){
    if(document.getElementById(id).style.display == 'none'){
      document.getElementById(id).style.display = 'block';
	document.getElementById(idPlus).style.display = 'none';
	document.getElementById(idMinus).style.display = 'block';
    } else {
      document.getElementById(id).style.display = 'none';
	document.getElementById(idPlus).style.display = 'block';
	document.getElementById(idMinus).style.display = 'none';
	collapseAllDOM(id);
    }
  } else if (document.all){
    if(document.all(id).style.display == 'none'){
      document.all(id).style.display = '';
	document.all(idPlus).style.display = 'none';
	document.all(idMinus).style.display = '';
    } else {
      document.all(id).style.display = 'none';
	document.all(idPlus).style.display = '';
	document.all(idMinus).style.display = 'none';
	collapseAll(id);
   }
  } else {
	alert('this browser is not supported');
  }
}
function collapseAllDOM(id){
	try{
		var oTest = document.getElementsByName(id);
		var testArray = oTest[0].getElementsByTagName("DIV");
	}catch (a){
		try{
			var oTest = document.getElementsByName(id);
			var testArray = oTest[0].all.tags("DIV");
		}catch (b){
			var testArray = document.getElementsByTagName("*");
		}
	}

	for(i=0; i<testArray.length; i++){
		if(testArray[i].id != ""){
			if(testArray[i].id.substr(0, id.length) == id && testArray[i].id.length > id.length){					if(testArray[i].id.slice(-4) != "plus" && testArray[i].id.slice(-5) != "minus"){
					document.getElementById(testArray[i].id).style.display = 'none';
					document.getElementById(testArray[i].id + "_plus").style.display = 'block';
					document.getElementById(testArray[i].id + "_minus").style.display = 'none';

				}
				
			}
		}
	}
}

function collapseAll(id){
	var testArray = document.all;
	for(i=0; i<testArray.length; i++){
		if(testArray[i].id != ""){

			if(testArray[i].id.substr(0, id.length) == id && testArray[i].id.length > id.length){					if(testArray[i].id.slice(-4) != "plus" && testArray[i].id.slice(-5) != "minus"){
					document.all(testArray[i].id).style.display = 'none';
					document.all(testArray[i].id + "_plus").style.display = '';
					document.all(testArray[i].id + "_minus").style.display = 'none';
				}
			}
		}
	}
}



