//----------------calendar ----------------------------- with (document){ write(''); } var gdCtrl=null; var popSrc; var oPopup; //----------------- var dateSplit="."; // separator of date string, AT LEAST one char. var datePosType=2; // date format 0: D-M-Y ; 1: M-D-Y; 2: Y-M-D var isDigital=true; // month format true: 01-05-2001 ; false: 1-May-2001 var isShortYear=false; // year format true: 2-digits; false: 4-digits var is3Digits=true; // take effect when gbDigit4=false ,chinese year format true: 3-digits; false:2-digits var is4Digits=false; // english format true: 4-digits; false:chinese format //----------------- function onDone(src){ popSrc=src;} function popCalendar(t){ gdCtrl=t; oPopup=window.createPopup(); oPopup.document.write(popSrc); var oPopupBody = oPopup.document.body; oPopup.show(0, 0, 0, 0, t); var realWidth=oPopupBody.scrollWidth+4; var realHeight=oPopupBody.scrollHeight+4; oPopup.hide(); if(event.screenY+realHeight>screen.availHeight) oPopup.show(0,-realHeight,realWidth,realHeight,t); else oPopup.show(0,t.offsetHeight,realWidth,realHeight,t); } function getSplit(){return dateSplit;} function getDatePos(){return datePosType;} function getDigital(){return isDigital;} function getShortYear(){return isShortYear;} function getDigit3(){return is3Digits;} function getDigit4(){return is4Digits;} function getCalDate(){return gdCtrl.value;} function setCalDate(s){gdCtrl.value=s;} function hideCalendar(){oPopup.hide();} dwn.startDownload("/dsm/calendar.htm",onDone); //------------ edit select with (document){ write(''); } var ddCtrl=null; var ddpopSrc; var ddPopup; var maxHeight=220; var ddf=1; function ddonDone(src){ ddpopSrc=src;} function popeditSelect(t,f){ try{ ddCtrl=t; ddf=f; ddPopup=window.createPopup(); ddPopup.document.write(ddpopSrc); var oPopupBody = ddPopup.document.body; ddPopup.show(0, 0, 0, 0, t); var realHeight=oPopupBody.scrollHeight+4; ddPopup.hide(); realHeight=(realHeight>maxHeight)?maxHeight:realHeight; if(event.screenY+realHeight>screen.availHeight) ddPopup.show(0,-realHeight,t.offsetWidth+20,realHeight,t); else ddPopup.show(0,t.offsetHeight,t.offsetWidth+20,realHeight,t); }catch(e){}; } function geteditSelect(f){ return [ddCtrl.value,ddCtrl.valueList,ddf];} function seteditSelect(s){$(ddCtrl).unmask();if(s.substr(0,1)=='|'){s=s.substr(1).replace(/_/g,'9');$(ddCtrl).mask(s);ddCtrl.focus();}else{ddCtrl.value=s;}} function hideeditSelect(){ ddPopup.hide();after_editSelect(ddCtrl);} function after_editSelect(ddCtrl){}; rsdwn.startDownload("/dsm/editSelect.htm",ddonDone);