<!--
var oCountry,oCity,oSport,oDate,oDatefrom,oDatefromIcon,oDateto,oDatetoIcon,oSearchButton;var oCalDatefrom,oCalDateto;function search_location_init(sQ)
{oCountry=document.getElementById('search_country');oCity=document.getElementById('search_city');oSport=document.getElementById('search_sport');oDate=document.getElementById('search_date');oDatefrom=document.getElementById('search_datefrom');oDatefromIcon=document.getElementById('sbl_calicon_from');oDateto=document.getElementById('search_dateto');oDatetoIcon=document.getElementById('sbl_calicon_to');oSearchButton=document.getElementById('search_location_button');oCalDatefrom=new CalendarControl(oDatefrom,'oCalDatefrom');oCalDateto=new CalendarControl(oDateto,'oCalDateto');if(!sQ)sQ="";var aQ=sQ.split(",");oCountry.onchange=function()
{search_location_handle_country_change();}
oDate.onchange=function()
{if(oCalDatefrom_cmp)oCalDatefrom_cmp.HideDatePicker();if(oCalDateto_cmp)oCalDateto_cmp.HideDatePicker();oCalDatefrom.HideDatePicker();oCalDateto.HideDatePicker();search_location_handle_date_change();}
oDatefrom.onfocus=oDatefromIcon.onclick=function()
{if(oCalDatefrom.layer.style.display=='block')
{oCalDatefrom.HideDatePicker();}
else
{oCalDateto.HideDatePicker();search_location_handle_datefrom_focus();}}
oDateto.onfocus=oDatetoIcon.onclick=function()
{if(oCalDateto.layer.style.display=='block')
{oCalDateto.HideDatePicker();}
else
{oCalDatefrom.HideDatePicker();search_location_handle_dateto_focus();}}
oSearchButton.onclick=function()
{search_location_query();}}
function search_location_handle_datefrom_blur()
{}
function search_location_handle_datefrom_focus()
{var sDatefrom=oDatefrom.value;if(isDateString(sDatefrom,"/"))
{oCalDatefrom.calendar(sDatefrom);oCalDatefrom.ShowDatePicker();}
else
{oCalDatefrom.calendar(XMLURLResponse(oDatefrom,'http://'+wURL+'xml/date/?op=today&format=d/m/Y'));search_location_handle_datefrom_focus();}
search_location_setDateCustomized();}
function search_location_handle_dateto_focus()
{var sDateFrom=oDatefrom.value;if(isDateString(sDateFrom,"/"))
{if(sDateFrom==gsToday)
{oCalDateto.calendar(sDateFrom,1);}
else
{oCalDateto.calendar(sDateFrom);}}
else
{oCalDateto.calendar(XMLURLResponse(oDateFrom,'http://'+wURL+'xml/date/?op=today&format=d/m/Y'));oCalDateto.calendar(sDateFrom,1);}
oCalDateto.ShowDatePicker();search_location_setDateCustomized();}
function search_location_handle_country_change()
{var iCountryid=oCountry[oCountry.selectedIndex].value;if(iCountryid!="0")
{XMLURLSelectBox(oCity,'http://'+wURL+'xml/?type=cities&countryid='+iCountryid,oUIMessage_1047,'0');}
else
{XMLURLSelectBox(oCity,'http://'+wURL+'xml/?type=cities&countryid='+iCountryid,oUIMessage_1047,'0');}}
function search_location_handle_date_change()
{if(oDate)
{if(oDate[oDate.selectedIndex].value!='CUSTOM')
search_location_set_daterange(oDate[oDate.selectedIndex].value);}}
function search_location_set_daterange(iDays)
{XMLURLResponse(oDatefrom,'http://'+wURL+'xml/date/?op=today&format=d/m/Y');XMLURLResponse(oDateto,'http://'+wURL+'xml/date/?op=next&days='+iDays+'&format=d/m/Y');}
function search_location_setDateCustomized()
{oDate.selectedIndex=oDate.length-1;}
function search_location_query()
{var sQ='';if(oCountry[oCountry.selectedIndex].value=="0")
{ShowError(oUIMessage_1003,'');oCountry.focus();return;}
if(!isDateString(oDatefrom.value,"/"))
{ShowError(oUIMessage_1002,oUIMessage_1000);oDatefrom.focus();return;}
if(!isDateString(oDateto.value,"/"))
{ShowError(oUIMessage_1002,oUIMessage_1000);oDateto.focus();return;}
if(isPastDate(oDatefrom.value,"/"))
{ShowError(oUIMessage_1001,'');oDatefrom.focus();return;}
if(!isValidDateRange(oDatefrom.value,oDateto.value,"/"))
{ShowError(oUIMessage_1004,oUIMessage_1044);oDateto.focus();return;}
sQ+="lq,";sQ+=oCountry[oCountry.selectedIndex].value+",";sQ+=oCity[oCity.selectedIndex].value+",";sQ+="1023,";sQ+=oDate[oDate.selectedIndex].value;if(oDate[oDate.selectedIndex].value=="CUSTOM")
{sQ+=",";sQ+=oDatefrom.value+",";sQ+=oDateto.value;}
sQ+="&cn=1";sQ+="&t="+oSport[oSport.selectedIndex].value;document.location.href="http://"+wURL+"events/?q="+sQ;}
function search_set_query(sQ)
{}
var oSport_cmp,oDate_cmp,oDatefrom_cmp,oDatefromIcon_cmp,oDateto_cmp,oDatetoIcon_cmp,oSearchButton_cmp;var oCalDatefrom_cmp,oCalDateto_cmp;var oAutoSuggestTextbox,oTextbox;function search_cmp_init(sQ)
{oSport_cmp=document.getElementById('search_cmp_sport');oDate_cmp=document.getElementById('search_cmp_date');oDatefrom_cmp=document.getElementById('search_cmp_datefrom');oDatefromIcon_cmp=document.getElementById('cmp_calicon_from');oDateto_cmp=document.getElementById('search_cmp_dateto');oDatetoIcon_cmp=document.getElementById('cmp_calicon_to');oSearchButton_cmp=document.getElementById('search_cmp_button');oAutoSuggestTextbox=document.getElementById('search_cmp_name');oTextbox=new AutoSuggestControl(oAutoSuggestTextbox,new SuggestionProvider());oSport_cmp.onchange=function()
{handel_sport_change();}
oCalDatefrom_cmp=new CalendarControl(oDatefrom_cmp,'oCalDatefrom_cmp');oCalDateto_cmp=new CalendarControl(oDateto_cmp,'oCalDateto_cmp');oDate_cmp.onchange=function()
{oCalDatefrom_cmp.HideDatePicker();oCalDateto_cmp.HideDatePicker();search_cmp_handle_date_change();}
oDatefrom_cmp.onfocus=oDatefromIcon_cmp.onclick=function()
{if(oCalDatefrom_cmp.layer.style.display=='block')
{oCalDatefrom_cmp.HideDatePicker();}
else
{oCalDateto_cmp.HideDatePicker();search_cmp_handle_datefrom_focus();}}
oDateto_cmp.onfocus=oDatetoIcon_cmp.onclick=function()
{if(oCalDateto_cmp.layer.style.display=='block')
{oCalDateto_cmp.HideDatePicker();}
else
{oCalDatefrom_cmp.HideDatePicker();search_cmp_handle_dateto_focus();}}
oSearchButton_cmp.onclick=function()
{search_cmp_query();}}
function handel_sport_change()
{oTextbox.id="";oAutoSuggestTextbox.value="";}
function search_cmp_handle_datefrom_focus()
{var sDatefrom=oDatefrom_cmp.value;if(isDateString(sDatefrom,"/"))
{oCalDatefrom_cmp.calendar(sDatefrom);oCalDatefrom_cmp.ShowDatePicker();}
else
{oCalDatefrom_cmp.calendar(XMLURLResponse(oDatefrom_cmp,'http://'+wURL+'xml/date/?op=today&format=d/m/Y'));search_cmp_handle_datefrom_focus();}
search_cmp_setDateCustomized();}
function search_cmp_handle_dateto_focus()
{var sDateFrom_cmp=oDatefrom_cmp.value;if(isDateString(sDateFrom_cmp,"/"))
{if(sDateFrom_cmp==gsToday)
{oCalDateto_cmp.calendar(sDateFrom_cmp,1);}
else
{oCalDateto_cmp.calendar(sDateFrom_cmp);}}
else
{oCalDateto_cmp.calendar(XMLURLResponse(oDateFrom_cmp,'http://'+wURL+'xml/date/?op=today&format=d/m/Y'));oCalDateto_cmp.calendar(sDateFrom_cmp,1);}
oCalDateto_cmp.ShowDatePicker();search_cmp_setDateCustomized();}
function search_cmp_handle_date_change()
{if(oDate_cmp)
{if(oDate_cmp[oDate_cmp.selectedIndex].value!='CUSTOM')
search_cmp_set_daterange(oDate_cmp[oDate_cmp.selectedIndex].value);}}
function search_cmp_set_daterange(iDays)
{if(iDays)
{XMLURLResponse(oDatefrom_cmp,'http://'+wURL+'xml/date/?op=today&format=d/m/Y');XMLURLResponse(oDateto_cmp,'http://'+wURL+'xml/date/?op=next&days='+iDays+'&format=d/m/Y');}}
function search_cmp_setDateCustomized()
{oDate_cmp.selectedIndex=oDate_cmp.length-1;}
function search_cmp_query()
{var sQ='';if(!oTextbox.id)
{if(Trim(oTextbox.textbox.value)=="")
{if(oSport_cmp[oSport_cmp.selectedIndex].value=='0')
{ShowError(oUIMessage_1045,'');return;}}}
if(!isDateString(oDatefrom_cmp.value,"/"))
{ShowError(oUIMessage_1002,oUIMessage_1000);oDatefrom_cmp.focus();return;}
if(!isDateString(oDateto_cmp.value,"/"))
{ShowError(oUIMessage_1002,oUIMessage_1000);oDateto_cmp.focus();return;}
if(isPastDate(oDatefrom_cmp.value,"/"))
{ShowError(oUIMessage_1001,'');oDatefrom_cmp.focus();return;}
if(!isValidDateRange(oDatefrom_cmp.value,oDateto_cmp.value,"/"))
{ShowError(oUIMessage_1004,oUIMessage_1045);oDateto_cmp.focus();return;}
sQ+="cq,";sQ+=oTextbox.id+",";sQ+="1023,";sQ+=oDate_cmp[oDate_cmp.selectedIndex].value+",";if(oDate_cmp[oDate_cmp.selectedIndex].value=="CUSTOM")
{sQ+=oDatefrom_cmp.value+",";sQ+=oDateto_cmp.value+",";}
else
{sQ+=",,";}
sQ+=oTextbox.textbox.value;sQ+="&cn=1";sQ+="&t="+oSport_cmp[oSport_cmp.selectedIndex].value;if(oTextbox.id==null)
{document.location.href="http://"+wURL+"competitors/?q="+sQ;}
else
{document.location.href="http://"+wURL+"events/?q="+sQ;}}
function search_cmp_set_query(sQ)
{}

/* AutoSuggest */
function AutoSuggestControl(oTextbox,oProvider){this.cur=-1;this.layer=null;this.provider=oProvider;this.textbox=oTextbox;this.id=null;this.previd=null;this.timeoutId=null;this.userText=oTextbox.value;this.fulltext="";this.aFloatingObjects=new Array;this.init();}
AutoSuggestControl.prototype.autosuggest=function(aSuggestions,bTypeAhead){this.cur=-1;if(aSuggestions.length>0){if(bTypeAhead)
{aValues=aSuggestions[0].split("-id-");sId=aValues[0];sText=aValues[1];this.fulltext=aSuggestions[0];this.typeAhead(sText);}
this.showSuggestions(aSuggestions);}else{this.hideSuggestions();}};AutoSuggestControl.prototype.createDropDown=function(){this.layer=document.createElement("div");this.layer.className="suggestions";this.layer.style.visibility="hidden";this.layer.style.width=this.textbox.offsetWidth;document.body.appendChild(this.layer);var oThis=this;this.layer.onmousedown=this.layer.onmouseup=this.layer.onmouseover=function(oEvent){oEvent=oEvent||window.event;oTarget=oEvent.target||oEvent.srcElement;if(oEvent.type=="mousedown")
{if(oTarget.firstChild.nodeValue)
{oThis.textbox.value=oTarget.firstChild.nodeValue;oThis.id=oTarget.id;oThis.hideSuggestions();}}else if(oEvent.type=="mouseover"){oThis.highlightSuggestion(oTarget);}else{oThis.textbox.focus();}};};AutoSuggestControl.prototype.getLeft=function(){var oNode=this.textbox;var iLeft=0;while(oNode.tagName!="BODY"){iLeft+=oNode.offsetLeft;oNode=oNode.offsetParent;}
return iLeft;};AutoSuggestControl.prototype.getTop=function(){var oNode=this.textbox;var iTop=0;while(oNode.tagName!="BODY"){iTop+=oNode.offsetTop;oNode=oNode.offsetParent;}
return iTop;};AutoSuggestControl.prototype.goToSuggestion=function(iDiff){var cSuggestionNodes=this.layer.childNodes;if(cSuggestionNodes.length>0){var oNode=null;if(iDiff>0){if(this.cur<cSuggestionNodes.length-1){oNode=cSuggestionNodes[++this.cur];}}else{if(this.cur>0){oNode=cSuggestionNodes[--this.cur];}}
if(oNode){this.highlightSuggestion(oNode);this.textbox.value=oNode.firstChild.nodeValue;this.id=oNode.id;}}};AutoSuggestControl.prototype.handleKeyDown=function(oEvent){switch(oEvent.keyCode){case 38:this.goToSuggestion(-1);break;case 40:this.goToSuggestion(1);break;case 27:this.textbox.value=this.userText;this.id=this.previd;this.selectRange(this.userText.length,0);case 13:this.hideSuggestions();oEvent.returnValue=false;if(oEvent.preventDefault){oEvent.preventDefault();}
break;}};AutoSuggestControl.prototype.handleKeyUp=function(oEvent){var iKeyCode=oEvent.keyCode;var oThis=this;this.userText=this.textbox.value;this.previd=this.id;clearTimeout(this.timeoutId);if(iKeyCode==8||iKeyCode==46){this.id=null;this.timeoutId=setTimeout(function(){oThis.provider.requestSuggestions(oThis,false);},250);}
else if(iKeyCode==13||(iKeyCode>=33&&iKeyCode<46)){}
else{this.id=null;this.timeoutId=setTimeout(function(){oThis.provider.requestSuggestions(oThis,false);},250);}};AutoSuggestControl.prototype.hideSuggestions=function(){this.layer.style.visibility="hidden";this.showObjects();};AutoSuggestControl.prototype.highlightSuggestion=function(oSuggestionNode){for(var i=0;i<this.layer.childNodes.length;i++){var oNode=this.layer.childNodes[i];if(oNode==oSuggestionNode){oNode.className="current"}else if(oNode.className=="current"){oNode.className="";}}};AutoSuggestControl.prototype.init=function(){var oThis=this;this.textbox.onkeyup=function(oEvent){if(!oEvent){oEvent=window.event;}
oThis.handleKeyUp(oEvent);};this.textbox.onkeydown=function(oEvent){if(!oEvent){oEvent=window.event;}
oThis.handleKeyDown(oEvent);};this.textbox.onblur=function(){oThis.hideSuggestions();};this.createDropDown();};AutoSuggestControl.prototype.selectRange=function(iStart,iEnd){if(this.textbox.createTextRange){var oRange=this.textbox.createTextRange();oRange.moveStart("character",iStart);oRange.moveEnd("character",iEnd-this.textbox.value.length);oRange.select();}else if(this.textbox.setSelectionRange){this.textbox.setSelectionRange(iStart,iEnd);}
this.textbox.focus();};AutoSuggestControl.prototype.showSuggestions=function(aSuggestions){var oDiv=null;this.layer.innerHTML="";this.hideObjects();for(var i=0;i<aSuggestions.length;i++)
{oDiv=document.createElement("div");aValues=aSuggestions[i].split("-id-");iId=aValues[0];sText=aValues[1];oDiv.id=iId;oDiv.appendChild(document.createTextNode(sText));this.layer.appendChild(oDiv);}
this.layer.style.left=this.getLeft()+"px";this.layer.style.top=(this.getTop()+this.textbox.offsetHeight)+"px";this.layer.style.visibility="visible";};AutoSuggestControl.prototype.typeAhead=function(sSuggestion){if(this.textbox.createTextRange||this.textbox.setSelectionRange){var iLen=this.textbox.value.length;this.textbox.value=sSuggestion;this.selectRange(iLen,sSuggestion.length);}};AutoSuggestControl.prototype.hideObjects=function()
{var aObjs=this.aFloatingObjects;for(var i=0;i<aObjs.length;i++)
{aObjs[i].style.visibility="hidden";}}
AutoSuggestControl.prototype.showObjects=function()
{var aObjs=this.aFloatingObjects;for(var i=0;i<aObjs.length;i++)
{aObjs[i].style.visibility="visible";}}
function SuggestionProvider(){this.http=zXmlHttp.createRequest();}
SuggestionProvider.prototype.requestSuggestions=function(oAutoSuggestControl,bTypeAhead){var oHttp=this.http;if(oHttp.readyState!=0){oHttp.abort();}
var sporttypeid=oSport_cmp[oSport_cmp.selectedIndex].value;var oData={requesting:"StatesAndProvinces",text:oAutoSuggestControl.userText,sporttypeid:1023,limit:5};oHttp.open("post","http://"+wURL+"xml/asc/?cn=1",true);oHttp.onreadystatechange=function(){if(oHttp.readyState==4){var aSuggestions=JSON.parse(oHttp.responseText);if(aSuggestions)
oAutoSuggestControl.autosuggest(aSuggestions,bTypeAhead);}};oHttp.send(JSON.stringify(oData));};

/* Calendar */
var iMaxPreviousDate=new Array('','');function CalendarControl(oTextbox,sHandlerName)
{this.handlername=sHandlerName;this.layer=null;this.textbox=oTextbox;this.aFloatingObjects=new Array;this.init();}
CalendarControl.prototype.init=function()
{var oThis=this;this.textbox.onfocus=function(oEvent)
{if(oEvent)
{oEvent=window.event;}
oThis.handleFocus(oEvent);}
this.textbox.onblur=function(oEvent)
{if(oEvent)
{oEvent=window.event;}
oThis.handleBlur(oEvent);}
oThis.createDatePicker();}
CalendarControl.prototype.createDatePicker=function()
{this.layer=document.createElement("div");this.layer.style.display="none";this.layer.style.width=this.textbox.offsetWidth+50;document.body.appendChild(this.layer);return;};CalendarControl.prototype.getLeft=function()
{var oNode=this.textbox;var iLeft=0;while(oNode.tagName!="BODY")
{iLeft+=oNode.offsetLeft;oNode=oNode.offsetParent;}
return iLeft;}
CalendarControl.prototype.getTop=function()
{var oNode=this.textbox;var iTop=0;while(oNode.tagName!="BODY")
{iTop+=oNode.offsetTop;oNode=oNode.offsetParent;}
return iTop;}
CalendarControl.prototype.ShowDatePicker=function()
{var oDiv=null;var oThis=this;this.hideObjects();this.layer.style.border="0px;";this.layer.className='calendar';this.layer.style.left=this.getLeft()+"px";this.layer.style.top=this.getTop()+22+"px";this.layer.style.display="block";}
CalendarControl.prototype.HideDatePicker=function()
{this.layer.style.display="none";this.showObjects();}
CalendarControl.prototype.hideObjects=function()
{var aObjs=this.aFloatingObjects;for(var i=0;i<aObjs.length;i++)
{aObjs[i].style.visibility="hidden";}}
CalendarControl.prototype.showObjects=function()
{var aObjs=this.aFloatingObjects;for(var i=0;i<aObjs.length;i++)
{aObjs[i].style.visibility="visible";}}
CalendarControl.prototype.handleFocus=function(oEvent)
{var oThis=this;oThis.getLeft();oThis.getTop();oThis.ShowDatePicker();}
CalendarControl.prototype.handleBlur=function(oEvent)
{var oThis=this;}
CalendarControl.prototype.pick=function(dd,mm,yyyy)
{var oThis=this;oThis.textbox.value=dd+"/"+mm+"/"+yyyy;oThis.HideDatePicker();}
CalendarControl.prototype.calendar=function(sDate)
{var arrDate=sDate.split("/");var month=arrDate[1];var year=arrDate[2];var sCurrentDate=new Date();var iMaxPreviousMonth=eval(iMaxPreviousDate[0]);var iMaxPreviousYear=eval(iMaxPreviousDate[1]);if(!iMaxPreviousMonth)iMaxPreviousMonth=sCurrentDate.getMonth()+1;if(!iMaxPreviousYear)iMaxPreviousYear=sCurrentDate.getFullYear();var iMonth=eval(month);var iYear=Math.max(eval(year),iMaxPreviousYear);if(iMonth<=iMaxPreviousMonth&&iYear<=iMaxPreviousYear)
{iMonth=iMaxPreviousMonth;iYear=iMaxPreviousYear;pMonth=iMonth;pYear=iYear;}
var sDate=new Date(iYear,iMonth-1,1);var iFirstDay=sDate.getDay();var i,j;var iDayInMonth;var sMonthName;switch(iMonth)
{case 1:iDayInMonth=31;sMonthName=oUIMessage_1006;break;case 2:(year%4)?iDayInMonth=28:iDayInMonth=29;sMonthName=oUIMessage_1007;break;case 3:iDayInMonth=31;sMonthName=oUIMessage_1008;break;case 4:iDayInMonth=30;sMonthName=oUIMessage_1009;break;case 5:iDayInMonth=31;sMonthName=oUIMessage_1010;break;case 6:iDayInMonth=30;sMonthName=oUIMessage_1011;break;case 7:iDayInMonth=31;sMonthName=oUIMessage_1012;break;case 8:iDayInMonth=31;sMonthName=oUIMessage_1013;break;case 9:iDayInMonth=30;sMonthName=oUIMessage_1014;break;case 10:iDayInMonth=31;sMonthName=oUIMessage_1015;break;case 11:iDayInMonth=30;sMonthName=oUIMessage_1016;break;case 12:iDayInMonth=31;sMonthName=oUIMessage_1017;break;}
var nMonth,nYear,pMonth,pYear;if(iMonth==12)
{nMonth=1;nYear=iYear+1;}
else
{nMonth=iMonth+1;nYear=iYear;}
if(iMonth==1)
{pMonth=12;pYear=Math.max(iYear-1,iMaxPreviousYear);if(iYear==iMaxPreviousYear)pMonth=1;}
else
{pMonth=Math.max(iMonth-1,1);pYear=iYear;}
var sCalendarHTML;sCalendarHTML="<table  border='0' cellpadding='0' cellspacing='0' class='calendar'>";sCalendarHTML+="<tr>";sCalendarHTML+="<td colspan='7'>";sCalendarHTML+="<table width=100% border='0' cellpadding=0 cellspacing=0 class='calendar_navigator'>";sCalendarHTML+="<tr>";sCalendarHTML+="<td align=left width=35>";sCalendarHTML+="<input type=button title='"+oUIMessage_1029+"' value='&#139;' style='width: 15px;' onclick="+this.handlername+".calendar('01/"+pMonth+"/"+pYear+"') >";sCalendarHTML+="<input type=button title='"+oUIMessage_1027+"' value='&#171;' style='width: 15px;' onclick="+this.handlername+".calendar('01/"+iMonth+"/"+(iYear-1)+"') >";sCalendarHTML+="</td>";sCalendarHTML+="<td align=center><b>"+sMonthName+", "+iYear+"<b></td>";sCalendarHTML+="<td align=right width=35>";sCalendarHTML+="<input type=button title='"+oUIMessage_1026+"' value='&#187;' style='width: 15px;' onclick="+this.handlername+".calendar('01/"+iMonth+"/"+(iYear+1)+"') >";sCalendarHTML+="<input type=button title='"+oUIMessage_1028+"' value='&#155;' style='width: 15px;' onclick="+this.handlername+".calendar('01/"+nMonth+"/"+nYear+"') >";sCalendarHTML+="</td>";sCalendarHTML+="</tr>";sCalendarHTML+="</table>";sCalendarHTML+="</td>";sCalendarHTML+="</tr>";sCalendarHTML+="<tr>";sCalendarHTML+="<th title='"+oUIMessage_1030+"' height='20'>"+oUIMessage_1037+"</th>";sCalendarHTML+="<th title='"+oUIMessage_1031+"'>"+oUIMessage_1038+"</th>";sCalendarHTML+="<th title='"+oUIMessage_1032+"'>"+oUIMessage_1039+"</th>";sCalendarHTML+="<th title='"+oUIMessage_1033+"'>"+oUIMessage_1040+"</th>";sCalendarHTML+="<th title='"+oUIMessage_1034+"'>"+oUIMessage_1041+"</th>";sCalendarHTML+="<th title='"+oUIMessage_1035+"'>"+oUIMessage_1042+"</th>";sCalendarHTML+="<th title='"+oUIMessage_1036+"'>"+oUIMessage_1043+"</th>";sCalendarHTML+="</tr>";sCalendarHTML+="<tr>"
for(i=0;i<iFirstDay;i++)sCalendarHTML+="<td>&nbsp;</td>";for(i=1;i<=7-iFirstDay;i++)sCalendarHTML+="<td><input type='button' value='"+i+"' class='calendar_btn'  onclick="+this.handlername+".pick("+i+","+iMonth+","+iYear+")></td>";var iCurrentDay=i;var iRows=(iDayInMonth-(7-iFirstDay))/7;for(j=0;j<iRows;j++)
{sCalendarHTML+="<tr>";for(i=0;i<7&&iCurrentDay<=iDayInMonth;i++,iCurrentDay++)sCalendarHTML+="<td><input type='button' value='"+iCurrentDay+"' class='calendar_btn' onclick="+this.handlername+".pick("+iCurrentDay+","+iMonth+","+iYear+")></td>";sCalendarHTML+="</tr>";}
sCalendarHTML+="</tr>";sCalendarHTML+="<tr>";sCalendarHTML+="<td colspan=7 align=center><a href='javascript:"+this.handlername+".HideDatePicker();' onmouseover={window.status=oUIMessage_1005;} onmouseout={window.status=''}>"+oUIMessage_1005+"</a>";sCalendarHTML+="</td>";sCalendarHTML+="</tr>";this.layer.innerHTML=sCalendarHTML;}
-->
