// this function is used to open a new window with a close button function openWin(url,name,w,h,scroll) { var att = 'width='+ w +',height='+ h +',left=100,top=100,scrollbars='+ scroll +',resizable=yes' window.open(url,name,att); self.name="Main"; } // this sets the childwin declaration for help childwin = null // this will open a context-sensitive help window function openHelp(url,e){ w = screen.width-420 h = screen.height-370 x = e.screenX y = e.screenY if(x > w){ x = x-420 } if(y > h){ y = y-370 } childwin=window.open(url, "childwin", "width=420,height=370,top="+y+",left="+x) } // this will open a pop-up help window function openHelp2(url,e,v){ w = screen.width-420 h = screen.height-v x = e.screenX y = e.screenY if(x > w){ x = x-420 } if(y > h){ y = y-v } childwin=window.open(url, "childwin", "width=420,height="+v+",top="+y+",left="+x) } // this will auto close a help window function closeMe(){ if (childwin != null){ childwin.close() childwin = null } } // scripts for old pages -- DO NOT USE function openMe(url){ childwin = window.open(url,"child","left=100,top=100,width=420,height=370,toolbar=no,menubar=no,scrollbars=yes,status=no,resizable=yes") } function openMe2(url,h){ childwin = window.open(url,"child","left=100,top=100,width=420,height="+h +",toolbar=no,menubar=no,scrollbars=yes,status=no,resizable=no") }