<!--
	  var ns = 0;
	  var ie = 0;
	  var op = 0;
	  var mac = 0;
	  var win = 0;

	  if (navigator.appVersion.indexOf("Mac") != -1)
	    {
		  mac=1;
		  scr="mac";
		}
	  else
	    {
		  win=1;
		  scr="win";
		}

	  if (navigator.userAgent.indexOf("Opera") != -1)
	    {op=1;}
	  else if (navigator.userAgent.indexOf("MSIE") != -1)
	    {ie=1;}
	  else
	    {ns=1;}

	  //document.write('<LINK REL="stylesheet" HREF="'+baseref+'script/'+scr+'.css" TYPE="text/css">');

    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("g"+ 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) {
  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';
    }

  //alert(h)

  nh=h+40;

  sh=sh - 20;

  //alert(sw)
  //alert(sh)

  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";

//LeftPosition = (sw-w)/2;
  //TopPosition = 20;

  settings = 'height='+nh+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll

  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");

  astr='<LINK REL="stylesheet" HREF="'+mybaseref+'script/'+scr+'.css" TYPE="text/css">\n';
  //alert(astr)
  msg.document.write(astr);

  msg.document.write("<style>\n");
  msg.document.write("<!--\n");
  msg.document.write("BODY\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 style=\"background-color:"+myBgColor+"; margin:0px;\">\n");
  msg.document.write("<center>\n");
  msg.document.write("<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD>\n");
  astr='<center><IMG SRC="'+myimg+'" BORDER=0 WIDTH='+imgW+' HEIGHT='+imgH+' alt=\"'+myAlt+'\" title=\"'+myAlt+'\">\n</center>\n';

  msg.document.write(astr);
  msg.document.write("</TD></TR>\n");
  msg.document.write("<tr><TD><FONT SIZE=1><BR></font></TD></tr>\n");
  msg.document.write("<tr><TD ALIGN=RIGHT CLASS=\"closebut\">\n");
  msg.document.write("<a href=\"javascript:chiudiFinestra()\" onFocus=\"this.blur()\"><IMG SRC=\"img/pulsanti/chiudi_wind"+cw+".gif\" BORDER=0 WIDTH=100 HEIGHT=31 ALT=\"Chiudi la finestra\" title=\"Chiudi la finestra\"></A></TD></tr>\n");
  msg.document.write("</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 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
  //myBgColor="#4AB894";

  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");

  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 style=\"background-color:"+myBgColor+"; margin:10px 10px 10px 10px;\">\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\" title=\"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()}

//--->