function b_height(){
        rt=screen.height;
        return(rt);
}

function b_width(){
        rt=screen.width;
        return(rt);
}

function b_measure(){
        x=b_width();
        y=b_height();
        alert('Your Screen Resolution:\n\n\r'+x+' X '+y+' px.');
}
function new_window_fs(link){
        x=b_width();
        y=b_height();

        window_open(link);
        window_fullscreen(x,y);
}
function window_open(link){
        floodwindow= window.open(link,"new_window","locationbar=no,status=yes,menubar=no,resizable=yes,scrollbars=yes");
}
function window_fullscreen(x,y){
        floodwindow.moveTo(1,1);
        floodwindow.resizeTo(x,y);
        floodwindow.focus();
}
function new_window_std(link,position){
        floodwindow_small=window.open(link,"new_window","width=640,height=480,locationbar=no,status=yes,menubar=no,resizable=yes,scrollbars=yes");

        x=b_width();
        y=b_height();

        x-=655; y-=505;
        if(position==1)        floodwindow_small.moveTo(1,1);
        else if(position==2) floodwindow_small.moveTo(x,y);
}
