function openvertical(url_name)
{
    popup_height = 590;    
    popup_width = 490; 
    window.name = "MainWin";
    left_pos = screen.width - (popup_width+10);

    attr = 
"scrollbars=0,resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,height=" 
+ popup_height + ",width=" + popup_width ;//+ ",top=0,left=" + left_pos;
    popup_win = window.open(url_name, "popup", attr);
    popup_win.focus();
}

