function BrowserDetector(){var a=this,b=navigator.userAgent.toLowerCase();a.isGecko=b.indexOf("gecko")!=-1&&b.indexOf("safari")==-1;a.isMozilla=a.isGecko&&b.indexOf("gecko/")+14==b.length;a.isNS=a.isGecko?b.indexOf("netscape")!=-1:b.indexOf("mozilla")!=-1&&b.indexOf("spoofer")==-1&&b.indexOf("compatible")==-1&&b.indexOf("opera")==-1&&b.indexOf("webtv")==-1&&b.indexOf("hotjava")==-1;a.isIE=b.indexOf("msie")!=-1&&b.indexOf("opera")==-1&&b.indexOf("webtv")==-1;a.isSafari=b.indexOf("safari")!=-1;a.isOpera=b.indexOf("opera")!=-1;a.isKonqueror=b.indexOf("konqueror")!=-1&&!a.isSafari;a.isIcab=b.indexOf("icab")!=-1;a.isAol=b.indexOf("aol")!=-1;a.isIECompatible=b.indexOf("msie")!=-1&&!a.isIE;a.isNSCompatible=b.indexOf("mozilla")!=-1&&!a.isNS&&!a.isMozilla;a.versionMinor=parseFloat(navigator.appVersion);if(a.isNS&&a.isGecko)a.versionMinor=parseFloat(b.substring(b.lastIndexOf("/")+1));else if(a.isIE&&a.versionMinor>=4)a.versionMinor=parseFloat(b.substring(b.indexOf("msie ")+5));else if(a.isMozilla)a.versionMinor=parseFloat(b.substring(b.indexOf("rv:")+3));else if(a.isSafari)a.versionMinor=parseFloat(b.substring(b.lastIndexOf("/")+1));else if(a.isOpera)if(b.indexOf("opera/")!=-1)a.versionMinor=parseFloat(b.substring(b.indexOf("opera/")+6));else a.versionMinor=parseFloat(b.substring(b.indexOf("opera ")+6));else if(a.isKonqueror)a.versionMinor=parseFloat(b.substring(b.indexOf("konqueror/")+10));else if(a.isIcab)if(b.indexOf("icab/")!=-1)a.versionMinor=parseFloat(b.substring(b.indexOf("icab/")+6));else a.versionMinor=parseFloat(b.substring(b.indexOf("icab ")+6));a.versionMajor=parseInt(a.versionMinor);a.geckoVersion=a.isGecko?b.substring(b.lastIndexOf("gecko/")+6,b.lastIndexOf("gecko/")+14):-1;a.isDOM1=document.getElementById;a.isDOM2Event=document.addEventListener&&document.removeEventListener;a.mode=document.compatMode?document.compatMode:"BackCompat";a.isWin=b.indexOf("win")!=-1;a.isWin32=a.isWin&&(b.indexOf("95")!=-1||b.indexOf("98")!=-1||b.indexOf("nt")!=-1||b.indexOf("win32")!=-1||b.indexOf("32bit")!=-1||b.indexOf("xp")!=-1);a.isMac=b.indexOf("mac")!=-1;a.isUnix=b.indexOf("unix")!=-1||b.indexOf("sunos")!=-1||b.indexOf("bsd")!=-1||b.indexOf("x11")!=-1;a.isLinux=b.indexOf("linux")!=-1;a.isNS4x=a.isNS&&a.versionMajor==4;a.isNS40x=a.isNS4x&&a.versionMinor<4.5;a.isNS47x=a.isNS4x&&a.versionMinor>=4.7;a.isNS4up=a.isNS&&a.versionMinor>=4;a.isNS6x=a.isNS&&a.versionMajor==6;a.isNS6up=a.isNS&&a.versionMajor>=6;a.isNS7x=a.isNS&&a.versionMajor==7;a.isNS7up=a.isNS&&a.versionMajor>=7;a.isNS71up=a.isNS&&a.versionMinor>=7.1;a.isIE4x=a.isIE&&a.versionMajor==4;a.isIE4up=a.isIE&&a.versionMajor>=4;a.isIE5x=a.isIE&&a.versionMajor==5;a.isIE55=a.isIE&&a.versionMinor==5.5;a.isIE5up=a.isIE&&a.versionMajor>=5;a.isIE55up=a.isIE&&a.versionMinor>=5.5;a.isIE6x=a.isIE&&a.versionMajor==6;a.isIE6up=a.isIE&&a.versionMajor>=6;a.isIE4xMac=a.isIE4x&&a.isMac;a.isOverflowSupported=a.isIE5up;a.isRightSizeSupported=a.isIE55up;if(a.isIE55up)a.rightSize=function(c,d){var e=(c.clientHeight-2)/c.rows,f=c.scrollHeight/e+0.5;if(d&&f>d)f=d;if(f<1)f=1;if(!isNaN(f)&&c.rows!=f)c.rows=f;return true};else a.rightSize=function(){}}browserDetector=new BrowserDetector();function isOverflowSupported(){return browserDetector.isOverflowSupported}function getUniqueUrl(a){var b=new String(a);if(b.indexOf("?")>-1)b+="&"+Date.parse((new Date()).toString());else b+="?"+Date.parse((new Date()).toString());return b}function chain(a,b,c){var d;if(typeof a=="string")a=document.getElementById(a);d=a[b];if(d)a[b]=function(){try {d.apply(this,arguments)}catch(e){}return c.apply(this,arguments)};else a[b]=c;if(browserDetector.isIE)chains[chains.length]={elem:a,event:b}}if(browserDetector.isIE){chains=[];chain(window,"onunload",function unchainEverything(){var c,d,a,b;try {for(a=0,b=chains.length;a<b;a++){c=chains[a];d=c.elem[c.event];c.elem[c.event]=null}}catch(e){}})}function ieVersion(){var a=/MSIE ([0-9]+\.[0-9]+)/.exec(navigator.userAgent);return a&&a[1]}function geckoVersion(){var a=/Gecko\/([0-9]+)/.exec(navigator.userAgent);return a&&a[1]}geckoVersion.NS7_1=20030624;function escapeHTML(a,b,c){if(typeof b!="string")b="\n";if(typeof c!="string")c="";return(a||"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;").replace(/\n|\r\n?/g,b)||c}function pageOffset(a){var b=0,c=0;for(;a;a=a.offsetParent){c+=a.offsetTop;b+=a.offsetLeft}return{x:b,y:c}}function openCtrWin(a,name,b){var c=window.open(a,name,b),d=b.replace(/.*width=([0-9]+).*/,"$1"),e=b.replace(/.*height=([0-9]+).*/,"$1");if(c==null){alert(MessageFormat.format(jsMessages["IE_POPUP_SECURITY_MSG"],[""]));return}if(d&&e){c.resizeTo(d,e);c.moveTo((screen.width-d)/2,(screen.height-e)/2)}return c}function showHelp(a){var b="http://www.successfactors.com/sf/support/index.html"+a;window.open(b,"sfhelp","scrollbars,resizable,height=480,width=730")}function openUrl(a){window.open(a,"sfhelp","scrollbars,resizable,height=480,width=730")}function openSSO(a,b,c){var d="/ssoredirect?ssoredi_ssourl="+a+"&ssoredi_unamelbl="+b+"&ssoredi_pwordlbl="+c;window.open(d,"sfsso","scrollbars,resizable,height=540,width=730")}function openSSOUS(a,b,c,d,e,f,g,h,i){var j="/ssoredirect?ssoredi_ssourl="+a+"&ssoredi_actlbl="+b+"&ssoredi_actstr="+c+"&ssoredi_unamelbl="+d+"&ssoredi_pwordlbl="+e+"&ssoredi_tmlbl="+f+"&ssoredi_tokenlbl="+g+"&ssoredi_tktmlbl="+h+"&ssoredi_e="+i;window.open(j,c,"scrollbars,resizable,height=540,width=730")}function openWACA(a){var b,c;if(window.showModelessDialog){b=window.dialogArguments||window.opener;if(b&&b!=window){c=b.open(a,"WACA","scrollbars,resizable,height=540,width=730");c.opener=window}else{c=window.open(a,"WACA","scrollbars,resizable,height=540,width=730");c.opener=window}}else{c=window.open(a,"WACA","scrollbars,resizable,height=540,width=730");c.focus()}}function rsw_create_popup_window(a,name,b){var c,d;if(window.showModelessDialog){d=window.dialogArguments||window.opener;if(d&&d!=window){c=d.open(a,name,b);if(c)c.opener=window}else{c=window.open(a,name,b);c.opener=window}}else c=window.open(a,name,b);return c}function showHandBook(a){window.open(a,"handbookall","scrollbars,resizable,height=540,width=730")}function expandArea(a){var b=document.getElementById(a);b.expand="true";if(b.scrollHeight/16>4)b.rows=b.scrollHeight/16+3;else b.rows=b.rows+10}function collapseArea(a){collapseArea2(a,4)}function collapseArea2(a,b){var c=document.getElementById(a);c.expand="false";c.rows=b}function measureAllFields(){var a=document.getElementsByTagName("TEXTAREA"),d,b,c;for(b=0,c=a.length;b<c;b++){d=a[b];if(d.expand=="true"&&d.scrollHeight/16>4)d.rows=d.scrollHeight/16}}function gebi(a){return document.getElementById(a)}function gfbn(name){return document.forms[0][name]}function show(a){document.getElementById(a).style.display=""}function hide(a){document.getElementById(a).style.display="none"}function showAll(a){var b;for(b=0;b<a.length;b++)document.getElementById(a[b]).style.display=""}function hideAll(a){var b;for(b=0;b<a.length;b++)document.getElementById(a[b]).style.display="none"}function setField(a,b){document.getElementById(a).value=b}if(ieVersion()&&ieVersion()<=5.5)window.runLater=function(a){a()};else window.runLater=function(a){setTimeout(a,1)};function drawPercentBar(a,b,c,d,e){var f="",g=e-2,h,i,j,k,l="red",m="clear",n="grey",o,p,q,r;i=0;j=0;k=0;if(a==100){i=g;l="grey";m="grey"}else{if(a==0)i=0;else i=parseInt(a/100*g);h=g-i;if(b>a){j=parseInt((b-a)/100*g);h-=j}else l="grey";if(h>0)k=h}if(i==0)if(j>0)n="red";else{n="clear";l="clear"}if(j>0)if(b>98)m="red";o=d-c;p=a-c;q=e*p/o;if(q>e-2)q-=2;r=e-q-3;f+='<table cellspacing="0" cellpadding="0" border="0"><tr><td><table cellspacing="0" cellpadding="0" border="0">'+('<tr><td><img src="img/black.gif" width="1" height="1"></td><td height="1" width='+i+'><img src="img/black.gif" height="1" width='+i+"></td><td width="+j+' height="1"><img src="img/black.gif" width='+j+' height="1"></td><td width='+k+' height="1"><img src="img/black.gif" width='+k+' height="1"></td><td><img src="img/black.gif" width="1" height="1"></td></tr>')+('<tr><td><img src="img/black.gif" width="1" height="7"></td><td width='+i+' height="7"><img src="img/'+n+'.gif" border=0 width='+i+' height="7" alt='+a+'></td><td width="'+j+'" height="7"><img src="img/'+l+'.gif" border=0 width='+j+" height=7 alt="+a+"></td><td width="+k+' height=7><img src="img/'+m+'.gif" border=0 width='+k+" height=7 alt="+a+'></td><td><img src="img/black.gif" width="1" height="7"></td></tr>')+('<tr><td><img src="img/black.gif" width="1" height="1"></td><td height="1" width='+i+'><img src="img/black.gif" height="1" width='+i+"></td><td width="+j+' height="1"><img src="img/black.gif" width='+j+' height="1"></td><td width='+k+' height="1"><img src="img/black.gif" width='+k+' height="1"></td><td><img src="img/black.gif" width="1" height="1"></td></tr>')+"</table></td></tr></table>";return f}function isPulldownTooLong(a,b){var c=false,d;if(a)for(d=0;d<a.length;d++)if(a[d].option_text.length>b)c=true;return c}function draw_pulldown(pulldown_name,max_length,title){var array_name=pulldown_name+"_array",pulldown_array=eval(array_name),html="",found_selected,value_text,i;if(pulldown_array)if(isPulldownTooLong(pulldown_array,max_length)){html+='<div style="border:1px #8899BB solid; padding:0; width:100%;"><table cellspacing=0 cellpadding=0 width="100%"><tr onClick="javascript:document.getElementById(\''+pulldown_name+"_options').style.display=='block'?document.getElementById('"+pulldown_name+"_options').style.display='none':document.getElementById('"+pulldown_name+"_options').style.display='block';\"><td><div id=\""+pulldown_name+'_selected_text" class="pulldown_text">';found_selected=false;value_text="";for(i=0;i<pulldown_array.length;i++)if(pulldown_array[i].option_selected==true){html+=pulldown_array[i].option_text;found_selected=true;value_text=pulldown_array[i].option_value}if(!found_selected){html+=pulldown_array[0].option_text;value_text=pulldown_array[0].option_value}html+='</div><input type=hidden name="'+pulldown_name+'" id="'+pulldown_name+'" value="'+value_text+'"></td><td align="right"><img src="img/pulldown_arrow.gif" style="vertical-align:texttop; margin:2;"></td></tr></table></div>'+('<div id="'+pulldown_name+'_options" name="'+pulldown_name+'_options" style="display:none; border:1px #000000 solid; background-color:#FFFFFF;" >');for(i=0;i<pulldown_array.length;i++)html+='<div class="pulldown_selector" style="cursor:default;" id="'+pulldown_array[i].option_value+"\" onClick=\"this.style.color = '#000000'; this.style.backgroundColor = '#FFFFFF';document.getElementById('"+pulldown_name+"').value = this.id; document.getElementById('"+pulldown_name+"_selected_text').innerHTML = this.innerHTML; document.getElementById('"+pulldown_name+"_options').style.display = 'none';\" onMouseOut=\"this.style.color = '#000000'; this.style.backgroundColor = '#FFFFFF';\" onMouseOver=\" this.style.cursor = 'default'; this.style.backgroundColor = '#316AC5'; this.style.color = '#FFFFFF';\">"+pulldown_array[i].option_text+"</div>";html+="</div>"}else{html+='<select name="'+pulldown_name+'"';if(!isUndefined(title)&&isString(title))html+=' title="'+title;html+='">';for(i=0;i<pulldown_array.length;i++){html+="<option ";if(pulldown_array[i].option_selected==true)html+=" selected ";html+='value="'+pulldown_array[i].option_value+'">'+pulldown_array[i].option_text+"</option>"}html+="</select>"}return html}scrollFunction=null;function focusOnLoad(a){scrollFunction=function(){var b=gebi("scrollarea"),c=gebi(a);if(b&&c){b.scrollTop=1000000;c.focus();b.scrollTop-=20}else if(c){window.scrollTo(0,1000000);c.focus();window.scrollBy(0,-20)}return true}}if(!Array.prototype.splice)Array.prototype.splice=function(a,b){var c=this,d=[],e=arguments.length-2,f=c.length+e-b,g,h,i,j;for(g=0;g<b;++g)d[g]=c[a+g];h=a+b;i=a+e;j=c.length-h;if(h<i)for(g=j;--g>=0;)c[i+g]=c[h+g];else if(h>i)for(g=0;g<j;++g)c[i+g]=c[h+g];for(g=0;g<e;++g)c[g+a]=arguments[g+2];c.length=f;return d};function stringPostSize(a){var b=a.length,c;if(a.indexOf("\n")!=-1&&a.indexOf("\r")==-1)for(c=0;(c=a.indexOf("\n",c)+1)>0;)++b;return b}function set_display_option(a,b){var c=new Date(),d=new Image(),e="userdisplayoptions?key="+a+"&value="+b;d.src=e+"&time="+c.getTime()}function preload(a){var b=preload.cache;if(!b)b=preload.cache={};if(!b[a])(b[a]=new Image()).src=a}function imghack(a){var b=imghack.imgs,c=0;while(c<b.length)if(b[c].complete)b.splice(c,1);else++c;(b[b.length]=new Image()).src=a+"&_="+(new Date()).getTime()}imghack.imgs=[];function detectPlugin(name){var a=0,b,c=navigator.plugins;if(c&&(b=c.length)>0)for(;a<b;++a)if(c[a].name.indexOf(name)>=0||c[a].description.indexOf(name)>=0)return true;return false}function detectMimeTypes(){var a,b,c;for(a=0,b=arguments,c=arguments.length;a<c;++a)if(navigator.mimeTypes[b[a]]&&navigator.mimeTypes[b[a]].enabledPlugin!=null)return true;return false}function detectActiveX(name){try {if(ActiveXObject&&"object"==typeof new ActiveXObject(name))return true}catch(a){}return false}function detectSVG(){if(!window.svgInstalled)if(browserDetector.isWin&&browserDetector.isIE4up)window.svgInstalled=detectActiveX("Adobe.SVGCtl");else window.svgInstalled=detectMimeTypes("image/svg","image/svg+xml","image/svg-xml");return window.svgInstalled}function emitSVG(a,b,c){a+=(a.indexOf("?")==-1?"?":"&")+"fmt=";if(detectSVG())document.write('<embed src="'+a+'svg" type="image/svg+xml" width="'+b+'" height="'+c+'" pluginspage="http://www.adobe.com/svg/viewer/install/auto/?'+location+'"/>');else document.write('<img src="'+a+'png" width="'+b+'" height="'+c+'" border="0"/>')}loadTimes=[];function setFieldAndSubmit(a,b){var c=document.getElementById(a).value,d,e;setField(a,b);d=gebi(a).form;e=true;if(d.onsubmit)e=d.onsubmit();if(e)d.submit();else setField(a,c)}function resetFieldOnLoad(a,b){if(!b)b="";chain(window,"onload",function(){gebi(a).value=b})}function setColDisplay(a,b,c){var d=document.getElementById(a),e,f,g;for(e=0;e<d.rows.length;e++){f=d.rows[e];g=f.cells[b];g.style.display=c}}function hideCol(a,b){setColDisplay(a,b,"none")}function showCol(a,b){setColDisplay(a,b,"")}function setCheckedValue(a,b){var d,e,c;for(c in a){d=a[c];e=gebi(d);if(e)e.checked=b}}function setSelectedValue(a,b){var c=document.getElementById(a),d;if(c==null)return;for(d=0;d<c.length;d++)if(c[d].value==b)c.selectedIndex=d}function getMousePos(a){var b={x:0,y:0},a;if(!a)a=window.event;if(a.pageX||a.pageY){b.x=a.pageX;b.y=a.pageY}else if(a.clientX||a.clientY){b.x=a.clientX+document.body.scrollLeft;b.y=a.clientY+document.body.scrollTop}return b}function addMouseoverHtml(a,b,c){var d=function(e,f){e.innerHTML=f};_addMouseoverStuff(a,d,b,c)}function addMouseoverText(a,b,c){var d=function(e,f){ct(f,e)};_addMouseoverStuff(a,d,b,c)}function _addMouseoverStuff(a,b,c,d){var e,f,g,h,i,j;if(isString(a))e=gebi(a);else e=a;f=ce("div");f.className="mouseover";if(!d)d="300px";f.style.width=d;g=ce("table",f);set(g,{className:"mouseoverInner",cellSpacing:0,cellPadding:3});h=ce("tbody",g);i=ce("tr",h);j=ce("td",i);b(j,c);if(!browserDetector.isIE)document.captureEvents(Event.MOUSEMOVE);chain(e,"onmousemove",function(k){var l=getMousePos(k),m=l.x+12,n=l.y+22,o;f.style.display="block";f.style.width=g.offsetWidth;o=document.body.clientWidth+document.body.scrollLeft-f.offsetWidth;if(m>o)m=o;set(f.style,{left:m,top:n})});chain(e,"onmouseout",function(){f.style.display="none"});e.style.cursor="default";if(document.body.firstChild)document.body.insertBefore(f,document.body.firstChild);else document.body.appendChild(f)}(function(){var a=0,b=0,c=null,d=null,e=0,f=0,g,h,i,j=!ieVersion()||ieVersion()>5.5,k=j?0:85,l;function m(){var x=document.getElementsByTagName("link"),y="",A,z;for(z=0;z<x.length;++z){A=x[z];if(A.type=="text/css"&&A.rel=="stylesheet")y+="<link type='text/css' rel='stylesheet' href='"+A.href+"' />"}function B(){if(typeof isPESelfService!="undefined")return isPESelfService?"<script type='text/javascript'>document.domain='successfactors.com';</script>":"";else return""}document.body.insertBefore(set(a=document.createElement("IFRAME"),{width:1,height:1,frameBorder:0,scrolling:"no",visibility:"hidden",tabIndex:9999,style:{position:"absolute",zIndex:"999",border:"0px",overflow:"hidden",MozOpacity:k/100,filter:"progid:DXImageTransform.Microsoft.Alpha(opacity="+k+")"},src:'javascript:"<html><head>'+y+B()+"</head><body onload='parent.toolTipIFrameOnLoadCallback()' style='background-color:#ff3;margin:0px;padding:0px;'><div><table cellspacing='0' cellpadding='3' class='mouseoverInner'><tr><td id='tt'></td></tr></table></div></body></html>\""}),document.body.firstChild)}function n(){var x=document.getElementsByTagName("link"),y="",A,z;for(z=0;z<x.length;++z){A=x[z];if(A.type=="text/css"&&A.rel=="stylesheet")y+="<link type='text/css' rel='stylesheet' href='"+A.href+"' />"}document.body.insertBefore(set(a=document.createElement("IFRAME"),{width:1,height:1,frameBorder:0,scrolling:"no",visibility:"hidden",tabIndex:9999,style:{position:"absolute",zIndex:"999",border:"0px",overflow:"hidden",MozOpacity:k/100,filter:"progid:DXImageTransform.Microsoft.Alpha(opacity="+k+")"},src:'javascript:"<html><head>'+y+getDocDomain()+"</head><body onload='parent.toolTipIFrameAbsoluteOnLoadCallback()' style='background-color:#ff3;margin:0px;padding:0px;'><div><table cellspacing='0' cellpadding='3' class='mouseoverInner'><tr><td id='tt'></td></tr></table></div></body></html>\""}),document.body.firstChild)}function o(){var x;if(b){x=h-(new Date()).getTime();if(g)k=Math.min(g,(250-x)*85/250);else k=Math.max(0,x*85/250);if(k==g){clearInterval(i);i=0;if(!k){a.style.display="none";a.style.visibility="hidden"}}if(a.filters)a.filters.item(0).opacity=k;else a.style.MozOpacity=k/100}}function p(){if(j){g=85;h=(new Date()).getTime()+250/85*(85-k);if(!i)i=setInterval(o,1)}}function q(){if(j){g=0;h=(new Date()).getTime()+250/85*k;if(!i)i=setInterval(o,1)}else{a.style.display="none";a.style.visibility="hidden"}}function r(x){a.style.left=x.x+12+"px";a.style.top=x.y+12+"px"}function s(x){t(getMousePos(x))}function t(x){a.style.left=Math.min(x.x+12,document.body.clientWidth+document.body.scrollLeft-a.offsetWidth-4);a.style.top=x.y+22}function u(){if(b)q();else{c=null;d=null}}function v(x,y){a.style.display="";a.width=300;b.innerHTML=x;a.style.visibility="";a.width=e.offsetWidth;a.height=e.offsetHeight;r(y);p()}function w(x,y){a.style.display="";a.width=300;b.innerHTML=x;a.style.visibility="";a.width=e.offsetWidth;a.height=e.offsetHeight;t(y);p()}toolTipIFrameOnLoadCallback=function(){b=a.contentWindow.document.getElementById("tt");f=a.contentWindow.document.body.firstChild;e=f.firstChild;if(c){w(c,d);c=null;d=null}else u()};toolTipIFrameAbsoluteOnLoadCallback=function(){b=a.contentWindow.document.getElementById("tt");f=a.contentWindow.document.body.firstChild;e=f.firstChild;if(c){v(c,d);c=null;d=null}else u()};showToolTip=function(x,y){var z;if("undefined"==typeof isPESelfService||!isPESelfService||!browserDetector.isIE&&isPESelfService){z=window.event||showToolTip.caller.arguments[0];if(!a)m();if(b)w(y,getMousePos(z));else{c=y;d=getMousePos(z)}x.onmousemove=s;x.onmouseout=u}};if(browserDetector.isIE4up)showToolTipInAbsolute=showToolTip;else showToolTipInAbsolute=function(x,y){var z=window.event||showToolTipInAbsolute.caller.arguments[0],A;if(!a)n();A=getAbsolutePosition(x);if(b)v(y,A);else{c=y;d=A}x.onmousemove=r(A);x.onmouseout=u}})();function parseISO8601Date(a){var b,c,d,e;if("string"!=typeof a)return null;b=a.split("-");if(b.length!=3)return null;c=parseInt(b[0]);d=parseInt(b[1]);e=parseInt(b[2]);if(isNaN(c+d+e))return null;return new Date(c,d-1,e)}Math.sgn=function(a){if(a==0)return 0;if(a>0)return 1;return-1};Math.randSgn=function(){var a=Math.random();if(a<1/3)return-1;if(a>=2/3)return 1;return 0};function expose(a){var b="",c;for(c in a){b+=c+" = ";try {b+=a[c]}catch(d){b+="*** "+d+" ***"}b+="\n"}return b}function set(a,b){var c;if(b)for(c in b)if(a[c]&&"object"==typeof b[c])set(a[c],b[c]);else a[c]=b[c];return a}function alternateRowColors(a,b){var c,e,g,h,i,k,j,f,d;if(typeof a=="string")a=gebi(a);c="dataRow";for(d=0;d<a.tBodies.length;d++){e=a.tBodies[d];for(f=0;f<e.rows.length;f++){g=e.rows[f];h=true;if(b!=undefined){i=g.getAttribute("type");if(i!=undefined&&i==b)h=true;else h=false}if(h==true){for(j=0;j<g.cells.length;j++){k=g.cells[j];k.className=c}c=c=="dataRow"?"dataRowAlt":"dataRow"}}}}if(typeof XMLHttpRequest==="undefined")window.XMLHttpRequest=function(){try {return new ActiveXObject("Msxml2.XMLHTTP")}catch(a){try {return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return new ActiveXObject("Msxml2.XMLHTTP.4.0")}}};Function.prototype.members=function(a){set(this.prototype,a)};function isDev(){return/^https?:\/\/localhost[:\/]/.test(location)}function ce(a,parent,b){var c=document.createElement(a);if(parent)parent.appendChild(c);if(b)set(c,b);return c}function ct(a,parent){var b=document.createTextNode(a);if(parent)parent.appendChild(b);return b}function tdom(a,b){var c=0,ns="nextSibling",d="previousSibling",e={f:"firstChild",l:"lastChild",n:ns,p:d,u:"parentNode"},f={f:ns,l:d,n:ns,p:d},i,g,h;for(g=0,h=b.length;g<h;++g){i=b.charAt(g);if("0"<=i&&i<="9")c=c*10+i*1;else{do{a=a[e[i]];while(a&&a.nodeType==3)a=a[f[i]]}while(--c>0);c=0}}return a}function childNodes(a){var b,c,d,e;if(a&&a.hasChildNodes()){c=a.childNodes;b=new Array(c.length);d=0;for(e=0;e<c.length;e++)if(c[e].nodeType!=3)b[d++]=c[e];b=b.slice(0,d)}return b}function idGen(){return"idgen"+ ++idGen.lastId}idGen.lastId=0;if("undefined"!=typeof event&&isDev())window.onerror=function(a,b,c){var d="",e="N/A",f,g,i,h,j,req;if("undefined"!=typeof event){f=["Stack Trace:"];g=/^function[^)]+\)/;for(h=arguments.caller;h;h=h.caller){i=g.exec(h.callee);f[f.length]=0&&i?i[0]:h.callee}e=window.event.errorCharacter}j="/jslog?m="+escape(a)+"&u="+escape(b)+"&l="+c;try {req=new XMLHttpRequest();req.open("POST",j,true);req.setRequestHeader("Content-Type","text/plain; charset=US-ASCII");req.send(f.join("\n"))}catch(k){imghack(j)}if(isDev())alert("Error: "+a+"\nURL: "+b+"\nLine: "+c+"\nChar: "+e+"\n"+f.join("\n    "));return true};document.writeNode=function(a){var b=this,c;if(!b.replaceNodes){b.replaceNodes=[];chain(window,"onload",function(){var e,f,g,d;for(d=0;d<b.replaceNodes.length;d++){e=b.replaceNodes[d];f=gebi(e.id);if(f){g=f.parentNode;g.replaceChild(e.node,f)}}})}c="tempid_"+b.replaceNodes.length;document.write('<span id="'+c+'"></span>');b.replaceNodes.push({id:c,node:a})};function imgBtnSubmit(name){var a=gfbn(name);a.click();return false}Function.prototype.method=function(name,a){this.prototype[name]=a;return this};isThisNetscape4=false;String.method("quote",function(){return'"'+this.replace(/(["\\])/g,"\\$1").replace(/\r\n?|\n/g,"\\n")+'"'});String.method("trim",function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")});String.method("equalsIgnoreCase",function(a){return this.toLowerCase().toUpperCase()==a.toLowerCase().toUpperCase()});function isAlien(a){return isObject(a)&&typeof a.constructor!="function"}function isArray(a){return isObject(a)&&a.constructor==Array}function isBoolean(a){return typeof a=="boolean"}function isEmpty(a){var b,c;if(isObject(a))for(b in a){c=a[b];if(isUndefined(c)&&isFunction(c))return false}return true}function isFunction(a){return typeof a=="function"}function isNull(a){return typeof a=="object"&&!a}function isNumber(a){return typeof a=="number"&&isFinite(a)}function isObject(a){return a&&typeof a=="object"||isFunction(a)}function isString(a){return typeof a=="string"}function isUndefined(a){return typeof a=="undefined"}String.method("entityify",function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")});function stringify(a){var b,c,d;switch(typeof a){case"object":if(a)if(a.constructor==Array){c="[";for(b=0;b<a.length;++b){d=stringify(a[b]);if(d!="function"&&!isUndefined(d))c+=(c!="["?",":"")+d;else c+=","}return c+"]"}else if(typeof a.toString!="undefined"){c="{";for(b in a){d=stringify(a[b]);if(d!="function"&&!isUndefined(d))c+=(c!="{"?",":"")+(/^[a-zA-Z_]\w*$/.test(b)?b:b.quote())+":"+d}return c+"}"}else return undefined;return"null";case"unknown":case"undefined":return undefined;case"string":return a.quote();case"function":return"function";default:return String(a)}}function validateEffDate(a,b,c,d,e){if(a<b)alert(d);if(a>c)alert(e)}function validateMaxDate(a,b,c){if(b>a)alert(c)}function validateDate(a,b,c){if(b<a)alert(c)}function openShowMeHelp(a){window.open(a,"_blank","scrollbars,resizable,height=600,width=400")}function addMessageForAlert(msg){if(isUndefined(this.document.messageForAlert)){this.document.messageForAlert=msg;chain(window,"onload",function(){alert(eval("this.document.messageForAlert"))})}else this.document.messageForAlert+=msg}function redirectPost(a){document.forms[0].action=a;document.forms[0].submit()}function arrayContains(a,item){var b;if(a==undefined||a==null)return false;for(b=0;a.length!=null&&b<a.length;b++)if(a[b]==item)return true;return false}function getAbsolutePosition(a){var b={x:0,y:0,w:a.offsetWidth,h:a.offsetHeight},c;for(c=a;c;c=c.offsetParent){b.x+=c.offsetLeft;b.y+=c.offsetTop}for(c=a;c!=document.body;c=c.parentNode){if(c.scrollLeft)b.x-=c.scrollLeft;if(c.scrollTop)b.y-=c.scrollTop}if(browserDetector.isIE)for(c=a.offsetParent;c;c=c.offsetParent){b.x+=c.clientLeft;b.y+=c.clientTop}return b}function absPos(a){var b={x:0,y:0,w:a.offsetWidth,h:a.offsetHeight},c;for(c=a;c;c=c.offsetParent){b.x+=c.offsetLeft;b.y+=c.offsetTop}for(c=a;c!=document.body;c=c.parentNode){if(c.scrollLeft)b.x-=c.scrollLeft;if(c.scrollTop)b.y-=c.scrollTop}if(browserDetector.isIE)for(c=a.offsetParent;c;c=c.offsetParent){b.x+=c.clientLeft;b.y+=c.clientTop}return b}function confirmOnGo(a){var b=gebi(a).value;if(null!=b&&b!="")if(confirm(b))return true;else return false;return true}function urlEncodeForm(a){var b=a.elements,c=[],f,g,h,i,j,d,e;for(d=0,e=b.length;d<e;++d){f=b[d];if(f.name)switch(f.type){case"select-one":g="";if(f.selectedIndex>=0)g=f.options[f.selectedIndex].value;c[c.length]=f.name+"="+encodeURIComponent(g);break;case"select-multiple":for(h=0,i=f.options,j=i.length;h<j;++h)if(i[h].selected)c[c.length]=f.name+"="+encodeURIComponent(i[h].selected);break;case"button":case"radio":case"checkbox":if(!f.checked)break;default:c[c.length]=f.name+"="+encodeURIComponent(f.value)}}return c.join("&")}function daysBetween(a,b){var c,d;if(typeof a!="object"||typeof b!="object")return 0;c=1000*60*60*24;d=Math.ceil((b.getTime()-a.getTime())/c);return d}RegExp.escape=(function(){var a=['"',"/",".","*","+","?","|","$","(",")","[","]","{","}","\\"],b=new RegExp("(\\"+a.join("|\\")+")","g");return function(c){return c.replace(b,"\\$1")}})();function hideshowPane(a,b,c){var d;if(document.getElementById(a).style.display==""){document.getElementById(a).style.display="none";document.getElementById(b).src="/img/plus.gif";d=jsMessages["EXPAND_GENERAL"]+" "+c}else{document.getElementById(a).style.display="";document.getElementById(b).src="/img/minus.gif";d=jsMessages["COLLAPSE_GENERAL"]+" "+c}document.getElementById(b).title=d;document.getElementById(b).alt=d}function emailNTSBtnToggle(a,b,c){var d="",e=true;e=document.getElementById(a).checked;if(e==true){d=jsMessages["FUNCBLOCK_NOTIFICATION_CHECK_MSG"];document.getElementById(b).disabled=false;document.getElementById(c).disabled=false}else{d=jsMessages["FUNCBLOCK_NOTIFICATION_UNCHECK_MSG"];document.getElementById(b).disabled=true;document.getElementById(c).disabled=true}alert(d)}function createCallback(a,b,c){return function(d){return a[b](d,c,this)}}function getObj(name){var a=this;if(document.getElementById){a.obj=document.getElementById(name);a.style=document.getElementById(name).style}else if(document.all){a.obj=document.all[name];a.style=document.all[name].style}else if(document.layers){a.obj=document.layers[name];a.style=document.layers[name]}}function invi(a,b,c){var DHTML=document.getElementById||document.all||document.layers,d;if(!DHTML)return;d=new getObj(a);if(c=="inline")d.style.display=b?c:"none";else if(c=="table-row")if(browser=="Internet Explorer")d.style.display=b?"block":"none";else d.style.display=b?c:"none";else d.style.display=b?"block":"none"}function enableTab(a){invi(a+"LinkSelected",1,"inline");invi(a+"Link",0);invi(a+"Box",1);document.getElementById(a+"Tab").className="selected"}function disableTab(a){invi(a+"LinkSelected",0);invi(a+"Link",1,"inline");invi(a+"Box",0);document.getElementById(a+"Tab").className=""}function getSrcElem(a){return window.event?window.event.srcElement:a?a.target:null}
