
// *************************************************************
// link.js
// funzioni javascript - Link a nuovi url
// *************************************************************

// -------------------------------------------------------------
// controllo evento selezione
// -------------------------------------------------------------
   function new_action(nome_form,campi_hidden,parm_win)
   {
            var New_url;

            New_url ='<html>';
			New_url+='<head><title>Pagina in caricamento</title></head>';
			New_url+='<body bgcolor="#ffffff">';
			New_url+='<br><font size="1" face="Verdana, Arial, Helvetica, sans-serif">';
			New_url+='Pagina in caricamento: <b><font color="#003366">Attendere prego</font></b></font>';
            New_url+='<form action="' + nome_form + '.php" method="post" name="' + nome_form + '">';
            New_url+=campi_hidden;
            New_url+='</form>';
			New_url+='</body>';
			New_url+='</html>';

			if (parm_win!='')
			{
                     New_win=window.open('', nome_form, parm_win); 
                     New_win.moveTo(0,0);
		             New_win.focus();
 			         New_win.document.writeln(New_url); 
                     New_win.document.forms[nome_form].submit();
			} else {
				     document.open('text/html','replace');
 			         document.writeln(New_url);
                     document.forms[nome_form].submit();
			}

}

