function SendForm( form, to ) {
	
	var str ="";
	for ( var j=0; j < form.elements.length; j++ ) {
	 	var element = form.elements[j];
        if (element.tagName == "INPUT") {	 	
	        if (element.type == "checkbox") {
	           if (element.checked) {
	              str += element.name + "=" + encodeURI(element.value) + "&";
	           }
	        } else if (element.type != "submit") {
        		str += element.name + "=" + encodeURI(element.value) + "&";
	        }
        } else if (element.tagName == "SELECT") {
        	if (element.selectedIndex >= 0)
            	str += element.name + "=" + encodeURI(element.options[element.selectedIndex].value) + "&";
        } else if (element.tagName == "TEXTAREA") {
            str += element.name + "=" + encodeURI(element.value) + "&";
        }       
	}	

	xmlHttp.open("post", to, true);
	
	xmlHttp.onreadystatechange=function() {
			if ( xmlHttp.readyState==4 ) {
				Stamp = new Date();	
				<!--  document.getElementById("save_state").innerHTML = "Az űrlap mentésre került ekkor: "+Stamp.getHours()+":"+Stamp.getMinutes();	-->			
			<!-- 	alert(xmlHttp.responseText); -->
			}
		}
			
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", str.length);
	xmlHttp.setRequestHeader("Connection", "close");
		
	xmlHttp.send(str);
	<!-- document.getElementById("save_state").innerHTML = "Ürlap mentése folyamatban..."; -->
	

}

setInterval('SendForm(document.getElementById("LeaForm"), document.location)',10000);

