var height = screen.height; var width = screen.width; var leftpos = width / 2 - 150; var toppos = height / 2 - 100; var leftpos2 = width / 2 - 150; var toppos2 = height / 2 - 250; function uploadpopup() { win = window.open('/Hosted/BE/besystems.nsf/wfUploadPopup?openform','dep','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=300,height=200,left=' + leftpos + ',top=' + toppos); } function closepopup() { if (win && win.open && !win.closed) win.close(); } function popRegistered() { win = window.open('/Hosted/BE/besystems.nsf/popRegistered?openform','dep','toolbar=no,status=no,scrollbars=auto,location=no,menubar=no,directories=no,width=300,height=500,left=' + leftpos2 + ',top=' + toppos2); } function imageForm() { win = window.open('/Hosted/BE/besystems.nsf/webimagefile?OpenForm' , 'UploadImage' , 'toolbar=no,status=no,scrollbars=auto,location=no,menubar=no,directories=no,width=400,height=400,left=' + leftpos2 + ',top=' + toppos2); } function register() { window.open('/Hosted/BE/besystems.nsf/RegPopup?OpenForm','Register','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=300,height=350')} function Search(){ if(document.forms[0].SearchString.value=='') { alert('Please supply text to search for'); document.forms[0].SearchString.focus(); return; } location=location.href.toLowerCase().split('.nsf')[0]+ 'bluewave/web.nsf/searchview?SearchView&Query='+document.forms[0].SearchString.value; } function handle_textbox (searchstring) { if (window.event.keycode == 13) { if(document.all.Query.value==''){ alert('Please supply text to search for'); } location.href = ''; } } function deletePage() { if(confirm('Are you sure you want to DELETE this Page?')) {location='/Hosted/BE/besystems.nsf/all/EACC52AA680BA2DA8025779900250199?DeleteDocument'} } function writeHiddenQueueMembers() { for (var i =0;i