function submitForm(login,pass){
    //alert("entranced "+login+" -> "+pass);
	var xhr=null;

   try
   {
     xhr = new XMLHttpRequest(); 
   } catch(e)
   { 
     try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); } 
     catch (e2)
    { 
       try { xhr = new ActiveXObject("Microsoft.XMLHTTP"); } 
       catch (e) {}
    }
  }

  xhr.onreadystatechange = function()
   { 
     document.getElementById("menubar-right").innerHTML = "Wait server...";                
     if(xhr.readyState == 4)
     {
        if(xhr.status == 200)
        { 
             //document.ajax.dyn.value = xhr.responseText; 
             document.getElementById("menubar-right").innerHTML = xhr.responseText; 
        } 
       else 
        { 
              document.getElementById("menubar-right").innerHTML = "Error: returned status code " + 
                   xhr.status + " " + xhr.statusText; 
       } 
    } 
 }; 

 xhr.open("GET", "../login.php?login="+login+"&pass="+pass, true);                
 xhr.send(null); 
}
