
	imagePath='images/calendar';

     function calendar(YD){
		 	this.Version="1.3.001";
			this.PJ="Click here to quickly and easily select date.";
			this.uN=0;
			this.wk=0;
			this.WB=0;
			this.hN=new Q(YD);
			this.lV=new Date();
			this.Ks=this.lV.getFullYear();
			this.bm=glbCalendars.length;
			this.UW=Array(43);
			this.aryMonths=Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
			this.aryDays=Array("S","M","T","W","T","F","S","S");
			this.FullMonthNames=['January','February','March','April','May','June','July','August','September','October','November','December'];
			this.FullDayNames=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
			this.As="Please select a future date";
			glbCalendars[glbCalendars.length]=this;
			this.af="caldiv_"+this.bm;
			this.TM=false;
			this.Ft=null;
			this.Ac=null;
			this.BZ=false;
			this.LX=false;
			this.HX=0;
			this.Mf=0;
			this.Bj={Zt:0,uh:0,nO:0,AU:0};
			this.JH={Zt:0,uh:0,nO:0,AU:0};
			this.Ax={Zt:0,uh:0,nO:0,AU:0};
			this.XS="";
			this.dI=false;
			var n=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);
			this.Ro=n?"title":"alt"; this.ad=Array(3);
			this.Jn=""; 
			this.pc=null;
			this.qM=null;
			this.vr=null; 
			this.rn=this.hN.pM("FIELD")?eval(this.hN.pM("FIELD")):null;
			this.pA=this.hN.pM("FORMAT")?this.hN.pM("FORMAT"):"0";
			this.ns=this.hN.pM("DELIMITER")?this.hN.pM("DELIMITER"):"/";
			this.RB=false; 
			switch(this.pA){
				case "1": 
					this.pC="DD/MM/YYYY";
					break;
				case "2": 
					this.pC="YYYY/M/D";
					break;
				default:
					
					this.pC="M/D/YYYY";
			} 
			this.PG=true;
			this.RU=false;
			this.AE=true;
			this.Xo=2000;
			this.vL=0;
			this.WR=null;
			this.CJ=null;
			this.kg=1;
			this.Ih=1;
			this.ax=false;
			this.tR=true;
			this.Xk=0;
			this.Lp="basic";
			this.Lj=0;
			if(this.hN.pM("ZEROS")) 
				this.XS+="ZEROS\n";
			if(this.hN.pM("MOUSEOVER")) 
				this.XS+="MOUSEOVER\n";
			if(this.hN.pM("SHOWDAYS")) 
				this.XS+="SHOWDAYS\n";
			if(this.hN.pM("DELAY")) 
				this.XS+="DELAY\n";
			if(this.hN.pM("BEGINONMONDAY")) 
				this.XS+="BEGINONMONDAY\n";
			if(this.hN.pM("ICONLEFT")) 
				this.XS+="ICONLEFT\n";
			if(this.hN.pM("ICONTOP")) 
				this.XS+="ICONTOP\n";
			if(this.hN.pM("DIR")) 
				this.XS+="DIR\n";
			if(this.hN.pM("MONTH")) 
				this.XS+="MONTH\n";
			if(this.hN.pM("SHADOW")) 
				this.XS+="SHADOW\n";
			if(this.hN.pM("CLOSE")) 
				this.XS+="CLOSE\n";
			if(this.hN.pM("YEAR")) 
				this.XS+="YEAR\n";
			if(this.hN.pM("MOVEMODE")) 
				this.XS+="MOVEMODE\n";
			if(this.hN.pM("INVALID")) 
				this.XS+="INVALID\n";   
			var B;
			if(this.Lp){
				if(this.Lp.indexOf("/")>0){
					B=this.Lp.split("/");
					this.rS=B[B.length-1];
				}
				else{
						this.rS=this.Lp?this.Lp:"basic";}
				}
			else{
				this.rS=this.Lp?this.Lp:"basic";
			}
			
			this.CZ=CZ;
			this.DI=DI;
			this.dt=dt;
			this.Tc=Tc;
			this.LT=LT;
			this.mP=mP;
			this.sV=sV;
			this.Zp=Zp;
			this.EQ=EQ;
			this.tO=tO;
			this.jd=jd;
			this.kf=kf;
			this.Mi=Mi;
			this.dL=dL;
			this.We=We;
			this.sS=sS;
			this.BW=BW;
			this.ZH=ZH;
			this.writeCalendar=writeCalendar;
			this.BI=BI;
			this.VX=VX;
			this.xR=xR;
			this.jf=jf;
			this.Um=Um;
			this.VJ=VJ;
			this.kJ=kJ;
			this.Ec=Ec;
			this.HE=HE;
			this.eC=eC;
			this.qh=qh;
			this.cX=cX;
			this.tA=tA;
			this.vv=vv;
			this.Dd=Dd;
			this.eA=eA;
			this.setField=setField;
			this.os=os;
			p=this;
			
			function __PUBLIC__(){}function setField(O){if(p.rn) p.rn.value=os(O);}function writeCalendar(){  var t; t=document.all?"onClick":"onMouseDown";var g=(document.all&&!document.getElementById)?"width:20;":"";var K=p.RU?"onMouseOver":t;var h;h=p.ax?"filter: progid:DXImageTransform.Microsoft.DropShadow(color=#777788,direction=135,strength=2);":"";var d=p.CJ?"top:"+p.CJ+";":"";d+=p.WR?"left:"+p.WR+";":"";d+=d.length>0?"position: absolute;":"";p.ZH(); document.write("<img src='"+imagePath+"/calendar.gif' border='0' align='top' style='"+d+"' "+K+"='glbCalendars["+p.bm+"].eA();glbCalendars["+p.bm+"].CZ(event);if (window.event)window.event.cancelBubble=true;' title='"+p.PJ+"'>");  document.write("<div id='"+p.af+"' ");document.write("onMouseOut='glbCalendars["+p.bm+"].Ec();' ");document.write("style='"+h+g+"position:absolute;display:none;' class='"+p.rS+"-cl-body'> "); document.write(p.VJ()); document.write("</div>"); if(p.Ih){document.write("<div id='"+p.af+"_year' ");document.write("onMouseOut='glbCalendars["+p.bm+"].Ec();' ");document.write("onMouseOver='glbCalendars["+p.bm+"].jd(this);' ");document.write("style='position:absolute;display:none;background-color:white;'> "); document.write(p.Um()); document.write("</div>");} if(p.kg){document.write("<div id='"+p.af+"_month' ");document.write("onMouseOut='glbCalendars["+p.bm+"].HE();' ");document.write("onMouseOver='glbCalendars["+p.bm+"].jd(this);' ");document.write("style='position:absolute;display:none;background-color:white;'> "); document.write(p.jf()); document.write("</div>");} document.write("<IFRAME src=\"javascript:false;\" style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px;COLOR: #FFFFFF;BACKGROUND-COLOR: #FFFFFF;' frameBorder='0' scrolling='no' id='"+p.af+"_ghost'></IFRAME>\n");document.write("<IFRAME src=\"javascript:false;\" style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px;COLOR: #FFFFFF;BACKGROUND-COLOR: #FFFFFF;' frameBorder='0' scrolling='no' id='"+p.af+"_ghost_mo'></IFRAME>\n");document.write("<IFRAME src=\"javascript:false;\" style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px;COLOR: #FFFFFF;BACKGROUND-COLOR: #FFFFFF;' frameBorder='0' scrolling='no' id='"+p.af+"_ghost_year'></IFRAME>\n");  if(this.XS){if(confirm("The following options are not available in DateClick Standard Edition:\n"+ this.XS+"\nTo obtain DateClick Professional or Developer, please "+ "click 'OK' to be redirected straight to our website.")){document.location.href="http://www.primorissoftware.com/purchase.asp";}}}function __DISPLAY__(){}function CZ(P){var G,F,J;var O;P=H(P);J=p.kJ(P);k();if(Zf) p.RB=true;if(document.getElementById){G=document.getElementById(p.af);if(p.RB) F=document.getElementById(p.af+"_ghost");}else if(document.all){G=document.all[p.af];if(p.RB) F=document.all[p.af+"_ghost"];}else G=document.layers[p.af];p.Ft=G;p.Ac=F;if(p.LX){if(p.RB){p.tA(F,G);F.style.display="block";}return false;}p.dL();clearInterval(p.pc);for(var r=0;r<glbCalendars.length;r++){if(glbCalendars[r]==p) glbCalendars[r].TM=true;else glbCalendars[r].TM=false;if(!glbCalendars[r].TM){glbCalendars[r].DI();}}if(G){G.style.zIndex=++bV;if(!p.HX){p.cX(G,J);}G.style.display="block";p.LX=true;p.Bj=w(G);if(p.RB){F.style.display="block";p.tA(F,G);}if(window.event){window.event.cancelBubble=true;window.event.returnValue=false;}}return false;}function mP(P){var G,v,M,F,J=p.kJ(P);if(p.BZ) return false;clearInterval(p.pc);if(document.getElementById){G=document.getElementById(p.af);v=document.getElementById(p.af+"_month");if(p.RB) F=document.getElementById(p.af+"_ghost_mo");}else if(document.all){G=document.all[p.af];v=document.all[p.af+"_month"];if(p.RB) F=document.all[p.af+"_ghost_mo"];}else{G=document.layers[p.af];v=document.layers[p.af+"_month"];}p.dt();if(G){v.style.display="block";v.style.zIndex=++bV;p.vv(G,v );p.JH=w(v);if(p.RB){p.tA(F,v );F.style.display="block";}}}function LT(P){var G,N,M,J=p.kJ(P);if(p.BZ) return false;clearInterval(p.pc);if(document.getElementById){G=document.getElementById(p.af);N=document.getElementById(p.af+"_year");if(p.RB) F=document.getElementById(p.af+"_ghost_year");}else if(document.all){G=document.all[p.af];N=document.all[p.af+"_year"];if(p.RB) F=document.all[p.af+"_ghost_year"];}else{G=document.layers[p.af];N=document.layers[p.af+"_year"];}p.Tc();if(G){N.style.display="block";p.Dd(G,N );N.style.zIndex=++bV;p.Ax=w(N);if(p.RB){p.tA(F,N );F.style.display="block";}}}function DI(){var G,F;if(!p.LX) return false;if(document.getElementById){G=document.getElementById(p.af).style;if(p.RB) F=document.getElementById(p.af+"_ghost").style;}else if(document.all){G=document.all[p.af].style;if(p.RB) F=document.all[p.af+"_ghost"].style;}else{G=document.layers[p.af];}if(G){G.display="none";if(p.RB) F.display="none";}if(p.Ih) p.dt();if(p.kg) p.Tc();p.LX=false;clearInterval(p.pc);}function Tc(){var v,F;if(document.getElementById){v=document.getElementById(p.af+"_month");if(v) v=v.style;if(p.RB) F=document.getElementById(p.af+"_ghost_mo").style;}else if(document.all){v=document.all[p.af+"_month"];if(v) v=v.style;if(p.RB) F=document.all[p.af+"_ghost_mo"].style;}else{v=document.layers[p.af+"_month"];}if(v){v.display="none";p.JH={Zt:0,uh:0,nO:0,AU:0};if(p.RB) F.display="none";}}function dt(){var N,F;if(document.getElementById){N=document.getElementById(p.af+"_year");if(N) N=N.style;if(p.RB) F=document.getElementById(p.af+"_ghost_year").style;}else if(document.all){N=document.all[p.af+"_year"];if(N) N=N.style;if(p.RB) F=document.all[p.af+"_ghost_year"].style;}else{N=document.layers[p.af+"_year"];}if(N){N.display="none";p.Ax={Zt:0,uh:0,nO:0,AU:0};if(p.RB) F.display="none";}}function __EVENTS__(){}function jd(argCell){clearInterval(p.pc);if(argCell.className==p.rS+"-cl-on-month") argCell.className=p.rS+"-cl-on-month-lit";else if(argCell.className==p.rS+"-cl-off-month") argCell.className=p.rS+"-cl-off-month-lit";else if(argCell.className==p.rS+"-cl-year") argCell.className=p.rS+"-cl-year-lit";}function kf(argCell){if(argCell.className==p.rS+"-cl-on-month-lit") argCell.className=p.rS+"-cl-on-month";else if(argCell.className==p.rS+"-cl-off-month-lit") argCell.className=p.rS+"-cl-off-month";else if(argCell.className==p.rS+"-cl-year-lit") argCell.className=p.rS+"-cl-year";}function sV(){p.lV.setMonth(++p.wk);ZH();Mi(p.af,VJ());}function EQ(){p.Ks+=10;Mi(p.af+"_year",Um());}function Zp(){p.lV.setMonth(--p.wk);ZH();Mi(p.af,VJ());}function tO(){p.Ks-=10;Mi(p.af+"_year",Um());}function BI(td){var R=new Date(td.getAttribute(p.Ro));if(p.Lj==1&&Date.parse(R.toLocaleString())<Date.parse(p.os(Date()))){alert(p.As);}else if(p.Lj==2&&Date.parse(R.toLocaleString())<=Date.parse(p.os(Date()))){alert(p.As);}if(p.rn) p.rn.value=p.os(R);if(p.tR) p.DI();p.Jn=p.rn.value;}function xR(intYear,ob){p.lV.setFullYear(intYear);ZH();Mi(p.af,VJ());p.TM=true;p.dt(); if(window.event) event.cancelBubble=true;else ob.stopPropagation();}function VX(intMonth,ob){p.lV.setMonth(intMonth);ZH();Mi(p.af,VJ());p.TM=true;p.Tc(); if(window.event) event.cancelBubble=true;else ob.stopPropagation();}function __INTERNAL__(){}function os(O){a=[ 'st','nd','rd','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','st','nd','rd','th','th','th','th','th','th','th','st' ];var W=p.pC;var s='DMYHdhmst'.split('' );var V=new Array();var Y=0;var L;var u=/\[(\d+)\]/;var q=new Date(O);var f=q.getDay();var C=q.getDate();var Z=q.getMonth();var I=q.getFullYear().toString();var l=q.getHours();var m=q.getMinutes();var Zs=q.getSeconds();var VL=new Object();VL[ 'D' ]=C;VL[ 'd' ]=C+a[ C-1 ];VL[ 'DD' ]=(C<10 )?'0'+C:C;VL[ 'DDD' ]=p.FullDayNames[ f ].substring(0,3 );VL[ 'DDDD' ]=p.FullDayNames[ f ];VL[ 'M' ]=Z+1;VL[ 'MM' ]=(Z+1<10 )?'0'+(Z+1 ):Z+1;VL[ 'MMM' ]=p.FullMonthNames[ Z ].substring(0,3 );VL[ 'MMMM' ]=p.FullMonthNames[ Z ];VL[ 'Y' ]=(I.charAt(2 )=='0' )?I.charAt(3 ):I.substring(2,4 );VL[ 'YY' ]=I.substring(2,4 );VL[ 'YYYY' ]=I; for(var r=0;r<s.length;r++){L=new RegExp('('+s[ r ]+'+)' );while(L.test(W ) ){V[ Y ]=RegExp.$1;W=W.replace(RegExp.$1,'['+Y+']' );Y++;}}while(u.test(W ) ){W=W.replace(u,VL[ V[ RegExp.$1 ] ] );}return W;}function dL(){p.Ft.onmousedown=p.We;if(isNaN(parseInt(p.Ft.style.left))) p.Ft.style.left="0px";if(isNaN(parseInt(p.Ft.style.top))) p.Ft.style.top="0px";p.Ft.Sr=new Function();p.Ft.QP=new Function();p.Ft.TK=new Function();}function We(Ga){Ga=H(Ga);var uh=parseInt(p.Ft.style.top);var Zt=parseInt(p.Ft.style.left);p.Tc();p.dt();p.Ft.Sr(Zt,uh);p.BZ=true;if(p.Xk){p.HX=Ga.clientX;p.Mf=Ga.clientY;p.dI=false;}document.onmousemove=p.sS;document.onmouseup=p.BW;return false;}function sS(Ga){Ga=H(Ga);var xn=Ga.clientY;var dR=Ga.clientX;var uh=parseInt(p.Ft.style.top);var Zt=parseInt(p.Ft.style.left);var Qv,vA;Qv=Zt+(dR-p.HX);vA=uh+(xn-p.Mf);if(p.Xk>0){if(!p.dI){p.Ft.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=60);";if(p.Ft.style.cursor) p.Ft.style.cursor="move";p.dI=true;}p.Ft.style["left"]=Qv+"px";p.Ft.style["top"]=vA+"px";p.HX=dR;p.Mf=xn;if(p.Ac) p.Ac.style.display="none";}p.Ft.TK(Qv,vA);return false;}function BW(){document.onmousemove=null;document.onmouseup=null;p.Ft.QP(parseInt(p.Ft.style["left"]),parseInt(p.Ft.style["top"]));if(p.Xk){p.Ft.style.filter="";if(p.Ft.style.cursor) p.Ft.style.cursor="arrow";p.Bj=w(p.Ft);if(p.Ac){p.tA(p.Ac,p.Ft);p.Ac.style.display="block";}if(p.Xk>1){p.HX=0;p.Mf=0;}}p.BZ=false;}function ZH(){var Ap,tc=0;var Sk,Hl;var sJ=p.lV;var r,QE=1;p.uN=sJ.getDate();p.wk=sJ.getMonth();p.WB=sJ.getFullYear();Ap=new Date(p.WB,p.wk,1);  tc-=Ap.getDay()>0?Ap.getDay():Ap.getDay()+7;for(r=0;r<43;r++){p.UW[r]=new Date(Ap.getFullYear(),Ap.getMonth(),++tc);}}function jf(){var innerHTML="";innerHTML+="<table cellspacing=0 cellpadding=0 border=0>";innerHTML+="<tr>";for(var r=0;r<12;r++){ if(r % 6==0) innerHTML+="</tr><tr>";innerHTML+="<td class='"+p.rS+"-cl-year' onMouseOver='glbCalendars["+p.bm+"].jd(this);' onMouseOut='glbCalendars["+p.bm+"].kf(this);' style='cursor: hand; cursor: pointer;' onClick='glbCalendars["+p.bm+"].VX("+r+",event);'>";innerHTML+=p.aryMonths[r];innerHTML+="</td>";}innerHTML+="</tr>";innerHTML+="</table>";return innerHTML;}function Um(){var innerHTML="";innerHTML+="<table cellspacing=0 cellpadding=0 border=0>";innerHTML+="<tr>";innerHTML+="<td class='"+p.rS+"-cl-year' onMouseOver='glbCalendars["+p.bm+"].jd(this);' onMouseOut='glbCalendars["+p.bm+"].kf(this);' style='cursor: hand; cursor: pointer;' onMouseDown='glbCalendars["+p.bm+"].EQ();' align='center' valign='center'>";innerHTML+="<img src='"+imagePath+"/up.gif' border='0'>";innerHTML+="</td>";innerHTML+="</tr>";for(var r=parseInt(p.Ks);r>parseInt(p.Ks)-10;r--){innerHTML+="<tr>";innerHTML+="<td class='"+p.rS+"-cl-year' onMouseOver='glbCalendars["+p.bm+"].jd(this);' onMouseOut='glbCalendars["+p.bm+"].kf(this);' style='cursor: hand; cursor: pointer;' onClick='glbCalendars["+p.bm+"].xR("+r+",event);'>";innerHTML+=r;innerHTML+="</td>";innerHTML+="</tr>";}innerHTML+="<tr>";innerHTML+="<td class='"+p.rS+"-cl-year' onMouseOver='glbCalendars["+p.bm+"].jd(this);' onMouseOut='glbCalendars["+p.bm+"].kf(this);' style='cursor: hand; cursor: pointer;' onMouseDown='glbCalendars["+p.bm+"].tO();' align='center' valign='center'>";innerHTML+="<img src='"+imagePath+"/down.gif' border='0'>";innerHTML+="</td>";innerHTML+="</tr>";innerHTML+="</table>";return innerHTML;}function VJ(){var innerHTML="";var B,TN,EW="none",rk="none";var Wj; innerHTML+="<table cellspacing=0 cellpadding=0 border=0 id='cal'>"; innerHTML+="<tr class='"+p.Lp+"-header-row'>"; innerHTML+="<td align='left' class='"+p.rS+"-cl-header' onMouseOver='glbCalendars["+p.bm+"].jd(this);'>"; innerHTML+="<img src='"+imagePath+"/prev.gif' border='0' onClick='window.event.returnValue=false;return false;' onMouseDown='glbCalendars["+p.bm+"].Zp();return false;' style='cursor:hand;cursor:pointer;'>"; innerHTML+="</td>";innerHTML+="<td align='center' class='"+p.rS+"-cl-header' onMouseOver='glbCalendars["+p.bm+"].jd(this);'>"; if(p.kg==2) EW="onMouseOver";else if(p.kg==1) EW="onClick"; innerHTML+="<span class='"+p.rS+"-cl-header' "+EW+"='return glbCalendars["+p.bm+"].mP(event);' "+(EW=="none"?"style='cursor:default;'":"style='cursor:hand;cursor:pointer;text-decoration:underline;'")+">";innerHTML+=p.aryMonths[p.wk]; innerHTML+="</span>&nbsp;"; if(p.Ih==2) rk="onMouseOver";else if(p.Ih==1) rk="onClick"; innerHTML+="<span class='"+p.rS+"-cl-header' "+rk+"='return glbCalendars["+p.bm+"].LT(event);' "+(rk=="none"?"style='cursor:default;'":"style='cursor:hand;cursor:pointer;text-decoration:underline;'")+">";innerHTML+=p.WB;innerHTML+="</span>"; innerHTML+="</td>"; innerHTML+="<td align='right' class='"+p.rS+"-cl-header' onMouseOver='glbCalendars["+p.bm+"].jd(this);'>";innerHTML+="<img src='"+imagePath+"/next.gif' border='0' onClick='window.event.returnValue=false;return false;' onMouseDown='glbCalendars["+p.bm+"].sV();return false;' style='cursor:hand;cursor:pointer;'>";innerHTML+="</td>"; innerHTML+="</tr>"; innerHTML+="<tr>"; innerHTML+="<td colspan=4 style='background-color:white;'>"; innerHTML+="<table cellspacing=0 cellpadding=0 border=0>"; if(p.AE){innerHTML+="<tr class='"+p.rS+"-cl-days'>";for(var Zt=0;Zt<7;Zt++){innerHTML+="<td class='"+p.rS+"-cl-day' onMouseOver='glbCalendars["+p.bm+"].jd(this);' onMouseOut='glbCalendars["+p.bm+"].kf(this);'>";innerHTML+=p.aryDays[p.vL+Zt];innerHTML+="</td>";}innerHTML+="</tr>";} for(var r=1;r<42;){ innerHTML+="<tr>"; for(var QE=0;QE<7;++QE,r++){Wj=os(p.UW[r-1+p.vL]);TN=p.UW[r-1+p.vL].toGMTString(); B=p.UW[r-1+p.vL].getMonth()==p.wk?"cl-on-month":"cl-off-month";if(p.Lj==1&&Date.parse(p.UW[r-1+p.vL])<Date.parse(p.os(Date()))){B=" "+p.rS+"-old";}else if(p.Lj==2&&Date.parse(p.UW[r-1+p.vL])<=Date.parse(p.os(Date()))){B=" "+p.rS+"-old";}else if(new Date(p.pA=="1"?A(p.rn.value):p.rn.value).toGMTString()==TN){B=" "+p.rS+"-tgt";}  innerHTML+="<td class='"+p.rS+"-"+B+"' onMouseOver='glbCalendars["+p.bm+"].jd(this);' onMouseOut='glbCalendars["+p.bm+"].kf(this);' title='"+Wj+"' style='cursor: hand; cursor: pointer;' "+p.Ro+"='"+TN+"' onClick='glbCalendars["+p.bm+"].BI(this);'>"; innerHTML+=p.UW[r-1+p.vL].getDate(); innerHTML+="</td>";} innerHTML+="</tr>";}  innerHTML+="</table>"; innerHTML+="</td>"; innerHTML+="</tr>"; innerHTML+="</table>";return(innerHTML);}function Mi(layerID,txt){if(document.getElementById){document.getElementById(layerID ).innerHTML=txt;}else if(document.all){document.all[layerID].innerHTML=txt;}else if(document.layers){with(document.layers[layerID].document){open();write(txt );close();}}return null;}function kJ(Ga){var ip=0;var gt=0;if(!Ga) Ga=window.event;if(Ga){if(Ga.pageX||Ga.pageY){ip=Ga.pageX;gt=Ga.pageY;}else if(Ga.clientX||Ga.clientY){ip=Ga.clientX+document.body.scrollLeft;gt=Ga.clientY+document.body.scrollTop;}}var vq={Zt:ip,uh:gt};return vq;}function Ec(){if(p.pc){clearInterval(p.pc);p.pc=null;}p.pc=setInterval("glbCalendars["+p.bm+"].DI()",p.Xo );}function HE(){if(p.vr){clearInterval(p.vr);p.vr=null;}p.vr=setInterval("glbCalendars["+p.bm+"].Tc()",4000 );p.Ec();}function eC(){if(p.qM){clearInterval(p.qM);p.qM=null;}p.qM=setInterval("glbCalendars["+p.bm+"].dt()",4000 );p.Ec();}function qh(int_num){var vq;if(int_num<=9){vq=p.PG?"0"+int_num:int_num;}else vq=int_num;return vq;}function cX(G,mouse_xy){var Vh=w(G );var pj=c();if(Vh["nO"]+mouse_xy["Zt"]>pj["Zt"]) G.style.left=mouse_xy["Zt"]-Vh["nO"];else G.style.left=mouse_xy["Zt"];if(Vh["AU"]+mouse_xy["uh"]>pj["uh"]) G.style.top=mouse_xy["uh"]-Vh["AU"];else G.style.top=mouse_xy["uh"];}function tA(ghost,G){var Vh=w(G );if(Vh.Zt>0){ghost.style.left=Vh.Zt;ghost.style.top=Vh.uh;ghost.style.width=Vh.nO;ghost.style.height=Vh.AU;ghost.style.zIndex=0;ghost.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';}}function vv(G,mo){var FP=w(G );var Vh=w(mo );var pj=c();var sm=FP["nO"] / 2;var qF=Vh["nO"] / 2;var eM=FP["Zt"]-(qF-sm);var sY=FP["AU"]+FP["uh"];mo.style.left=eM;if(sY+Vh["AU"]>pj["uh"]) mo.style.top=sY-Vh["AU"];else mo.style.top=sY;}function Dd(G,yr){var FP=w(G );var Nh=w(yr );var pj=c();if(Nh["nO"]+FP["Zt"]+FP["nO"]>pj["Zt"]) yr.style.left=pj["Zt"]-Nh["nO"];else yr.style.left=FP["Zt"]+FP["nO"];if(Nh["AU"]+FP["uh"]>pj["uh"]) yr.style.top=FP["uh"];else yr.style.top=FP["uh"];}function eA(){O=new Date(p.pA=="1"?A(p.rn.value):p.rn.value);if(isNaN(O)) p.lV=new Date();else p.lV=O;ZH();Mi(p.af,VJ());}var p;}function E(){}     function Q(YD){this.QY=new Array();this.Vr=new Array();this.Qp=Qp;this.pM=pM;Qp(YD,this );function Qp(argStr,argConfig){var r,wS;var bv,jE;if(argStr) wS=argStr.split(";");else return;var bv,pe,NZ;for(r=0;r<wS.length;r++){NZ=wS[r].indexOf(":");if(NZ>0){bv=wS[r].substring(0,NZ).toUpperCase();jE=wS[r].substring(NZ+1,wS[r].length);if(jE.toLowerCase()=="true") jE=true;else if(jE.toLowerCase()=="false") jE=false;argConfig.Vr[r]=bv;argConfig.QY[r]=jE;}}}function pM(argKey){var r;for(r=0;r<this.Vr.length;r++){if(this.Vr[r]==argKey){return this.QY[r];}}return null;}}function U(P){var ce={Zt:0,uh:0};if(window.event){ce.Zt=event.clientX+document.body.scrollLeft;ce.uh=event.clientY+document.body.scrollTop;}else if(P){ce.Zt=P.pageX;ce.uh=P.pageY;}for(var r=0;r<glbCalendars.length;r++){if(!b(ce,glbCalendars[r].Bj)&&!b(ce,glbCalendars[r].JH)&&!b(ce,glbCalendars[r].Ax)){glbCalendars[r].DI();}glbCalendars[r].TM=false;}}function b(TS,Bj){if((TS.Zt>Bj.Zt&&TS.Zt<Bj.Zt+Bj.nO)&&(TS.uh>Bj.uh&&TS.uh<Bj.uh+Bj.AU)) return true;return false;}function w(PE){var Et={Zt:0,uh:0,nO:0,AU:0};if(PE!=null){Et.AU=PE.offsetHeight;Et.nO=PE.offsetWidth;while(PE){Et.Zt+=PE.offsetLeft;Et.uh+=PE.offsetTop;PE=PE.offsetParent;}return(Et);}}function c(){var Et={Zt:0,uh:0};Et.Zt+=document.body.clientWidth;Et.uh+=document.body.clientHeight;return(Et);} var KF="";if(typeof(document.media)=='string'&&document.getElementById&&document.all) KF="ie6";else if(document.getElementById&&document.all) KF="ie5";else if(document.getElementById&&!document.all) KF="ns6";else if(document.all) KF="ie4";else if(document.layers) KF="ns4";else KF="other";var bV=9999;switch(KF){case "ie5":document.attachEvent('onclick',U );break;case "ns6":document.addEventListener('click',U,false );break;case "ns4":break;}function H(Ga){if(typeof Ga=='undefined') Ga=window.event;if(Ga){if(typeof Ga.layerX=='undefined') Ga.layerX=Ga.offsetX;if(typeof Ga.layerY=='undefined') Ga.layerY=Ga.offsetY;}return Ga;}function k(){if(KF=="ie6"&&!window.opera){if(!document.getElementsByTagName("select")) Zf=false;else Zf=true;}else Zf=false;}function A(xb){var S=xb,D;S=S.replace(/(\d+).(\d+).(\d+)/,'$3/$2/$1');S=S.replace(/^(\d\d\/)/,'20$1');D=new Date(S);return D;}      var glbCalendars=Array();var Zf=Array();