//Function to open pop up window function winOpener(theURL, winName, scrollbars, resizable, width, height) { winFeatures = 'left=' + (screen.availWidth-10-width)/2 + ',top=' + (screen.availHeight-30-height)/2 + ',scrollbars=' + scrollbars + ',resizable=' + resizable + ',width=' + width + ',height=' + height + ',toolbar=0,location=0,status=1,menubar=0' window.open(theURL, winName, winFeatures); }