function getRand() { var maxCount = 10000; day = new Date(); seed = day.getTime(); return parseInt(((seed - (parseInt(seed/1000,10) *1000))/10)/100*maxCount + 1,10); } function getPopup(sUrl,iWidth,iHeight,sName,sText) { sName = (sName) ? sName : "Edit"; if(sName=="random")sName=getRand(); oPopup=window.open(sUrl,sName,"scrollbars=yes,menubar=no,toolbar=no,status=no,directories=no,location=no,width="+iWidth+",height="+iHeight+",resizable=yes,left=60,top=60"); if(sText)oPopup.dialogArguments=sText; oPopup.opener = self; } function confirmLink(target,confirmText,elseStat) { var conLength=confirmText.length; var RowCount=parseInt(conLength/40); var plusHeight=RowCount*16; var dialogHeight=145+plusHeight; var sUrl=jmRealPath+"jmuffin/html/confirmlink.cfm?i=1"; getPopup(sUrl,290,dialogHeight,"Dialog",confirmText); oPopup.target=target; /* var bReturnValue = window.showModalDialog(sUrl,confirmText,"dialogHeight: "+dialogHeight+"px; dialogWidth:290px; dialogTop: 150px; dialogLeft: 150px; center: Yes; help: no; resizable: No; status: No;"); var check=(bReturnValue)? bReturnValue:false ; if(target=="bool")return check; else if(check)window.location=target; else if(elseStat=="close")window.close(); */ } oForm= new Array(); function ClassForm(code) { this.code=code; this.setObject=setObject; this.check=check; this.aField= new Array(); this.aType= new Array(); } function setObject(field,sType) { this.aField[this.aField.length]=field; this.aType[this.aType.length]=sType; } function check() { var valueReturn=true; for(var i=0;i