// script to pop open a new window

// build links like this: javascript:pop('urlorpath','windowname',w,h,'controls','scroll','statusbar')

// set following master properties for all opens from this page or script

popresize = "no";
popmenu = "no";
pophistory = "no";
popdirectories = "no";

// defaults in case an argument is not passed through link event

popurl = "#";
popname = "newblankpopup";

popwidth = 400;
popheight = 400;

popcontrols = "no";
popscroll = "no";
popstatus = "no";

function pop(popurl,popname,popwidth,popheight) {

   specs = 'width=' + popwidth + ',height=' + popheight + ',scrollbars=' + popscroll + ',resizable=' + popresize + ',toolbar=' + popcontrols + ',location=' + popcontrols + ',personalbar=' + popcontrols +  ',locationbar=' + popcontrols + ',statusbar=' + popstatus + ',status=' + popstatus + ',history=' + pophistory + ',directories=' + popdirectories  + ',menubar=' + popmenu;

popped = window.open(popurl,popname,specs);

popped.focus();

}
