function finestra(url,nom,w,h) {     var height_win,width_win,x,y;      if (screen)      {        width_win=w+15;         height_win=h+15;                             y = (screen.availHeight - height_win)/2;           x = (screen.availWidth  - width_win)/2;               fin1=open(url,nom,'width='+width_win+',height='+height_win+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',toolbar=no,location=no,directories=no,status=no,menubar=no,target=_top,resizable=no,scrollbars=yes');           fin1.focus();    }            }function fullscreen(){	var hdiff;		window.resizeTo(screen.width/2,screen.height/2)	window.moveTo(0,10)		if (window.screenTop)		hdiff=window.screenTop;	else		hdiff=window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;			window.moveTo(-6,-hdiff+6);	window.resizeTo(screen.width+13,screen.height+hdiff+26)}function restore(){	window.moveTo(-4,-4);	window.resizeTo(screen.width+8,screen.availHeight+8);}function finalitza(){	restore();	finestra('sortir.php','sortir');}function myResize() {	var myWindow = document.getElementById('myDiv');	myWindow.style.height = (window.innerHeight - 10) + "px";}