function openWindow()
{
var args = arguments;
var win_set = '';
win_set += 'width=' + ((args[2])? args[2] : screen.width-30) 
win_set += ',height=' + ((args[3])? args[3] : screen.height-30) 
win_set += ',resizable=' + ((args[4])? 1 : 0) 
win_set += ',toolbar=' + ((args[5])? 1 : 0) 
win_set += ',scrollbars=' + ((args[6])? 1 : 0) 
win_set += ',location=' + ((args[7])? 1 : 0) 
win_set += ',menubar=' + ((args[8])? 1 : 0) 
win_set += ',status=' + ((args[9])? 1 : 0);
swin = window.open(args[0],args[1],win_set);
swin.focus();
}


function openSmallWidth(url,wname)
{
swin = window.open(url,wname, "width=600, height=500, resizable=yes, toolbar=yes, scrollbars=yes, location=yes, menubar=yes, status=yes");
swin.focus();
}

function openMiddleWidth(url,wname)
{
swin = window.open(url,wname, "width=800, height=550, resizable=yes, toolbar=yes, scrollbars=yes, location=yes, menubar=yes, status=yes");
swin.focus();
}

function openLargeWidth(url,wname)
{
swin = window.open(url,wname, "width=1000, height=600, resizable=yes, toolbar=yes, scrollbars=yes, location=yes, menubar=yes, status=yes");
swin.focus();
}

function openFreeWidth(url,wname)
{
swin = window.open(url,wname, "resizable=yes, toolbar=yes, scrollbars=yes, location=yes, menubar=yes, status=yes");
swin.focus();
}

function openExLargeWidth(url,wname)
{
swin = window.open(url,wname, "width=1100, height=700, resizable=yes, toolbar=yes, scrollbars=yes, location=yes, menubar=yes, status=yes");
swin.focus();
}

function openMiddleWidthNostatus(url,wname)
{
swin = window.open(url,wname, "width=800, height=600, resizable=yes, toolbar=yes, scrollbars=yes, location=no, menubar=no, status=no");
swin.focus();
}

function openLengthWidthNostatus(url,wname)
{
swin = window.open(url,wname, "width=600, height=800, resizable=yes, toolbar=yes, scrollbars=yes, location=no, menubar=no, status=no");
swin.focus();
}