﻿var LC_Style=["The server time is: ","",1,4,0,];var LC_IE=(document.all);var LC_NS=(document.layers);var LC_N6=(window.sidebar);var LC_Old=(!LC_IE&&!LC_NS&&!LC_N6);var LC_Clocks=new Array();var LC_Time;var LC_DaysOfWeek=[["Sunday","Sun"],["Monday","Mon"],["Tuesday","Tue"],["Wednesday","Wed"],["Thursday","Thu"],["Friday","Fri"],["Saturday","Sat"]];var LC_MonthsOfYear=[["January","Jan"],["February","Feb"],["March","Mar"],["April","Apr"],["May","May"],["June","Jun"],["July","Jul"],["August","Aug"],["September","Sep"],["October","Oct"],["November","Nov"],["December","Dec"]];var LC_ClockUpdate=[0,1000,60000];function LC_CreateClock(c){if(LC_IE||LC_N6){clockTags='<span id="'+c.Name+'"></span>'}else if(LC_NS){clockTags='<ilayer id="'+c.Name+'Pos"><layer id="'+c.Name+'"></layer></ilayer>'}if(!LC_Old){document.write(clockTags)}else{LC_UpdateClock(LC_Clocks.length-1)}}function LC_InitializeClocks(){LC_OtherOnloads();if(LC_Old){return}for(i=0;i<LC_Clocks.length;i++){LC_UpdateClock(i);if(LC_Clocks[i].Update){eval('var '+LC_Clocks[i].Name+'=setInterval("LC_UpdateClock("+'+i+'+")",'+LC_ClockUpdate[LC_Clocks[i].Update]+')')}}}function LC_UpdateClock(Clock){var c=LC_Clocks[Clock];if(c.Update==1)LC_Time.setTime(LC_Time.getTime()+1000);if(c.Update==2)LC_Time.setTime(LC_Time.getTime()+60000);var t=LC_Time;var day=t.getDay();var md=t.getDate();var mnth=t.getMonth();var hrs=t.getHours();var mins=t.getMinutes();var secs=t.getSeconds();var yr=t.getYear();if(yr<1900){yr+=1900}if(c.DisplayDate>=3){md+="";abbrev="th";if(md.charAt(md.length-2)!=1){var tmp=md.charAt(md.length-1);if(tmp==1){abbrev="st"}else if(tmp==2){abbrev="nd"}else if(tmp==3){abbrev="rd"}}md+=abbrev}if(mins<=9){mins="0"+mins}if(secs<=9){secs="0"+secs}var html=c.OpenTags;html+=hrs+':'+mins;if(c.Update==1){html+=':'+secs}html+=c.CloseTags;if(c.DisplayDate==1){html+=' '+md+'/'+(mnth+1)+'/'+yr}if(c.DisplayDate==2){html+=' '+(mnth+1)+'/'+md+'/'+yr}if(c.DisplayDate>=3){html+=' on '+LC_DaysOfWeek[day][c.Abbreviate]+', '+md+' '+LC_MonthsOfYear[mnth][c.Abbreviate]}if(c.DisplayDate>=4){html+=' '+yr}if(LC_NS){var l=document.layers[c.Name+"Pos"].document.layers[c.Name].document;l.open();l.write(html);l.close()}else if(LC_N6||LC_IE){document.getElementById(c.Name).innerHTML=html}else{document.write(html)}}function LiveClock(a,b,c,d,e,f){this.Name='LiveClock'+LC_Clocks.length;this.OpenTags=a||LC_Style[0];this.CloseTags=b||LC_Style[1];this.Update=c||LC_Style[2];this.Abbreviate=d||LC_Style[3];this.DisplayDate=e||LC_Style[4];LC_Time=new Date(f);LC_Clocks[LC_Clocks.length]=this;LC_CreateClock(this)}function changeObjectVisibility(objectId,newVisibility){var styleObject=getStyleObject(objectId);if(styleObject){styleObject.display=newVisibility;return true}else{return false}}function getStyleObject(objectId){if(document.getElementById&&document.getElementById(objectId)){return document.getElementById(objectId).style}else if(document.all&&document.all(objectId)){return document.all(objectId).style}else if(document.layers&&document.layers[objectId]){return document.layers[objectId]}else{return false}}function switchIfDone(this_div,next_div){var complete=true;var panel=document.getElementById(this_div);var input=panel.getElementsByTagName("input");for(var loop=0;loop<input.length;loop++){var s=input[loop].name;if(s.indexOf("_REQ")>0){if(input[loop].value==""){complete=false}}}if((complete==true)&&(next_div=="finished")){return true}else if(complete==true){switchDiv(this_div,next_div)}else{alert('please complete the form before moving on');return false}}function switchDiv(this_div,next_div){if(getStyleObject(this_div)&&getStyleObject(next_div)){changeObjectVisibility(this_div,"none");changeObjectVisibility(next_div,"block")}}function PrintMe(w){var o='toolbar=no,location=no,status=no,menubar=yes,scrollbars=yes,width='+w+',height=600,left=100,top=25';var pHTML=document.getElementById('prt').innerHTML;var wp=window.open('','',o);wp.document.open();wp.document.write('<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head>');wp.document.write('<link rel=Stylesheet href=PresentationLayer/1721/Common/print.css><link rel=stylesheet href=PresentationLayer/1724/Common/CSS/Template3/layout');if(!document.all){wp.document.write('-ns')}else if(navigator.userAgent.indexOf("Opera")>0){wp.document.write('-op')}else if(navigator.userAgent.indexOf("MSIE")>0){wp.document.write('-ie')}wp.document.write('.css></head><body leftmargin=0 rightmargin=0 topmargin=0><div class=extPopUp>');wp.document.write(pHTML);wp.document.write('</div></body></html>');wp.document.close();wp.focus()}function GetDiv(sDiv){var div;if(document.getElementById)div=document.getElementById(sDiv);else if(document.all)div=eval("window."+sDiv);else if(document.layers)div=document.layers[sDiv];else div=null;return div}function HideDiv(sDiv){d=GetDiv(sDiv);if(d){if(document.layers)d.visibility="hide";else d.style.visibility="hidden"}}function PleaseWait(sDivButton,sDivMessage,sInnerHtml){HideDiv(sDivButton);var d=GetDiv(sDivMessage);if(d)d.innerHTML=sInnerHtml}LC_OtherOnloads=(window.onload)?window.onload:new Function;window.onload=LC_InitializeClocks;