var isNav4=false,isIE4=false,isNav=false,isIE=false,isVer4,isIEMac=false,isOpera;var rangeObj="";var styleObj="";var version=parseInt(navigator.appVersion);if(parseInt(navigator.appVersion)>=4){isVer4=true;isNav4=(navigator.appName=="Netscape");isNav=isNav4;isIE4=(navigator.appName.indexOf("Microsoft")!=-1);isOpera=(navigator.appName.indexOf("Opera")!=-1);isIE=isIE4;isIEMac=(navigator.appVersion.indexOf("Macintosh")!=-1);}else{isNav=(navigator.appName=="Netscape");isIE=(navigator.appName.indexOf("Microsoft")!=-1);}if(isIE){if(isIEMac||!isIE4)rangeObj="form1.";else rangeObj="all.";styleObj=".style";}if(isOpera){rangeObj="all.";styleObj=".style";}if(isNav){rangeObj="form1.";}function getStyleObject(obj){var theObj;if(typeof obj=="string"){theObj=getObject(obj);if(theObj){if(isNav)theObj=theObj.style;else theObj=theObj.style;}}else{theObj=obj;}return theObj;}function getObject(obj){var theObj;try{if(typeof obj=="string"){if(isNav&&(version>=5)){theObj=document.getElementById(obj);if(theObj&&(theObj.type=="radio"))theObj=eval("document.forms[0]."+obj);if(!theObj){if(document.form1){theObj=eval("document."+rangeObj+obj);}}}else{theObj=eval("document."+rangeObj+obj);}}else{theObj=obj;}if(!theObj&&(typeof obj=="string")&&(obj.indexOf("ShowTotal")>-1)){theObj=getObject("Current");}}catch(err){theObj=null;}return theObj;}function getObjectInForm(obj,theformname){var theObj;var tempRangeObj=rangeObj;if(typeof obj=="string"){if(tempRangeObj=="form1.")tempRangeObj=""+theformname+".";theObj=eval("document."+tempRangeObj+obj);}else{theObj=obj;}return theObj;}function doSubmitForm(theformname){try{if(theformname!=null){if(document.forms[theformname])document.forms[theformname].submit();}else{if(document.forms[0])document.forms[0].submit();}}catch(e){}}function setValue(obj,theValue){var tempObj;tempObj=getObject(obj);if(typeof(tempObj)!="undefined")tempObj.value=theValue;}function getValue(obj){var tempObj;tempObj=getObject(obj);if(tempObj)return tempObj.value;else return null;}function setChecked(obj,theValue){var tempObj;tempObj=getObject(obj);if(tempObj)tempObj.checked=theValue;}function getChecked(obj){var tempObj;tempObj=getObject(obj);if(tempObj)return tempObj.checked;else return false;}function isVisible(obj){var tempObj;var parentObj;tempObj=getObject(obj);if(!tempObj)return false;parentObj=tempObj;while(parentObj){if((parentObj.style)&&((parentObj.style.visibility=="hidden")||(parentObj.style.display=="none")))return false;parentObj=parentObj.parentElement;}return true;}function setFocus(obj){try{var tempObj=getObject(obj);if(tempObj&&isVisible(tempObj)){tempObj.focus();}}catch(err){}}function getSelectText(selectObject){var tempObj;tempObj=getObject(selectObject);if(tempObj){return tempObj.options[tempObj.selectedIndex].text;}}function getSelectValue(selectObject){var tempObj;tempObj=getObject(selectObject);if(tempObj){return tempObj.options[tempObj.selectedIndex].value;}}function getRadioValue(RadioInput){var Result=null;var NameCopy=RadioInput;RadioInput=getObject(RadioInput);if(!RadioInput){return null;}if(!RadioInput&&isIEMac&&isIE4){for(var i=0;i<document.all.length;i++){if((document.all[i].name==NameCopy)&&(document.all[i].checked)){Result=document.all[i].value;return Result;}}}if(typeof RadioInput.length=="undefined"){if(RadioInput.checked)Result=RadioInput.value;return Result;}for(var i=0;i<RadioInput.length;i++){if(RadioInput[i].checked){Result=RadioInput[i].value;break;}}return Result;}function setRadioValue(RadioInput,Value){RadioInput=getObject(RadioInput);if(typeof RadioInput.length=="undefined"){if(RadioInput.value==Value)RadioInput.checked="1";return;}for(var i=0;i<RadioInput.length;i++){if(RadioInput[i].value==Value){RadioInput[i].checked="1";break;}}}function showElement(obj){var tempStyleObj;tempStyleObj=getStyleObject(obj);if(tempStyleObj){tempStyleObj.visibility="visible";tempStyleObj.display="";if(typeof obj=="object"){obj.style.visibility="visible";obj.style.display="";}}}function hideElement(obj,empty){var tempStyleObj;tempStyleObj=getStyleObject(obj);if(tempStyleObj){tempStyleObj.visibility="hidden";if(empty)tempStyleObj.display="none";if(typeof obj=="object"){obj.style.visibility="hidden";obj.style.display="none";}}}function openSite(URL){open(URL,"Site","toolbar=yes,directories=yes,menubar=yes,resizable=yes,height=480,width=640");}function emptyFunc(){}function isAllDigits(testStr){var ValidNrs='0123456789';var I=0;while(I<testStr.length){if(ValidNrs.indexOf(testStr.charAt(I))<0){return(false);}I++;}return(true);}function makeAllDigits(testStr){var Result='';var ValidNrs='0123456789';var I=0;while(I<testStr.length){if(ValidNrs.indexOf(testStr.charAt(I))>=0){Result+=testStr.charAt(I);}I++;}return(Result);}function isAllValidChars(testStr,ValidChars){var I=0;while(I<testStr.length){if(ValidChars.indexOf(testStr.charAt(I))<0){return(false);}I++;}return(true);}function makeAllValidChars(testStr,ValidChars){var Result='';var I=0;while(I<testStr.length){if(ValidChars.indexOf(testStr.charAt(I))>=0){Result+=testStr.charAt(I);}I++;}return(Result);}function getQueryParameter(aParamName,aLocationSearchStr){var theLocSearch="";if((aLocationSearchStr!=null)&&(aLocationSearchStr!=""))theLocSearch+=aLocationSearchStr;else theLocSearch+=location.search;while(theLocSearch.substr(0,1)=="?")theLocSearch=theLocSearch.substr(1);if((theLocSearch==null)||(theLocSearch==""))return"";var queryArray=theLocSearch.split("&");var cnt=0;while(queryArray[cnt]!=null){if(queryArray[cnt].substr(0,aParamName.length+1)==(aParamName+"="))return queryArray[cnt].substr(0+aParamName.length+1);cnt++;}return"";}function checkRegularExpr(checkStr,mask){var regExpr=new RegExp(mask,"gi");return(regExpr.test(checkStr));}function checkRegExprField(fieldName,mask){var reCaps=new RegExp('[A-Z]',"g");if(checkRegularExpr(getValue(fieldName),mask)){if(reCaps.test(mask))setValue(fieldName,getValue(fieldName).toUpperCase());return(true);}return(false);}function lTrim(aStr){var p=0;while((p<aStr.length)&&(aStr.charAt(p)==' '))p++;return(aStr.substr(p));}function rTrim(aStr){var p=aStr.length;while((p>0)&&(aStr.charAt(p-1)==' '))p--;return(aStr.substring(0,p));}function trim(aStr){return(rTrim(lTrim(aStr)));}function messageInButtonBar(Text){top.buttons.document.write("<HTML><HEAD><link rel='stylesheet' href='/DubInterViewer2.css'></HEAD><BODY><form><table><tr><td><B>"+Text+"</B></td><td>&nbsp;<input type='button' VALUE='OK' onClick='history.back()'></td></tr></table></form></BODY></HTML>");}function toHTMLChars(inString){var result="";var work=inString+"";var chr="";var p=-1;p=work.indexOf("&#");while(p>=0){if(p>0)result+=work.substr(0,p);work=work.substr(p+2);p=work.indexOf(";");chr=work.substr(0,p);work=work.substr(p+1);p=(chr*1);result+=String.fromCharCode(p);p=work.indexOf("&#");}result+=work;return(result);}function stringReplace(haystack,needle,newtext,insensitive){return haystack.replace(new RegExp(needle,'g'+((insensitive)?'i':'')),newtext);}function stringFormat(format){format=format.replace(/%%/g,'NLACyrahk');var card=format.match(new RegExp('%([bcdeufFosxX]|[0-9]:[bcdeufFosxX])','g'));if(card!=null){for(o=0;o<card.length;o++){var datatype="",a=null;if(card[o].length==4){datatype=card[o].substr(3,1);a=arguments[parseInt(card[o].substr(1,1))+1];}else{datatype=card[o].substr(1,1);a=arguments[o+1];}var puttxt='';switch(datatype){case 'c':puttxt=String.fromCharCode(a);break;case 'd':if(a>2147483647)a=0-(4294967296-a);puttxt=parseInt(a);break;case 'e':var i=0;if(a==0){puttxt=0;}else if(Math.floor(a)){while(Math.floor(a/10)){a/=10;i++;}puttxt=a+'e+'+i;}else{while(!Math.floor(a)){a*=10;i++;}puttxt=a+'e-'+i;}break;case 'u':if(a<0)a+=4294967296;puttxt=parseInt(a);break;case 'f':puttxt=parseFloat(String(a).replace(',','.'));break;case 'F':puttxt=parseFloat(a);break;case 's':puttxt=String(a);break;case 'g':puttxt=a;break;case 'x':case 'X':case 'o':case 'b':var base=0;var offset=55;if(datatype=='x')offset=87;switch(datatype){case 'b':base=2;break;case 'o':base=8;break;case 'x':case 'X':base=16;break;default:break;}if(a>0){while(a){b=a%base;if(b>9){puttxt=String.fromCharCode(b+offset)+puttxt;}else{puttxt=b+puttxt;}a=Math.floor(a/base);}}else puttxt='0';break;default:puttxt='';break;}format=format.replace(new RegExp(card[o]),puttxt);}}return format.replace(/NLACyrahk/g,'%');}function checkNumericValue(evt){evt=(evt)?evt:((event)?event:null);if(evt){var charCode=(evt.charCode||evt.charCode==0)?evt.charCode:((evt.keyCode)?evt.keyCode:evt.which);var numberDecimalSymbol='.';var ThousandSep='';var NumberFormat=getValue("NumberFormat");if(NumberFormat){if(NumberFormat.indexOf('decsep=')>=0)numberDecimalSymbol=NumberFormat.substr(NumberFormat.indexOf('decsep=')+7,1);if(NumberFormat.indexOf('thousandsep=')>=0)ThousandSep=NumberFormat.substr(NumberFormat.indexOf('thousandsep=')+12,1);}if((charCode>32)&&!isAllValidChars(String.fromCharCode(charCode),"-0123456789"+numberDecimalSymbol+ThousandSep)){if(evt.returnValue){evt.returnValue=false;}else if(evt.preventDefault){evt.preventDefault();}else{return false;}}}}function modal(par){var doc=par.doc||document;if(!doc.modallayer){var m=doc.createElement("div");if(!m)return false;m.align="center";m.style.zIndex=999998;m.style.position="absolute";m.style.filter="alpha(opacity:70)";m.style.opacity="0.7";m.style.backgroundColor="#000000";m.style.overflow="hidden";m.style.left="0px";m.style.top="0px";doc.body.appendChild(m);doc.modallayer=m;}if(!doc.alb){var alb=doc.createElement("table");if(!alb)return false;alb.style.zIndex=999999;alb.style.position="absolute";alb.align="center";alb.style.width="300px";alb.style.border="2px outset #d4d0c8";alb.style.backgroundColor="#ffffff";alb.style.borderCollapse="collapse";alb.style.font='normal 11px "Trebuchet MS", Verdana, Helvetica, Sans-serif';var cell_h=alb.insertRow(0).insertCell(0);cell_h.style.backgroundColor="#cde5c0";cell_h.style.fontWeight="bold";cell_h.style.padding="2px 4px";var cell_b=alb.insertRow(1).insertCell(0);cell_b.style.padding="4px 4px";var cell_f=alb.insertRow(2).insertCell(0);cell_f.style.padding="2px";cell_f.align="right";cell_f.setAttribute("align","right");cell_f.style.textAlign="right";var butt=doc.createElement("button");butt.style.font='normal 11px "Trebuchet MS", Verdana, Helvetica, Sans-serif';butt.style.backgroundColor="#cde5c0";butt.innerHTML="close";butt.onclick=function(e){if(doc.modallayer&&doc.modallayer.timer){clearTimeout(doc.modallayer.timer);doc.modallayer.timer=null;}doc.modallayer.style.display="none";doc.alb.style.display="none";};doc.body.appendChild(alb);cell_f.appendChild(butt);doc.alb=alb;}doc.alb.rows[0].cells[0].innerHTML=par.header;doc.alb.rows[1].cells[0].innerHTML=par.mess;doc.modallayer.id="modal"+Math.random();doc.modallayer.keep=function(){var m=null;try{var b=doc.body;m=doc.modallayer;var d=doc.alb;m.style.width=Math.max(parseInt(b.scrollWidth),parseInt(document.body.clientWidth))+'px';m.style.height=Math.max(parseInt(document.body.scrollHeight),parseInt(document.body.clientHeight))+'px';d.style.left=parseInt(parseInt(b.scrollLeft)+(parseInt(b.clientWidth)-parseInt(d.offsetWidth))/2)+"px";d.style.top=parseInt(parseInt(b.scrollTop)+(parseInt(b.clientHeight)-parseInt(d.offsetHeight))/2)+"px";}catch(e){if(m&&m.timer){clearTimeout(m.timer);m.timer=null;}}};doc.modallayer.timer=setInterval("document.getElementById('"+doc.modallayer.id+"').keep()",100);doc.modallayer.style.display="";doc.alb.style.display="";return true;}function modallayerClose(e){try{if(!document.modallayer)return;if(document.modallayer&&document.modallayer.timer){clearTimeout(document.modallayer.timer);document.modallayer.timer=null;}document.modallayer.style.display="none";document.alb.style.display="none";}catch(e){}}function getbrowser(){var res=navigator.userAgent.match(/(msie|opera|firefox|netscape|safari|AppleWebKit)[ \/\\]+([\d.]+)/i);return{app:res[1].toLowerCase(),ver:parseFloat(res[2])};}function setupalert(){if(window.browseAlert||typeof nebui=="undefined"||typeof nebui.alert=="undefined")return;var b=getbrowser();if((b.app=="msie"&&b.ver>5.1)||(b.app=="firefox"||b.app=="netscape")||(b.app=="opera"&&b.ver>=9)){window.browseAlert=window.alert;window.alert=nebui.alert;}}setupalert();function modalAlert(message){modal({header:"Message",mess:message});}