<!--
	  var ns = 0;
	  var ie = 0;
	  var op = 0;
	  var mac = 0;
	  var win = 0;
	  var lnx = 0;

	  if (navigator.appVersion.indexOf("Mac") != -1)
	    {
		  mac=1;
		  scr="mac";
		}
	  else if (navigator.appVersion.indexOf("Linux") != -1)
	    {
		  lnx=1;
		  scr="lnx";
		}
	  else
	    {
		  win=1;
		  scr="win";
		}
	  //alert(scr);

	  if (navigator.userAgent.indexOf("Opera") != -1)
	    {op=1;}
	  else if (navigator.userAgent.indexOf("MSIE") != -1)
	    {ie=1;}
	  else
	    {ns=1;}

	function askconfirm(id,page) {
	  if (confirm("Sei sicuro di voler eliminare questa scheda?")) {
		location.href="delete.php?id="+id+"&cat="+page;
	  }
	}

    function checkForm(myForm){
	  //alert(myForm);
      strSen=myForm.sender.value;
      strRec=myForm.recip.value;

	  if(strSen=="") {
	    alert("Riempire il campo \"DA\" con l'indirizzo e-mail del mittente");
		myForm.sender.focus();
		return false;
	  }
	  else {
	    if(strRec=="") {
	      alert("Riempire il campo \"A\" con l'indirizzo e-mail del destinatario");
		  myForm.recip.focus();
		  return false;
	    }
	    else { return true; }
   	  }
	}

  function chiudiFinestra() {
    window.close();
  }

  function imgSwap(pic1,pic2) {
    if (document.images) {
	  //alert(pic1)
	  //alert(pic2)
	  //alert(document[pic1].src);
      document[pic1].src = eval(pic2 + ".src");
    }
  }

   function imgSwap2(el) {
/*
     if ((el == "f1")&&(pick!=0)) {document.g.src = g1.src;}
     if ((el == "f2")&&(pick!=1)) {document.g.src = g2.src;}
     if ((el == "f3")&&(pick!=2)) {document.g.src = g3.src;}
     if ((el == "f4")&&(pick!=3)) {document.g.src = g4.src;}
     if ((el == "f5")&&(pick!=4)) {document.g.src = g5.src;}
*/
     document.g.src = eval(el + ".src");
   }

   function imgSwap3() {
     document.g.src = eval("g"+ (pick+1) + ".src");
   }

var wind = null;
function NewWindow(mypage,myname,w,h,scroll){

  h=h+45;

  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll
  wind = window.open(mypage,myname,settings)
  if(wind.window.focus){wind.window.focus();}
}


function ApriFinestra(myimg,myname,w,h,imgW,imgH,myTitle,myAlt,scroll,myBgColor,mybaseref,cw,chiudi_win,mio_path) {
  sw=screen.width;
  sh=screen.height;

  //alert(h)

  if ((sh==480) && (h>300))
    {
	  h=300;
	  scroll = 'yes';
    }
  else if ((sh==600) && (h>500))
    {
      h=500;
	  scroll = 'yes';
    }
  h=h+52;
  w=w+2;

  sh=sh - 20;

  //alert(sw)
  //alert(sh)

  LeftPosition = (sw) ? (sw-w)/2 : 0;
  TopPosition = (sh) ? (sh-h-20)/2 : 0;

  if ((TopPosition+h) > sh)
    TopPosition = 0;

  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll

  //alert(settings)
  var msg = window.open("",myname,settings);

  msg.document.open();
  msg.document.write("<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\n");
  msg.document.write("<html>\n");
  msg.document.write("<head>\n<title>"+myTitle+"</title>\n");
  msg.document.write("<meta name=\"Author\" content=\"Akensoft - www.akensoft.it\">\n");

  msg.document.write('<link rel="stylesheet" href="script/contenuto.css" type="text/css">\n');

  msg.document.write("<script language=\"JavaScript\">\n");
  msg.document.write("function chiudiFinestra() {\n");
  msg.document.write("window.close(); }\n");
  msg.document.write("<\/script>\n");

  msg.document.write("</head>\n");
  msg.document.write('<body style="margin: 0px; padding: 0px; background-color:'+myBgColor+';">\n');
  msg.document.write('<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" style="padding-bottom:15px;">\n');
  astr='<img src="'+myimg+'" border=0 width='+imgW+' HEIGHT='+imgH+' alt=\"'+myAlt+'\" title=\"'+myAlt+'\"><br>\n';
  msg.document.write(astr);
  msg.document.write('</td></tr>\n');
  msg.document.write('<tr><td align="right">\n');
  msg.document.write('<a href="javascript:chiudiFinestra()" onFocus="this.blur()"><img src="'+mio_path+'/img/pulsanti/chiudi3'+cw+'.gif" BORDER="0" WIDTH="100" HEIGHT="31" alt="'+chiudi_win+'" title="'+chiudi_win+'"></a><br>');
  msg.document.write('</td></tr>\n');
  msg.document.write("</table>\n");
  msg.document.write("</body>\n");
  msg.document.write("</html>");
  msg.document.close();

  if(msg.window.focus){msg.window.focus();}
}

function ApriFinestraReal(myVideo,myVideoDir,myname,w,h,videoW,videoH,myTitle,scroll,myBgColor,mybaseref) {
  sw=screen.width;
  sh=screen.height;

  if ((sh==480) && (h>300))
    {
	  h=300;
	  scroll = 'yes';
    }
  else if ((sh==600) && (h>500))
    {
      h=500;
	  scroll = 'yes';
    }

  nh=h+40;
  sh=sh - 20;

  LeftPosition = (sw) ? (sw-w)/2 : 0;
  TopPosition = (sh) ? (sh-nh-20)/2 : 0;

  if ((TopPosition+nh) > sh)
    TopPosition = 0;

  if (navigator.appVersion.indexOf("Mac") != -1)
    scr="mac";
  else
    scr="win";

  settings = 'height='+nh+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll

  var msg = window.open("",myname,settings);
  //msg = open("",myname,settings)

  msg.document.open();
  msg.document.write("<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">\n");
  msg.document.write("<HTML>\n");
  msg.document.write("<HEAD>\n<TITLE>"+myTitle+"</TITLE>\n");
  msg.document.write("<META NAME=\"Author\" CONTENT=\"Akensoft - www.akensoft.it\">\n");

  astr='<LINK REL="stylesheet" HREF="'+mybaseref+'script/'+scr+'.css" TYPE="text/css">\n';
  msg.document.write(astr);

  msg.document.write("<STYLE>\n");
  msg.document.write("<!--\n");
  //msg.document.write("BODY TOPMARGIN=\"10\" LEFTMARGIN=\"10\" RIGHTMARGIN=\"10\" BOTTOMMARGIN=\"10\" MARGINWIDTH=\"10\" MARGINHEIGHT=\"10\"\n");

  msg.document.write("A:link {text-decoration: none;}\n");
  msg.document.write("A:visited {text-decoration: none;}\n");
  msg.document.write("-->\n");
  msg.document.write("<\/STYLE>\n");

  msg.document.write("<SCRIPT language=\"JavaScript\">\n");
  msg.document.write("function chiudiFinestra() {\n");
  msg.document.write("window.close(); }\n");
  msg.document.write("</script>\n");

  msg.document.write("</head>\n");
  msg.document.write("<body bgcolor=\""+myBgColor+"\" marginwidth=10 marginheight=10 topmargin=10 leftmargin=10 bottommargin=10 rightmargin=10>\n");

  msg.document.write('<table border="0" cellspacing="0" cellpadding="0" align="center">\n');
  msg.document.write('<tr>\n');
  msg.document.write('<td align="center"><!--- video ---->\n');
  msg.document.write('<! HTML INSERT BEGIN /!>\n');
  msg.document.write('<! RealPublisher\n');
  msg.document.write('-- Comment Text Created By RealProducer Web Page Wizard - 7/24/2000\n');
  msg.document.write('-- Caution: Do not make changes to this comment section.  Any local file\n');
  msg.document.write('references that appear here are automatically updated when uploaded to a\n');
  msg.document.write('remote web server. Alterations to this section or any file references\n');
  msg.document.write('listed below or contained in the associated RAM or RPM metafiles may cause\n');
  msg.document.write('errors when publishing your web page to a remote server. These values should\n');
  msg.document.write('not be altered.\n');
  msg.document.write('-- pagelayout="embedded"\n');
  myStr='-- serverpath="'+myVideoDir+'"\n';
  msg.document.write(myStr);
  myStr='-- mediafile="'+myVideo+'.rm"\n';
  msg.document.write(myStr);
  myStr='-- metafile="'+myVideo+'.rpm"\' /!> \n';
  msg.document.write(myStr);
  msg.document.write('<object id=video1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height='+videoH+' width='+videoW+'>\n');
  msg.document.write('<param name="controls" value="ImageWindow">\n');
  msg.document.write('<param name="console" value="Clip1">\n');
  msg.document.write('<param name="autostart" value="true">\n');
  msg.document.write('<param name="src" value="'+myVideo+'.rm">\n');
  msg.document.write('<embed src="'+myVideo+'.rpm" type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ImageWindow" height='+videoH+' width='+videoW+' autostart=true>\n');
  msg.document.write('</object>\n');
  msg.document.write('<br>\n');
  msg.document.write('<object id=video1 classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width=230 height="30">\n');
  msg.document.write('<param name="SRC" value="'+myVideo+'.rpm">');
  msg.document.write('<param name="AUTOSTART" value="true">');
  msg.document.write('<param name="CONTROLS" value="ControlPanel">');
  msg.document.write('<param name="CONSOLE" value="Clip1">');
  msg.document.write('<embed src="'+myVideo+'.rpm" type="audio/x-pn-realaudio-plugin" type="audio/x-pn-realaudio-plugin" width=230 height="30" autostart=true controls="ControlPanel" console="Clip1">\n');
  msg.document.write('</embed>');
  msg.document.write('</object>');

  msg.document.write('<object id=video1 classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width=230 height="32">');
  msg.document.write('<param name="SRC" value="'+myVideo+'.rpm">');
  msg.document.write('<param name="AUTOSTART" value="true">');
  msg.document.write('<param name="CONTROLS" value="StatusPanel">');
  msg.document.write('<param name="CONSOLE" value="Clip1">');
  msg.document.write('<embed src="'+myVideo+'.rpm" type="audio/x-pn-realaudio-plugin" type="audio/x-pn-realaudio-plugin" width=230 height="32" autostart=true controls="StatusPanel" console="Clip1">\n');
  msg.document.write('</embed>');
  msg.document.write('</object>');

  msg.document.write('<! HTML INSERT END /!></td>\n');
  msg.document.write('</tr>\n');
  msg.document.write("<tr><TD align=right>\n");
  if (ns)
    sp=15;
  else
    sp=25;
  msg.document.write("<IMG SRC=\""+mybaseref+"img/fig/filler.gif\" BORDER=0 WIDTH=1 HEIGHT="+sp+"><BR>");
  tmp=mybaseref+"img/pulsanti/chiudi_wind.gif"
  //alert(tmp)
  //msg.document.write("<A HREF=\"javascript:chiudiFinestra()\"><IMG SRC=\""+mybaseref+"img/icone/chiudi_win.gif\" BORDER=1 WIDTH=100 HEIGHT=23 ALT=\"Chiudi la finestra\"></A><BR>\n");
  msg.document.write("<A HREF=\"javascript:chiudiFinestra()\"><IMG SRC=\""+tmp+"\" BORDER=0 WIDTH=100 HEIGHT=31 ALT=\"Chiudi la finestra\"></A><BR>\n");

  msg.document.write("</TD></tr></TABLE>\n");
  //msg.document.write("</center>\n");
  msg.document.write("</body>\n");
  msg.document.write("</HTML>");
  msg.document.close();

  if(msg.window.focus){msg.window.focus();}
}


  function myAlert(msg) {
    alert(msg)
  }

   if (document.layers) window.onresize=ricarica;

   function ricarica()
   {document.location.reload()}

//--->