
function disableme (what, button_id) {
    what = document.getElementById(what);
    what.disabled = true;
    if(button_id!='')
        what.value=button_id;
    return true;
}



function popup(popup_link)
{
    xxx=window.open(popup_link, 'tinywindow', 'scrollbars=yes,menubar=no,resizable=yes,location=no,width=1015,height=760');
    xxx.focus();
}

function popupsize(popup_link,width,height)
{
    pr=window.open(popup_link, 'tinywindow', 'scrollbars=yes,menubar=no,resizable=no,location=no,width='+width+',height='+height);
    pr.focus();
}


function print_window(link)
{
    link = link + '&printit=yes'
    new_print_window=window.open(link, 'printwindow', 'scrollbars=yes,menubar=no,resizable=yes,location=no,width=820,height=600,screenX=50,screenY=100');
    new_print_window.focus();
}

function newWindow(file,window) 
{
    msgWindow=open(file,window,'resizable=no,location=no,menubar=no,scrollbar=yes,width=430,height=380,screenX=10,screenY=10');
    if (msgWindow.opener == null) 
    {
        msgWindow.opener = self;
    }
    msgWindow.focus();
}


function getRadioValue(radioObject)
{
    var value = false

    if (radioObject.checked == true) 
    {
        return true
    }
    for (var i=0; i<radioObject.length; i++) 
    {
        if (radioObject[i].checked) 
        {
            value = radioObject[i].value
            break
        }
    }
    return value;		
}


n4=(document.layers);
n6=(document.getElementById&&!document.all);
ie=(document.all);
