SHARE
TWEET

Untitled

a guest Jul 18th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. *<input enabled="false" value="<%=request("fechainicial")%>" name="fechainicial" type="text" class="textbox" id="date1" size="10" maxlength="10" onFocus="this.blur(); showCal('Date1')"></td>
  2.                           <td nowrap><div align="left"><a href="javascript:showCal('Date1')"><img src="../app/images/date.gif" width="17" height="17" border="0"></a></div>*
  3.      
  4. *function showCal(name) {
  5.   var d=new Date();
  6.   currentCal = findCalendar(name);
  7.   if (currentCal != null) {
  8.     var calRE = getFormat();
  9.     if (currentCal.form[currentCal.field].value!="" && calRE.test(currentCal.form[currentCal.field].value)) {
  10.       var cd = getDateNumbers(currentCal.form[currentCal.field].value);
  11.       d=new Date(cd[0],cd[1],cd[2]);
  12.       cY=cd[0];
  13.       cM=cd[1];
  14.       dd=cd[2];
  15.     }
  16.     else {
  17.       cY=d.getFullYear();
  18.       cM=d.getMonth();
  19.       dd=d.getDate();
  20.     }
  21.     var calendar=calHeader()+calTitle(d)+calBody(d,dd)+calFooter();
  22.     if (isIE) {
  23.       layers[cal].style.pixelTop=getTopIE(layers[currentCal.id],true);
  24.       layers[cal].style.pixelLeft=getLeftIE(layers[currentCal.id],true);
  25.       layers[cal].innerHTML=calendar;
  26.       layers[cal].style.clip = "rect(0px; " + layers[cal].children[0].offsetWidth + "px; " + layers[cal].children[0].offsetHeight + "px; 0px)";
  27.     }
  28.     else if (isN4) {
  29.       layers[cal].top=getTopN4(layers[currentCal.id]);
  30.       layers[cal].left=getLeftN4(layers[currentCal.id]);
  31.       layers[cal].document.open();
  32.       layers[cal].document.writeln(calendar);
  33.       layers[cal].document.close();
  34.       layers[cal].visibility="show";
  35.     }
  36.     else if (isN6) {
  37.       var l=document.getElementById(currentCal.id);
  38.       layer=document.getElementById(cal);
  39.       layer.style.top=getTopN6(l)+"px";
  40.       layer.style.left=getLeftN6(l)+"px";
  41.       layer.innerHTML=calendar;
  42.     }
  43.   }
  44.   else {
  45.          if(typeof AlertClient=="function"){ AlertClient("Calendar.NotFound",name); }
  46.          else { alert("Text not translated: n" + "Calendar ["+name+"] not found"); }
  47.   }
  48. }*
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top