// Document js //ric2006 //obrir finestra centrada

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
<!-- 
function MM_obreFinestra(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
/* finestra centrada dos */
function MM_novaFinestra(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function MM_resizeS() { 
 w=562;h=522; <!--tamany (win)finestra (ample)w=550+12=562;(alt)h=445+54=499;// aumentar alt+23 per la barra d'estat d'aruba.it-->
 l=(screen.availWidth-w)/2;
 t=(screen.availHeight-h)/2;
 top.window.moveTo(l,t); <!-- centra la finestra //-->
 top.window.resizeTo(w,h);  <!-- Redimensiona la finestra //-->
}
function MM_resizeServeis() { 
 //resizeTo(550,475);return false
 setTimeout('MM_resizeS();',7000);
}
function contakt(theURL) {
window.open('http://www.hortolana.net/contacte.htm','contacta','toolbar=no,menubar=no,width=560,height=329,scrollbars=yes,resizable=yes')
}
function contacte(theURL) {
window.open('http://www.hortolana.net/contacte.htm','contacta','toolbar=no,menubar=no,width=560,height=329,scrollbars=yes,resizable=yes')
}
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

<!--
var a;

function MM_openBrWindow2(theURL,winName,features) { //v2.0
	
	var top=0;
	var left=(screen.width)/20;
	features="left="+left+",top="+top+","+features;
	a=window.open(theURL,winName,features);
	
	a.focus();
}
//-->
/**/
/*obrirchicawindow*/
var chicaWindow = null;

function exitToParent(url)
{
  if(this.opener)
  {
    this.opener.location=('no.htm')
    this.close();
  }
}
function obrirchicaWindow(url, name, w, h, moreSettings)
{
  if((chicaWindow==null) || (chicaWindow.closed))
  {
    var winl = (screen.width-w)/2;
    var wint = (screen.height-h)/2;
    var settings ='height=' + h + ',';
    settings += 'width=' + w + ',';
    settings += 'top=' + wint + ',';
    settings += 'left=' + winl;
    if(moreSettings!="")
    {
      settings += ',' + moreSettings;
    }
    chicaWindow=window.open(url,name,settings);
    if(parseInt(navigator.appVersion) >= 4)
    {
      chicaWindow.focus();
    }
  }
}
function focusChildWindow()
{
  setTimeout("doFocusChildWindow()", 100);
}

function doFocusChildWindow()
{
  if((chicaWindow!=null) && !(chicaWindow.closed))
  {
    chicaWindow.focus();
  }
}
/**/
-->
