functionajax(){
varxmlhttp;
if(window.XMLHttpRequest){
xmlhttp=newXMLHttpRequest();
}else{
xmlhttp=ActionXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4&&xmlhttp.status==200){
document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
varxmlDoc=xmlhttp.responseXML;
vartxt="";
varnum=xmlDoc.getElementsByName("value");
for(vari=0;i<num.length;i++){
txt=txt+num[i].childNodes[0].nodeValue+"<br/>";
}
document.getElementById("myDiv2").innerHTML=txt;
}
}
xmlhttp.open("Get","url"+
(function(){
vardate=newDate();
returndate.getSeconds();
})
,true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send();
}