function BreakItUp() { //Set the limit for field size. var FormLimit = 102399 //Get the value of the large input object. var TempVar = new String TempVar = document.save.txt_Sort.value //If the length of the object is greater than the limit, break it //into multiple objects. if (TempVar.length > FormLimit) { document.save.txt_Sort.value = TempVar.substr(0, FormLimit) TempVar = TempVar.substr(FormLimit) while (TempVar.length > 0) { var objTEXTAREA = document.createElement("HIDDEN") objTEXTAREA.name = "txt_Sort" objTEXTAREA.value = TempVar.substr(0, FormLimit) document.save.appendChild(objTEXTAREA) TempVar = TempVar.substr(FormLimit) } } } function save() { document.save.submit(); } function next() { document.next.submit(); } function smallwin(URL) { varWindow=window.open(URL,"","Height=480,Width=500,Top=20,left=40,scrollbars=yes,resizable=1"); if (varWindow.opener==null)varWindow.opener=window; } function show(URL) { varWindow=window.open(URL,"","Height=600,Width=800,Top=0,left=0,scrollbars=yes,resizable=1,toolbar=yes"); if (varWindow.opener==null)varWindow.opener=window; } function show_full(URL) { varWindow=window.open(URL,"","Height=600,Width=800,Top=0,left=0,status=yes, scrollbars=yes,resizable=1"); if (varWindow.opener==null)varWindow.opener=window; } function show_map(URL) { varWindow=window.open(URL,"","Height=600,Width=800,Top=0,left=10,scrollbars=no,resizable=1"); if (varWindow.opener==null)varWindow.opener=window; } function show_message(URL) { var x=screen.width; var y=screen.height; var win_width=500; var win_height=500; var win_left=(x-200)/2; var win_top=(y-300)/2; var win_options="Height=" + win_height + ",Width=" + win_width + ",Top=" + win_top + ",left=" + win_left + ",scrollbars=yes,resizable=1,toolbar=yes"; varWindow=window.open(URL,"",win_options); if (varWindow.opener==null)varWindow.opener=window; //varWindow.moveTo(win_left,win_top); //varWindow.resizeTo(x,y); } function show_Modal(URL,pWidth,pHeight,action_field,bProcess) { var dFeatures = "dialogHeight=" + pHeight + "px;dialogWidth=" + pWidth + "px;center=yes;status=yes;"; var bReturn = showModalDialog(URL,null,dFeatures); if (bReturn){ if (bProcess){ var pos = bReturn.indexOf("|"); if (pos>=0){ action_field.value = bReturn.substr(pos+1); var tmpName = action_field.name.toLowerCase(); switch (tmpName) { case "txt_bimage": document.all.txt_bimageID.value = bReturn.substr(0,pos); default: } } } else action_field.value = bReturn; } } function showeditor(URL) { if (URL.length==0){ return false; } varWindow=window.open(URL,"","Height=700,Width=800,Top=0,left=10,scrollbars=yes,resizable=1"); if (varWindow.opener==null)varWindow.opener=window; } function showsmall(URL) { varWindow=window.open(URL,"","Height=600,Width=700,Top=0,left=10,scrollbars=yes,resizable=1"); if (varWindow.opener==null)varWindow.opener=window; } function onlinehelp(URL) { varWindow=window.open(URL,"","Height=600,Width=700,Top=0,left=10,scrollbars=yes,resizable=1"); if (varWindow.opener==null)varWindow.opener=window; } function gotopage(pagename) { if (pagename != "") { window.location.href=pagename } } function stockwindow(url){ varWindow=window.open(url,"","Height=600,Width=700,Top=0,left=10,scrollbars=yes,resizable=1"); if (varWindow.opener==null)varWindow.opener=window; } function closepage(){ window.history.back(); } function closewin(){ window.close(); } function setup_window(){ window.resizeTo(600,600); window.focus(); } function winname(strname){ window.name = strname window.focus(); } function filter(filtertoapply) { if (filtertoapply != "") { window.document.location.href=filtertoapply } } function resetwindow(strname){ varwindow=window.open("",strname); self.varwindow.location.reload(); window.close(); } function refreshwindow(strname,strurl){ varwindow=window.open("",strname); self.varwindow.location.href=strurl; window.close(); } function select_recipient(mailbox,displayname){ varwindow=window.open("","NEWMESSAGE") alert(varwindow) self.varwindow.document.save.txtDestinationID.value = mailbox self.varwindow.document.save.txtMessageTo.value = displayname window.close() } function select_this_record(id,displayname,sWindow,sName){ varwindow=window.open("",sWindow) self.varwindow.document.save.txtDestinationID.value = mailbox self.varwindow.document.save.txtMessageTo.value = displayname window.close() } function go_select(URL,sName) { SQL = eval("self.document.save." + sName + ".value"); varWindow=window.open(URL,"","Height=500,Width=400,Top=0,left=200,scrollbars=yes"); /*alert(SQL);*/ if (varWindow.opener==null)varWindow.opener=window; } function highlight_field(bValue){ var vItem=event.srcElement; var sControl=vItem.name; if (bValue) eval("document.all.row_" + sControl + ".style.backgroundColor='LightGrey';"); else eval("document.all.row_" + sControl + ".style.backgroundColor='#F3F5DC';"); } /*window.onerror=hideerror function hideerror(){ return true;} */ function popupwhatsnew() { varWindow=window.open("../asp/display_popup.asp","WHATS_NEW","Height=480,Width=500,Top=0,left=10,scrollbars=yes,resizable=1"); if (varWindow.opener==null)varWindow.opener=window; } //Pop-it menu- By Dynamic Drive //For full source code and more DHTML scripts, visit http://www.dynamicdrive.com //This credit MUST stay intact for use var linkset=new Array() //SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT ////No need to edit beyond here var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1 var ns6=document.getElementById&&!document.all var ns4=document.layers function showmenu(e,which){ if (!document.all&&!document.getElementById&&!document.layers) return clearhidemenu() menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : "" menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj if (ie4||ns6) menuobj.innerHTML=which else{ menuobj.document.write(''+which+'') menuobj.document.close() } menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height eventX=ie4? event.clientX : ns6? e.clientX : e.x eventY=ie4? event.clientY : ns6? e.clientY : e.y //Find out how close the mouse is to the corner of the window var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY //if the horizontal distance isn't enough to accomodate the width of the context menu if (rightedge