Salve sto impazzendo
Ho hatto una pagina ASP che dinamicamente esegue delle operazioni che sono descritte in un file di script esterno.
Alcune funzioni sono eseguite correttamente almeno fino ad ora vedi [getsectordate(), getdate(), etc] .
Poichè nella form ci sono più button ed ognuno deve impostare dei valori prima di riesegure la pagina ASP ho scritto una function parametrizzata [btnck(option)] che dovrebbe fare le previste impostazioni.
Fino a ieri funzionava ottimamente, da stamani, dopo che ho implementato la pagina ASP con ulteriori contenuti, non va più la btnck(option), il brewser (IE 7) mi segnala che non trova l'oggetto 'btnck()'

Premetto che ho un'editor di testo che mi consente di verificare le coppie di parentesi e risultano essere corrette.

Questa è nella pagina ASP

codice:
<HEAD>
<link rel="stylesheet" Type="text/css" href="/ntf2013/include/TonLine.css">
<script type="text/javascript" language="javascript" src="/ntf2013/script/frmchkman.js">
</script>
</HEAD>
......

 

<tr><td colspan=3>
<input type=button class=btnstyle value="Indietro" onclick="btnck(4)">
<input type=button class=btnstyle value="Continua" onclick="btnck(3)">
</td></tr>
Questo il contenuto del file di script.

codice:
	function getsectordate()
	{
		aa=document.getElementById("S200").value;
		if (aa != 0)
			{
			ID_DATA=parseInt(aa);
			document.getElementById("T100").value=ID_DATA;
			frmposti.submit();
			}
	}
	function getdate()
	{
		aa=document.getElementById("S201").value;
		if (aa != 0)
			{
			ID_MAN = parseInt(aa);
			UrlOUT="frmrepliche.asp?IDMAN=" + ID_MAN;
			window.open (UrlOUT,"_self");
			window.status=UrlOUT;
			}
	}

	function getsectorprice()
	{
		aa=document.getElementById("S202").value;
		if (aa != 0)
			{
			ID_SETT = parseInt(aa);
			document.getElementById("T102").value=ID_SETT;
            frmposti.submit();
			}
	}


	function bttype(index,valore)
	{
      var aa,ii,jj,tt;
      ii=0;jj=1;
      //window.status=valore;
      tt=parseInt(valore);

      for (ii=0;;ii++)
      {
          aa=document.getElementById("CKB"+ii);
          if (aa==null){jj=0;break};
          if (jj==1)
           {document.getElementById("CKB"+ii).checked=false;}
      }
      document.getElementById("CKB"+index).checked=true;
      window.status=ii;

   }

	function SSped(valore,Opt)
	{
	var aa;
	document.getElementById("600").innerHTML="" + formatCurrency(valore) + "";
	document.getElementById("T304").value=Opt;
	}
	
	function formatCurrency(num) 
  {
	num = num.toString().replace(/\€|\,/g,'');
	if(isNaN(num))
 	        num = "0";
	sign = (num == (num = Math.abs(num)));
	num = Math.floor(num*100+0.50000000001);
	cents = num%100;
	num = Math.floor(num/100).toString();
	if(cents<10)
	        cents = "0" + cents;
	for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
	            num = num.substring(0,num.length-(4*i+3))+','+ num.substring(num.length-(4*i+3));
	return (((sign)?'':'-') + '€ ' +  + num + ',' + cents);
	}

    function btnck(option)
    {
      var aa=parseInt(option,10);
      window.status=aa;
      if (aa==0)
      {
        if (document.getElementById("T108").value!=0)
        {
         document.getElementById("T110").value=document.getElementById("T100").value;
         document.getElementById("T109").value=document.getElementById("T103").value;
         document.getElementById("T111").value=document.getElementById("T102").value;
        }
        document.getElementById("T100").value="0";
        document.getElementById("T102").value="0";
        document.getElementById("T103").value="0";
        frmposti.submit();
      }
      
      if (aa==1)
      {
        frmposti.action="frmselabb.asp";
        frmposti.submit();
      }
      
      if (aa==3)
      {frmposti.action="frmacqanag.asp";
       frmposti.submit();}
       
      if (aa==4)
      { document.getElementById("T101").value="4";
        document.getElementById("T100").value="0";
        document.getElementById("T102").value="0";
        document.getElementById("T103").value="0";
       //frmposti.submit();
       }

    }
Qualcuno sa darmi una dritta .
Grazie