//*********************************************************************************//BEGIN GLOBAL VARIABLES//*********************************************************************************var winname;//*********************************************************************************//END GLOBAL VARIABLES//*********************************************************************************//*********************************************************************************//BEGIN home code.//*********************************************************************************function gohome () {	top.location.href = top.location.href;}//*********************************************************************************//END home code.//*********************************************************************************//*********************************************************************************//BEGIN Public home code.//*********************************************************************************function gohomepublic () {	var url = document.forms[0].WebURL.value;	top.location.href = url;}//*********************************************************************************//END Public home code.//*********************************************************************************//*********************************************************************************//BEGIN logout code.//*********************************************************************************function logout () {	var form = document.forms[0];	var url = top.window.location.href;	var homepageurl = form.WebURL.value;	var navdb = form.DBName.value;	var pathparts = navdb.split("\\");		navdb = pathparts.join("/");		var logouturl = homepageurl + navdb +  '?Logout&RedirectTo=' + homepageurl;	top.location.href = logouturl;}//*********************************************************************************//END logout code.//*********************************************************************************//*********************************************************************************//BEGIN hover link text code.//*********************************************************************************var leftOffset = 10;			// modify these values to ...var topOffset = 10;			// change the popup position.var skn;var ns4;var ns6;var ie4;function get_mouse ( e ) {	var x = ( ns4 || ns6 ) ? e.pageX : event.clientX + document.body.scrollLeft;	var y = ( ns4 || ns6 ) ? e.pageY : event.clientY + document.body.scrollTop;	skn.left = x + leftOffset;	skn.top = y + topOffset;	//window.status = "Left: " + skn.left + "    Top: " + skn.top;}function setupDiv () {	ns4 = document.layers;	ns6 = document.getElementById && !document.all;	ie4 = document.all;	if ( ns4 ) {		skn = document.dek;	} else if ( ns6 ) {		skn = document.getElementById ( "dek" ).style;	} else if ( ie4 ) {		skn = document.all.dek.style;	}	if ( ns4 ) {		document.captureEvents ( Event.MOUSEMOVE );	} else {		skn.visibility = "visible";		skn.display = "none";	}	document.onmousemove = get_mouse;}function popupLabel ( msg, bak ) {	setupDiv ();		var content = "<table width='240' cellpadding='3' cellspacing='0' border='1' bordercolor='white' bgcolor='" + bak + "'><tr><td align='left'><span class='hoverlabel'>" + msg + "</span></td></tr></table>";	if ( ns4 ) {		skn.document.write ( content );		skn.document.close ();		skn.visibility = "visible";	}		if ( ns6 ) { 		document.getElementById ( "dek" ).innerHTML = content;		skn.display = ''	}	if ( ie4 ) { 		document.all ( "dek" ).innerHTML = content;		skn.display = ''	}}function killLabel () {	if ( ns4 ) {		skn.visibility = "hidden";	} else if ( ns6 || ie4 ) {		skn.display = "none";	}}//*********************************************************************************//END hover link text code.//*********************************************************************************//*********************************************************************************//BEGIN defined window code.//*********************************************************************************function definedWindow ( name, width, height, status, resizable, scrollbars, toolbar, menubar, location ) {	this.name = name;	this.width = width;	this.height = height;	this.status = status;	this.resizable = resizable;	this.scrollbars = scrollbars;	this.toolbar = toolbar;	this.menubar = menubar;	this.location = location;}// BEGIN PREDEFINED WINDOWS //var predefinedWindows = new Array ();predefinedWindows[0] = new definedWindow ( "SSL", "771", "512", "no", "yes", "yes", "no", "no", "no" );predefinedWindows[1] = new definedWindow ( "SSLScroll", "771", "512", "no", "yes", "yes", "no", "no", "no" );predefinedWindows[2] = new definedWindow ( "Help", "771", "512", "no", "yes", "yes", "no", "no", "no" );predefinedWindows[3] = new definedWindow ( "External", "800", "600", "yes", "yes", "yes", "yes", "yes", "yes" );predefinedWindows[4] = new definedWindow ( "PDF", "771", "512", "no", "yes", "no", "yes", "yes", "no" );predefinedWindows[5] = new definedWindow ( "EMPOWER", "771", "512", "no", "yes", "yes", "no", "no", "no" );predefinedWindows[6] = new definedWindow ( "Bookmark", "300", "150", "no", "no", "no", "no", "no", "no" );predefinedWindows[7] = new definedWindow ( "Synonyms", "400", "290", "no", "no", "yes", "no", "no", "no" );predefinedWindows[8] = new definedWindow ( "Email", "800", "600", "yes", "yes", "yes", "no", "no", "no" );predefinedWindows[9] = new definedWindow ( "LEG", "660", "460", "no", "no", "yes", "yes", "yes", "no" );// END PREDEFINED WINDOWS ////*********************************************************************************//END defined window code.//*********************************************************************************//*********************************************************************************//BEGIN open window code.//*********************************************************************************function loadwindow ( popURL, name, width, height, status, resizable, scrollbars, toolbar, menubar, location ) {	var x = 0;	var y = 0;	for ( var i = 0; i < predefinedWindows.length; i++ ) {		if ( predefinedWindows[i].name == name ) {			width = predefinedWindows[i].width;			height = predefinedWindows[i].height;			status = predefinedWindows[i].status;			resizable = predefinedWindows[i].resizable;			scrollbars = predefinedWindows[i].scrollbars;			toolbar = predefinedWindows[i].toolbar;			menubar = predefinedWindows[i].menubar;			location = predefinedWindows[i].location;		}	}	if ( screen ) {		x = ( screen.availWidth - width ) / 2;		y = ( screen.availHeight - height ) / 2;	}	if ( width != null || height != null ) {         winname=window.open (popURL, name, "width=" + width + ",height=" + height + ",screenX=" + x + ",screenY=" + y + ",left=" + x + ",top=" + y + ",status=" + status + ",resizable=" + resizable + ",scrollbars=" + scrollbars + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + location );	} else {		winname=window.open (popURL, name, "width=" + width + ",height=" + height + ",status=" + status + ",resizable=" + resizable + ",scrollbars=" + scrollbars + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + location );	}winname.focus();}//*********************************************************************************//END open window code.//*********************************************************************************//*********************************************************************************//BEGIN do not allow Right Mouse Click code.//*********************************************************************************var sorry = "Sorry, you do not have access to this feature." ; function noRightClick ( e ) {	if ( document.all ) {		if ( event.button == 2 ) {		//	alert ( sorry );		//	return false;		}	}	if ( document.layers ) {		if ( e.which == 3 ) {			alert ( sorry );			return false;		}	}}if ( document.layers ) {	document.captureEvents ( Event.MOUSEDOWN );}//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<//The following line of code must be included on the form in the JSHeader.//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<//document.onmousedown = noRightClick;//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>//End of code to be included on the form.//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>//*********************************************************************************//END do not allow Right Mouse Click code.//*********************************************************************************//*********************************************************************************//BEGIN clear input items code.//*********************************************************************************function ResetCheckbox ( inputName ) {	form = document.forms[0];	for ( i = 0 ; i < form[inputName].length ; i++ ) {		form[inputName][i].checked = false;	}}function ClearAllChoices ( selectName ) {	form = document.forms[0];		for ( i = 0 ; i < form[selectName].length ; i ++ ) {		form[selectName][i].selected = false;	}}function ClearChoices ( selectName ) {	form = document.forms[0];		for ( i = 0 ; i < form[selectName].length ; i ++ ) {		form[selectName][i].selected = false;	}			form[selectName][0].selected = true;}//*********************************************************************************//END clear input items code.//*********************************************************************************//*********************************************************************************//BEGIN broswer cookie code.//*********************************************************************************var today = new Date ();var expires = new Date ( today.getTime () + ( 56 * 86400000 ) );function Get_Cookie ( name ) {	var start = document.cookie.indexOf ( name + "=" );	var len = start + name.length + 1;	if ( ( !start ) && ( name != document.cookie.substring ( 0, name.length ) ) ) return null;	if ( start == -1 ) return null;	var end = document.cookie.indexOf ( ";", len );	if ( end == -1 ) end = document.cookie.length;	return unescape ( document.cookie.substring ( len, end ) );}function Delete_Cookie ( name, path, domain ) {    if ( Get_Cookie ( name ) ) document.cookie = name + "=" +        ( ( path ) ? ";path=" + path : "" ) +        ( ( domain ) ? ";domain=" + domain : "" ) +        ";expires=Thu, 01-Jan-1970 00:00:01 GMT";}function Set_Cookie ( name, value, expires, path, domain, secure ) {	var path = '/';	document.cookie = name + "=" + escape ( value ) +		( ( expires ) ? ";expires=" + expires.toGMTString () : "" ) +		( ( path ) ? ";path=" + path : "" ) + 		( ( domain ) ? ";domain=" + domain : "" ) +		( ( secure ) ? ";secure" : "" );}function set () {	var form = document.forms[0];	if ( form.save.checked ) {		Set_Cookie ( "Username", form.Username.value, expires );		Set_Cookie ( "Password", form.Password.value, expires );		Set_Cookie ( "save", form.save.checked, expires );	} else {		Set_Cookie ( "save", form.save.checked, expires );	}}function get() {	var form = document.forms[0];			save = Get_Cookie ( "save" );	if ( save == 'true' ) {		userid = Get_Cookie ( "Username" );		if ( userid != null ) {			form.Username.value = userid;			form.Username.focus (); 		}		password = Get_Cookie ( "Password" );		if ( password != null ) {			form.Password.value = password;			form.Password.focus (); 		}		form.save.checked = true;	} else {		form.save.checked = false;		document.forms[0].Username.focus (); 		document.forms[0].Username.select ();	}}//*********************************************************************************//END broswer cookie code.//*********************************************************************************//*********************************************************************************//BEGIN website login code.//*********************************************************************************function loginold () {	var form = document.forms[0];	var host = form.Host.value;	var ssl = form.SSL.value;	var protocol = "";	var user = form.CurrentUser.value;	var login = form.Username.value;	var root = form.Root.value;	var password = form.Password.value;	var redirect = form.RedirectTo.value;//fix this hard coding  it is here as a failover	var placetogo = root + 'loginredirect?openform';	var remoteRedirect=0;	//Determine the requesting protocal	if ( redirect != '/' ) {		placetogo = redirect;	     remoteRedirect=placetogo.indexOf (':');	}	if ( user != 'Anonymous' ) {		top.location.href = placetogo;		return false;	}		if ( form.Username.value == '' ) {		alert ( 'You must enter a User Name.' );		document.forms[0].Username.focus (); 		document.forms[0].Username.select ();				return false;	}	if ( form.Password.value == '' ) {		alert ( 'You must enter a Password.' );				document.forms[0].Password.focus (); 		document.forms[0].Password.select ();		return false;	}		locked = Get_Cookie ( "PasswordLockout" );	if ( locked == "true" ) {		alert ( "Please wait while your password change request is completed." );				return false;	}	if ( ssl == 'Yes' ) {		protocol = 'https://' ;	} else {		protocol = 'http://' ;	}	set ();if (remoteRedirect>0){top.location.href = protocol + host + 'names.nsf?login&username=' + escape ( login ) + '&password=' + escape ( password ) + '&redirectto=' +  placetogo;	}else{top.location.href = protocol + host + 'names.nsf?login&username=' + escape ( login ) + '&password=' + escape ( password ) + '&redirectto=' + "http://" + host + placetogo;}}//*********************************************************************************//END website login code.//*********************************************************************************//*********************************************************************************//BEGIN website form login code.//*********************************************************************************function formlogin () {	var form = document.forms[0];	var host = form.Host.value;	var ssl = form.SSL.value;	var protocol = '';	var user = form.CurrentUser.value;	var login = form.Username.value;	var password = form.Password.value;	var redirect = form.RedirectTo.value;     var url = form.WebURL.value;	if ( user != 'Anonymous' ) {		top.location.href =redirect;		return false;	}		if ( form.Username.value == '' ) {		alert ( 'You must enter a User Name.' );		document.forms[0].Username.focus (); 		document.forms[0].Username.select ();				return false;	}	if ( form.Password.value == '' ) {		alert ( 'You must enter a Password.' );				document.forms[0].Password.focus (); 		document.forms[0].Password.select ();		return false;	}		locked = Get_Cookie ( "PasswordLockout" );	if ( locked == "true" ) {		alert ( "Please wait while your password change request is completed." );				return false;	}	if ( ssl == 'Yes' ) {		protocol = 'https://' ;	} else {		protocol = 'http://' ;	}	set ();document.forms[0].action= protocol + host +"names.nsf?Login";document.forms[0].method="post" document.forms[0].target="_top" document.forms[0].RedirectTo.value=redirect;document.forms[0].submit();}//*********************************************************************************//END website form login code.//*********************************************************************************//*********************************************************************************//BEGIN click view category code.//*********************************************************************************function ec ( docNumber ) {	var docNumberLength = docNumber.length;	for ( i = 0 ; i < document.links.length; i++ ) {		var link = document.links[i].href;		var startCollapse = link.indexOf( 'Collapse=', 0 ) + 9;		var startExpand = link.indexOf( 'Expand=', 0 ) + 7;		if ( startCollapse > 8 ) {			var tempdocNumber = link.substring( startCollapse, startCollapse + docNumberLength );		} else if ( startExpand > 6 ) {			var tempdocNumber = link.substring( startExpand, startExpand + docNumberLength );		}		if ( tempdocNumber == docNumber ) {			window.location = link;			return;		}	}}//*********************************************************************************//END click view category code.//*********************************************************************************//*********************************************************************************//BEGIN click view category code.//*********************************************************************************function ecx ( docNumber ) {	var firstDecimal = docNumber.indexOf ( ".", 0 );	if ( firstDecimal > 0 ) {		var newDocNumber = docNumber.slice ( firstDecimal + 1 );	} else {		var newDocNumber = docNumber;	}	ec ( newDocNumber );}//*********************************************************************************//END click view category code.//*********************************************************************************//*********************************************************************************//BEGIN replace images code.//*********************************************************************************function replaceImages ( imgName, newimgName, width, height ) {	var start = 0;	var len = 0;	var origStr = "";	var newStr = "";	for ( var i = 0; i < document.images.length; i++ ) {		var imgsrc = document.images[i].src;				if ( imgsrc.indexOf ( imgName ) > 0 ) {			start = imgsrc.indexOf ( imgName );			len = imgsrc.length;			origStr = imgsrc.substring ( start , len );			newStr = stringReplace ( imgsrc , origStr , newimgName );			document.images[i].src = newStr;			document.images[i].width = width;			document.images[i].height = height;		}	}}//*********************************************************************************//END replace images code.//*********************************************************************************//*********************************************************************************//BEGIN string replace code.//*********************************************************************************function stringReplace ( origString , findTxt , replTxt ) {	var pos = 0;	var len = findTxt.length;	pos = origString.indexOf ( findTxt );	while ( pos != -1 ) {		preString = origString.substring ( 0 , pos );		postString = origString.substring ( pos + len , origString.length );		origString = preString + replTxt + postString;		pos = origString.indexOf ( findTxt );	}	return origString;}//*********************************************************************************//END string replace code.//*********************************************************************************//*********************************************************************************//BEGIN delete selected document code.//*********************************************************************************function DeleteSelected () {	var form = document.forms[0];	var deleteflag = false;		if ( form.Delete.length == null ) {		if ( form.Delete.checked ) {			deleteflag = true;		}	} else {		for ( i = 0; i < form.Delete.length ; i ++ ) {			if ( form.Delete[i].checked == true ) {				deleteflag = true;			}		}	}	if ( deleteflag ) {		return true;	} else {		alert ( "You have not selected any documents to delete." );		return false;	}}//*********************************************************************************//END delete selected document code.//*********************************************************************************//*********************************************************************************//BEGIN search results count check code.//*********************************************************************************function checkCount ( maxResults ) {	form = document.forms[0];	var count = parseInt ( form.TotalHits.value );	var msg = 'More than ' + maxResults.toString () + ' documents were retrieved for your selection.  Please refine your request using additional fields such as date or state on the Advanced Search page.';	var msgnone = 'No results found for the selected criteria.';	if ( count >= maxResults ) {		alert ( msg );		history.go ( -1 );	} else if ( count == 0 ) {		alert ( msgnone );		history.go ( -1 );	}}//*********************************************************************************//END search results count check code.//*********************************************************************************//*********************************************************************************//BEGIN search results count check code for Alliance.//*********************************************************************************function checkCountA ( maxResults ) {	form = document.forms[0];	var count = parseInt ( form.TotalHits.value );	var msg = 'More than ' + maxResults.toString () + ' results found for the selected criteria.  Please limit your search using additional criteria such as a date range or additional categories.';	var msgnone = 'Your search returned 0 results.  Please refine your search criteria, and try again.';	if ( count >= maxResults ) {		alert ( msg );		history.go ( -1 );	} else if ( count == 0 ) {		alert ( msgnone );		history.go ( -1 );	}}//*********************************************************************************//END search results count check code for Alliance.//*********************************************************************************//*********************************************************************************//BEGIN e-mail validation code.//*********************************************************************************function isValidEmail ( strEmail ) {	if ( strEmail.search ( /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1 ) {		return true;	} else {		return false;	}}//*********************************************************************************//END e-mail validation code.//*********************************************************************************//*********************************************************************************//BEGIN user profile custom scripts.//*********************************************************************************function openprofilepage ( option ) {	var form = top.frames[0].document.forms[0];	var url = '';	switch ( option ) {		case "profile":			url = form.PersonalURL.value;			break;		case 'general':			url = form.PersonalGeneralURL.value;			break;		case 'whatsnew':			url = form.PersonalDDURL.value;			break;		case 'web':			url = form.PersonalWebURL.value;			break;		case 'state':			url = form.PersonalStateURL.value;			break;		case 'paper':			url = form.PersonalPaperURL.value;			break;	}	return url;}//*********************************************************************************//END user profile custom scripts.//*********************************************************************************//*********************************************************************************//BEGIN Statistical Bulletins Current Year.//*********************************************************************************function currentyearbulletins() {//Get the current year, then build a string to search on.	var year = getyear ();	var url = '/iss/web/home.nsf/bulsrchresbydate?SearchView&Query=[BulletinIssueDate]>=(01/01/' + year + ')AND[BulletinIssueDate]<=(12/31/' + year + ')&Start=1&Count=1000&SearchOrder=4&SearchMax=0';	location.href = url;}//*********************************************************************************//END Statistical Bulletins Current Year.//*********************************************************************************//*********************************************************************************//BEGIN Calls Current Year.//*********************************************************************************function currentyearcalls () {//Get the current year, then build a string to search on.	var form = document.forms[0];	var root = form.Root.value;	var year = getyear ();	var url = root + 'callsrchresbycallname?SearchView&Query=[DocumentType] Contains(aa2aa) & [CallYear] contains' + year + '&Start=1&Count=1000&SearchOrder=4&SearchMax=0';	location.href = url;}//*********************************************************************************//END Current Call Year Search.//*********************************************************************************//*********************************************************************************//BEGIN Previous YEAR Calls Search.//*********************************************************************************function previousyearcalls(){//Get the current year, then build a string to search on.	var form = document.forms[0];	var root = form.Root.value;	var year = getyear () - 1;	var url = root + 'callsrchresbycallname?SearchView&Query=[DocumentType] Contains(aa2aa) & [CallYear] contains'+ year + '&Start=1&Count=1000&SearchOrder=4&SearchMax=0';	location.href = url;}//*********************************************************************************//END Previous Call Year Search.//*********************************************************************************//*********************************************************************************//BEGIN My Profile.//*********************************************************************************function myprofile() {	var form = document.forms[0];	var ssl = form.SSL.value;	var host = form.Host.value;//This is here to trap users that do not have personal profiles.  Most likely ISS staff.	var purl = form.PersonalURL.value;	var plocation = purl.indexOf ( 'lcallcontent' );		if ( plocation > 0 ) {		alert ( 'ISS/PCI Staff Members cannot utilize this functionality.' );      } else {		if ( ssl == 'Yes' ) {			loadwindow ( 'https://' + host + openprofilepage ( 'profile' ), 'SSL' );		} else {			loadwindow ( 'http://' + host + openprofilepage ( 'profile' ), 'SSL' );		}	}		}//*********************************************************************************//END My Profile.//*********************************************************************************//*********************************************************************************//BEGIN Product Request.//*********************************************************************************function productrequest() {	var form = document.forms[0];	var ssl = form.SSL.value;	var host = form.Host.value;	if ( ssl == 'Yes' ) {		loadwindow ( 'https://' + host + '/iss/web/products.nsf/pr?openform', 'SSL' );	} else {		loadwindow ( 'http://' + host + '/iss/web/products.nsf/pr?openform', 'SSL' );	}		}//*********************************************************************************//END Product Request.//*********************************************************************************//*********************************************************************************//BEGIN CHANGE PASSWORD.//*********************************************************************************function changepassword() {	var form = document.forms[0];	var ssl = form.SSL.value;	var host = form.Host.value;	var regdb = form.RegistrationDB.value;	var root = form.Root.value;//Check to see if the people are ISS staff.	var purl = form.PersonalURL.value;	var plocation = purl.indexOf ( 'lcallcontent' );	if ( plocation > 0 ) {		alert ( 'ISS/PCI Staff Members cannot utilize this functionality.' );	}	else{//var hostpart=host.substr(0,host.length-1)			if ( ssl == 'Yes' ) {					loadwindow ( 'https://' + host + regdb + '/changepassword?openform', 'SSL' );			} else {				loadwindow ( 'http://' + host + regdb + '/changepassword?openform', 'SSL' );			}	}}//*********************************************************************************//END CHANGE PASSWORD.//*********************************************************************************//*********************************************************************************//BEGIN GET YEAR.//*********************************************************************************function getyear () {	var time = new Date ();	var year = time.getYear ();		return year;}//*********************************************************************************//END GET YEAR.//*********************************************************************************//*********************************************************************************//BEGIN DISPLAY SPOTLIGHT DOCUMENT.//*********************************************************************************function displaySpotlight ( url , scope ) {		if ( scope == 'public' ) {		//loadwindow ( url , 'PDF' );		top.bottom.location.href = url;	} else {		//loadwindow ( url , 'PDF' );		var now = new Date ();		var expires = new Date ( now.getTime () + ( 3600000 ) );		Set_Cookie ( 'SpotlightURL', url, expires );			var form = parent.document.forms[0];		var weburl = form.WebURL.value;		var beginurl = weburl.substring ( 0, weburl.length - 1 );		var root = form.Root.value;		var fullurl = beginurl + root + 'private?openframeset&login';		window.parent.parent.location = fullurl	}}//*********************************************************************************//END DISPLAY SPOTLIGHT DOCUMENT.//*********************************************************************************//*********************************************************************************// ACKNOWLDEGEMENTS.//*********************************************************************************function NewAcknowledgement(){//leftVal = (800 - screen.width) / 2;//topVal = (500 - screen.height) / 2;var form=document.forms[0];var iframeform=frames['viewInfo'].document.forms[0];	var companyid=iframeform.CompanyID.value;if (companyid=='9999'|companyid==''){alert('You must select a company');return false;}else{var path="/" + form.WebDB.value + "/ack?openform&CompanyID=" + companyid;ackopen(path,"new",800,400);}//window.open (path + "/ack","mywindow","location=1,status=1,scrollbars=1,resizable=1,width=800,height=500,left=" + leftVal+',top='+topVal); }function saveRecord(docNumber) {  var server = parent.document.forms[0].Server_Name.value ;  var dbpath = parent.document.forms[0].WebDB.value ;  var docID = eval('document.forms[0].Docunid_' + docNumber + '.value');  var Status = eval('document.forms[0].Status_' + docNumber + '.options[document.forms[0].Status_' + docNumber +' .selectedIndex].text');  var agentPath = "//" + server +"/" + dbpath + "/saveDoc?openagent&unid=" + docID + "&Status=" + Status;  parent.document.getElementById("agentOutput").src = agentPath ; }function completeform(){var iframe=frames['viewInfo'];var iframeform= iframe.document.forms[0];	var agentpath='/' + document.forms[0].WebDB.value + '/completecompany?openagent&CompanyID='var companyid=iframeform.CompanyID.value;var answer = confirm("Do you wish to complete the acknowledgement process at this time?  You will not be able to make additional changes for this company and line until it has completed processing and been approved by ISS.")	if (answer){		if (companyid=='9999'|companyid==''){				alert('You must select a company');				return false;		}		iframe.location.replace(agentpath+ companyid)	}}function ackopen(url, name, w, h){  // Fudge factors for window decoration space.  // In my tests these work well on all platforms & browsers.  w += 32;  h += 96;  wleft = (screen.width - w) / 2;  wtop = (screen.height - h) / 2;  var win = window.open(url,    name,    'width=' + w + ', height=' + h + ', ' +    'left=' + wleft + ', top=' + wtop + ', ' +    'location=no, menubar=no, ' +    'status=no, toolbar=no, scrollbars=no, resizable=no');  // Just in case width and height are ignored  win.resizeTo(w, h);  // Just in case left and top are ignored  win.moveTo(wleft, wtop);  win.focus();}function getCompany() {var parameter=document.forms[0].CompanyID.options[document.forms[0].CompanyID.selectedIndex].valuevar qstring=document.forms[0].qstring;parmArray=parameter.split(' ');qstring=parmArray.join('%20');var strLocation = new String(window.location);var str1 = new String(window.location.protocol + "//" + window.location.host + "/");var str2 = new String(strLocation.substring(str1.length, (strLocation.indexOf("nsf")+3)));//if (qstring=="8888"){//qstring="";//}var str3 = new String("/viewdisplaycompany?OpenForm&CompanyID=" +qstring);var strLocation2 = str1 + str2 + str3;window.location.href=strLocation2;return false}//*********************************************************************************// END ACKNOWLDEGEMENTS.//*********************************************************************************function getParameter ( queryString, parameterName ) {// Add "=" to the parameter name (i.e. parameterName=value)var parameterName = parameterName + "=";if ( queryString.length > 0 ) {// Find the beginning of the stringbegin = queryString.indexOf ( parameterName );// If the parameter name is not found, skip it, otherwise return the valueif ( begin != -1 ) {// Add the length (integer) to the beginningbegin += parameterName.length;// Multiple parameters are separated by the "&" signend = queryString.indexOf ( "&" , begin );if ( end == -1 ) {end = queryString.length}// Return the stringreturn unescape ( queryString.substring ( begin, end ) );}// Return "null" if no parameter has been foundreturn "null";}}