Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *<input enabled="false" value="<%=request("fechainicial")%>" name="fechainicial" type="text" class="textbox" id="date1" size="10" maxlength="10" onFocus="this.blur(); showCal('Date1')"></td>
- <td nowrap><div align="left"><a href="javascript:showCal('Date1')"><img src="../app/images/date.gif" width="17" height="17" border="0"></a></div>*
- *function showCal(name) {
- var d=new Date();
- currentCal = findCalendar(name);
- if (currentCal != null) {
- var calRE = getFormat();
- if (currentCal.form[currentCal.field].value!="" && calRE.test(currentCal.form[currentCal.field].value)) {
- var cd = getDateNumbers(currentCal.form[currentCal.field].value);
- d=new Date(cd[0],cd[1],cd[2]);
- cY=cd[0];
- cM=cd[1];
- dd=cd[2];
- }
- else {
- cY=d.getFullYear();
- cM=d.getMonth();
- dd=d.getDate();
- }
- var calendar=calHeader()+calTitle(d)+calBody(d,dd)+calFooter();
- if (isIE) {
- layers[cal].style.pixelTop=getTopIE(layers[currentCal.id],true);
- layers[cal].style.pixelLeft=getLeftIE(layers[currentCal.id],true);
- layers[cal].innerHTML=calendar;
- layers[cal].style.clip = "rect(0px; " + layers[cal].children[0].offsetWidth + "px; " + layers[cal].children[0].offsetHeight + "px; 0px)";
- }
- else if (isN4) {
- layers[cal].top=getTopN4(layers[currentCal.id]);
- layers[cal].left=getLeftN4(layers[currentCal.id]);
- layers[cal].document.open();
- layers[cal].document.writeln(calendar);
- layers[cal].document.close();
- layers[cal].visibility="show";
- }
- else if (isN6) {
- var l=document.getElementById(currentCal.id);
- layer=document.getElementById(cal);
- layer.style.top=getTopN6(l)+"px";
- layer.style.left=getLeftN6(l)+"px";
- layer.innerHTML=calendar;
- }
- }
- else {
- if(typeof AlertClient=="function"){ AlertClient("Calendar.NotFound",name); }
- else { alert("Text not translated: n" + "Calendar ["+name+"] not found"); }
- }
- }*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement