function view(x)
  {
	document.location = x;
	}
/*
Name:  - do_popup
Desc:  - deschide popup
Input: - pagina - url
			 - x- numele paginii
			 - pw- width
			 - ph- height			 
Used: - bottonm.inc
*/		   
function do_popup(pagina,x,pw,ph)
  {
   sw =1;
   sh =1;
   if (window.screen) 
     {
      sw = screen.availWidth;
      sh = screen.availHeight;
     }
   else
     {
      sw = 800;
      sh = 600;
     }
   pleft = ((sw * 1) - ( pw * 1 )) / 2 ; 
   if((pleft * 1) < 1){ pleft = 1  ; }
   ptop = ((sh * 1) - ( ph * 1 )) / 2 ; 
   if((ptop * 1) < 1){ ptop = 1  ; }
   if((pw * 1) > (sw * 1)){ pwidth = ((sw * 1) - 15)  ; } else { pwidth = pw ; }
   if((ph * 1) > (sh * 1)){ pheight = ((sh * 1) - 40)  ; } else { pheight = ph ; }
   var w=window.open(pagina,'xrc' + x,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+pwidth+',height='+pheight+',top='+ptop+',left='+pleft);
   w.focus();
  }
	
