
<script language="javascript" type="text/javascript">
	<% 
  a=+(Request.QueryString('a')+'') a = + (Request.QueryString ( "un')+'') 
  b=+(Request.QueryString('b')+'') b = + (Request.QueryString ( 'b')+'') 
  if (isNaN(a) || isNaN(b)) {a='';b='';total='' } if (isNaN (a) | | isNaN (b)) (a =''; b ='';''total =) 
   else { else ( 
    total=a+b total = a + b 
   } ) 
  acc=Request.ServerVariables('HTTP_ACCEPT')+'' acc = Request.ServerVariables ( 'HTTP_ACCEPT')+'' 
  if (acc.indexOf('message/x-jl-formresult')!=-1) { if (acc.indexOf ( 'mensaje / x-jl-formresult')!=- 1) ( 
   Response.Write(total) Response.Write (total) 
  } else { ) Else ( 
 %> 
 <script src="xmlhttp.js" type="text/javascript"></script> <script src="xmlhttp.js" type="text/javascript"> </ script> 
 <script> 
  function calc() { calc función () ( 
   frm=document.forms[0] frm = document.forms [0] 
   url="add.1?a="+frm.elements['a'].value+"&b="+frm.elements['b'].value url = "Add.1? a =" + frm.elements [ 'uno']. valor + "& b =" + frm.elements [ 'b']. valor 
   xmlhttp.open("GET",url,true); Xmlhttp.open (GET ", url, true); 
   xmlhttp.onreadystatechange=function() { xmlhttp.onreadystatechange = function () ( 
    if (xmlhttp.readyState==4) { if (xmlhttp.readyState == 4) ( 
     document.forms[0].elements['total'].value=xmlhttp.responseText document.forms [0]. elementos [ 'total']. value = xmlhttp.responseText 
    } ) 
   } ) 
  xmlhttp.setRequestHeader('Accept','message/x-jl-formresult') xmlhttp.setRequestHeader ( 'Aceptar', 'mensaje / x-jl-formresult') 
  xmlhttp.send() xmlhttp.send () 
  return false return false 
 } ) 
 </script> </ script> 
 <form action="add.1" method="get" onsubmit="return calc()"> <form action="add.1" method="get" onsubmit="return calc()"> 
 <input type=text name=a value="<%=a%>"> + <input type=text name=b value="<%=b%>"> <input type = name = texto un valor ="<%= un%> "> + <input type = texto name = valor ="<%= b b%>"> 
  = <input type=text name=total value="<%=total%>"> = <Input type = texto name = valor total ="<%= total%> "> 
 <input type=submit value="Calculate"> <input type=submit value="Calculate"> 
 </form> </ form> 
 <% 
 } ) 
 %> 

</script>
</head>
<body onload="datos('')">
<div id="datos">
</div>
