function ajax(action,val,nr)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  alert("Your browser does not support XMLHTTP!");
  }
  document.getElementById('Table_01').style.opacity='0.1';
  document.getElementById('Table_01').style.filter = "alpha(opacity=10)";
  document.getElementById('wait').innerHTML='<img src="main/wait.gif" class="wait" alt="" />';
  //document.write('hm');
  //document.close();
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
  //document.getElementById('bla').innerHTML=xmlhttp.responseText;
  document.write(xmlhttp.responseText);
  document.close();
  document.getElementById('Table_01').style.opacity='1';
  document.getElementById('Table_01').style.filter = "alpha(opacity=100)";
  }
}
var link = "index.php?action="+action+"&ptf="+val+"&nr="+nr;
xmlhttp.open("GET",link,true);
xmlhttp.send(null);
}











function ajax2()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  alert("Your browser does not support XMLHTTP!");
  }
  document.getElementById('bla').innerHTML='hm';
  //document.write('hm');
  //document.close();
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
  //document.getElementById('bla').innerHTML=xmlhttp.responseText;
  document.write(xmlhttp.responseText);
  document.close();
  }
}
var link = "b.php";
xmlhttp.open("GET",link,true);
xmlhttp.send(null);
}