// pop-up functionvar newWin = null;function closeWin(){	if (newWin != null){		if(!newWin.closed)			newWin.close();	}}function popUp(strURL,strType,strHeight,strWidth) {closeWin();var strOptions="";if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;newWin = window.open(strURL, 'newWin', strOptions);newWin.focus();}if (!(navigator.userAgent.indexOf("ozilla/3.")>=1)){document.write("<script language=\"JavaScript1.3\" src=\"\/_scripts\/formHighlight.js\">");document.write("</script>");}function writeCookie(name, value, hours){  var expire = "";  if(hours != null)  {    expire = new Date((new Date()).getTime() + hours * 3600000);    expire = "; expires=" + expire.toGMTString();  }  var strCookie = name + "=" + escape(value) + expire + "; path=/";//  alert(strCookie);  document.cookie = strCookie;}function readCookie(name){  var cookieValue = "";  var search = name + "=";  if(document.cookie.length > 0)  {     offset = document.cookie.indexOf(search);    if (offset != -1)    {       offset += search.length;      end = document.cookie.indexOf(";", offset);      if (end == -1) end = document.cookie.length;      cookieValue = unescape(document.cookie.substring(offset, end))    }  }  return cookieValue;}//-----------------------function addEvent(elm, evType, fn,useCapture){		if(elm.addEventListener)		{			elm.addEventListener(evType, fn, useCapture);			return true;		}		else if (elm.attachEvent)		{			var r = elm.attachEvent('on' + evType, fn);			return r;		}		else		{			elm['on' + evType] = fn;		}}function setTabIndex(){/*var iTabIndex=350;var arrAllLinks = document.getElementsByTagName("A");for (i=0;i<arrAllLinks.length;i++)	{	if (arrAllLinks[i].tabIndex=="")		{		arrAllLinks[i].tabIndex=iTabIndex;		iTabIndex+=1;		}	}*/}/*function writeOutAccessKeys(){	//get the cookie	var strAccessKeys = readCookie("accesskeys");	//split up the values	var arrAccesskeys = strAccessKeys.split("@@");	//loop through the values stored (we take off two, as the last piece of data stored is a boolean)	var blnShowHints 	= (strAccessKeys.indexOf("showhint=true")!=-1);		for (i=0;i<(arrAccesskeys.length-2);i++)		{		var thisAccessKey 	= arrAccesskeys[i].split("=");		var accessKayEl 	= thisAccessKey[0];		var accessKayAttrib	= thisAccessKey[1];		//if a value has been, apply it to the respective element using the dom		if (accessKayAttrib.length>0)			{			//set the attribute			document.getElementById(accessKayEl).setAttribute('accesskey', accessKayAttrib);			//set a nice title attribute too			if (document.getElementById(accessKayEl).tagName=="A")				{				var strLinkPhrase = document.getElementById(accessKayEl).childNodes[0].nodeValue;				}			if ((document.getElementById(accessKayEl).tagName=="INPUT")			 && ((document.getElementById(accessKayEl).type=="submit")||(document.getElementById(accessKayEl).type=="button")))				{				var strLinkPhrase = document.getElementById(accessKayEl).value;				}			document.getElementById(accessKayEl).setAttribute('title', strLinkPhrase + ', access key = ' + accessKayAttrib);			//display the accesskey hint, if that's been chosen			if (blnShowHints)				{				strLinkPhrase = strLinkPhrase + " [" + accessKayAttrib + "]";				if (document.getElementById(accessKayEl).tagName=="A")					{					document.getElementById(accessKayEl).childNodes[0].nodeValue = strLinkPhrase;					}				if (document.getElementById(accessKayEl).tagName=="INPUT")					{					document.getElementById(accessKayEl).value = strLinkPhrase;					}				}			//finally, use the dom to fill the form fields in, according to previous choice			document.forms['frmAccessKeys'].elements['txt' + accessKayEl].value = accessKayAttrib;			}		}	//last bit to clean up - re-instate the checkbox status according to the cookie	if (blnShowHints)	{	document.forms['frmAccessKeys'].elements['chkshowhint'].checked="checked";	}}*/addEvent(window, 'load', setTabIndex, false);
