<!-- //
 function openWindow(url,nme,w,h) {
       var winStats;
       var px= screen.width/2 - w/2;
       var py= screen.height/2 - h/2;
       winStats='toolbar=no,location=no,directories=no,menubar=no,';
       winStats+='scrollbars=yes,resizable=yes,width='+w+',height='+h;
       if (navigator.appName.indexOf("Microsoft")>=0) {
           winStats+=',left='+ px +',top='+ py;
       }else{
          winStats+=',screenX='+ px +',screenY='+ py;
       }
       floater= window.open(url, "Blender", winStats);
 }

 function openMsgWindow(url,msg_id, nme,w,h) {
       var winStats;
       var px= screen.width/2 - w/2;
       var py= screen.height/2 - h/2;
       winStats='toolbar=no,location=no,directories=no,menubar=no,';
       winStats+='scrollbars=yes,resizable=yes,width='+w+',height='+h;
       if (navigator.appName.indexOf("Microsoft")>=0) {
           winStats+=',left='+ px +',top='+ py;
       }else{
          winStats+=',screenX='+ px +',screenY='+ py;
       }
       floater= window.open(url, "Blender"+msg_id, winStats);
 }

 function viewonline( ){
	openWindow("/message/onlinewin.php"  ,"",630,400);
 }

 function viewonlineSess( session ){
        openWindow("/message/onlinewin.php?" + session  ,"",630,400);
 } 

 function viewbox( ){
	openWindow("/message/boxwin.php"  ,"", 630,400);
 }

 function viewboxSess( session ){
        openWindow("/message/boxwin.php?" + session  ,"", 630,400);
 } 

 function viewmsg( msg_id ){
	openMsgWindow("/message/messagewin.php?popup=1&msg_id=" + msg_id , msg_id, "", 630,400);
 }

 function viewmsgSess( msg_id, session ){
        openMsgWindow("/message/messagewin.php?popup=1&msg_id=" + msg_id + "&" + session , msg_id, "", 630,400);
 }

 function viewReply( user_id, subject ){
        openMsgWindow("/message/replywin.php?popup=1&to_id=" + user_id + "&subject=" + subject, user_id, "", 630,400);
 }

// -->

