

/* a collection of window tricks. */

/* first, declare the variable newWin that will be used 
for the new window object. */
var newWin;

function basicWindow(url,w,h) {
settings = '"toolbar=no, directories=no,menubar=no,scrollbars=no,resizable=no,status=no,width='+w+',height='+h+'"';
closeWindow();
newWin = window.open(url,'newWin',settings);
newWin.focus();
}

function allWindow(url,w,h) {
settings = '"toolbar=yes,titlebar=yes,location=yes,explorer=yes,directories=yes,menubar=yes,fullscreen=yes,scrollbars=yes,resizable=yes,status=yes"';
closeWindow();
newWin = window.open(url,'newWin',settings);
newWin.focus();
}

function plainwindow() {
newWin = window.open() 
}



function closeWindow() {
if (newWin && !newWin.closed) {
newWin.close();}
}


