function openimage(urlval,imgwidth,imgheight,wintitle){	var scroll = "no";	if(imgwidth > sitewidth) scroll="yes";	//urls are now relative to the database, but js needs full url	if(urlval.indexOf(".nsf") == -1) {		window.open("/" + urlpath + "/" + urlval,wintitle,"toolbar=no, menubar=no,status=no, scrollbars="+scroll+", resize=no, width=" + imgwidth + ",height=" + imgheight);	}else{		window.open(urlval,wintitle,"toolbar=no, menubar=no,status=no, scrollbars="+scroll+", resize=no, width=" + imgwidth + ",height=" + imgheight);	}}function resizeIframe() {	// Must launched on the body onload event handler for IE	// Use document.documentElement if you are in Compat mode	//alert("resizing iframe");	//i = document.getElementById("contentFRM")	//alert(i);	//iHeight = document.body.scrollHeight	//alert (iHeight);	//i.style.height = iHeight + 5 + "px"	//parent.setIFrameHeight(iHeight);}var issitemap = 0;var sitemapentries = new Array();var sitemapcategories = new Array();var sitemaphrefs = new Array();var smcount = 0;function loadline(displaystr,iscategory,sitemaphref){	issitemap = 1;	sitemapentries[smcount]=displaystr;	sitemapcategories[smcount]=iscategory;	if ((iscategory==0) && (sitemaphref.indexOf("LiveByRef") != -1)){		sitemaphrefs[smcount]=	"href=\"" + WASb + sitemaphref.substring(sitemaphref.indexOf("LiveByRef")+ 10, sitemaphref.indexOf("LiveByRef")+ 21) + "\" target=\"_top\""			}else{		sitemaphrefs[smcount]=sitemaphref	}	smcount++;}function displaysm(){	if(issitemap==1){		var middlevalue;		var actualcount;		var k;		var smremain = smcount % 2;		if(smremain == 0){			middlevalue = smcount / 2;		}else{			middlevalue = (smcount - smremain) / 2;		}				k = middlevalue;				while(k < smcount){			if(sitemapcategories[k]==1){				actualcount = k;				break;			}			k++;		}				if(actualcount==null){			actualcount = smcount;		}				document.write("<table cellpadding=0 cellspacing=5 width=563 border=0 frame=void>");		var j = actualcount;		for(k=0;k<actualcount;k++){			if(sitemapcategories[k]==1){				document.write("<tr><td class=siteMapHeader>" + sitemapentries[k] + "</td>");				if(sitemapcategories[j]==1){					document.write("<td class=siteMapHeader>" + sitemapentries[j] + "</td></tr>");				}else if(sitemapcategories[j]==0){					document.write("<td class=siteMapEntry><img src=\"" + smdImage.src + "\" border=0>&nbsp;&nbsp;<a " + sitemaphrefs[j] + ">" + sitemapentries[j] + "</a></td></tr>");				}else{					document.write("</tr>");				}			}else{				document.write("<tr><td class=siteMapEntry><img src=\"" + smdImage.src + "\" border=0>&nbsp;&nbsp;<a " + sitemaphrefs[k] + ">" + sitemapentries[k] + "</a></td>");				if(sitemapcategories[j]==1){					document.write("<td class=siteMapHeader>" + sitemapentries[j] + "</td></tr>");				}else if(sitemapcategories[j]==0){					document.write("<td class=siteMapEntry><img src=\"" + smdImage.src + "\" border=0>&nbsp;&nbsp;<a " +  sitemaphrefs[j] + ">" + sitemapentries[j] + "</a></td></tr>");				}else{					document.write("</tr>");				}			}			j++;		}						document.write("</table>");		}}