function showevent() { mydate = new Array(); mydate = calSide.selectedDates[0]; var tempdate = mydate.toString(); var thedate = tempdate.split(','); var dispdate = thedate[0] + '-' + pad_date(thedate[1]) + '-' + pad_date(thedate[2]); xajax_showcal(dispdate); } function dispcal() { document.getElementById('body').value = document.getElementById('calSideContainer').innerHTML; } function trim(value) { var temp = value; var obj = /^(\s*)([\W\w]*)(\b\s*$)/; if (obj.test(temp)) { temp = temp.replace(obj, '$2'); } var obj = / /g; while (temp.match(obj)) { temp = temp.replace(obj, " "); } return temp; } function pad_date(value) { if (value < 10) { value = '0' + value; } return value; } function showit() { //cal1.reset(); //alert(thedate[0]); mydate = new Array(); mydate = cal1.selectedDates[0]; var tempdate = mydate.toString(); var thedate = tempdate.split(','); var dispdate = pad_date(thedate[1]) + '/' + pad_date(thedate[2]) + '/' + thedate[0]; document.getElementById('whenposted').value = dispdate; } function showCalendar1() { cal1.outerContainer.style.top = (link1.offsetTop+link1.offsetParent.offsetTop+link1.height-1) + "px"; cal1.outerContainer.style.left = (link1.offsetLeft+link1.offsetParent.offsetLeft) + "px"; cal1.outerContainer.style.display='block'; } function select_the_dates() { calSide.select("2006,10,14");calSide.select("2006,10,15");calSide.select("2006,10,13");calSide.select("2006,09,30");calSide.select("2006,10,01");calSide.select("2007,06,22");calSide.select("2007,09,21");calSide.select("2007,07,10");calSide.select("2007,08,28");calSide.select("2007,09,12");calSide.select("2007,11,06");calSide.select("2008,10,10");calSide.select("2009,03,25");calSide.select("2013,01,20");}