$(document).foundation() function mt(str,d,k) { if (str=="") { document.getElementById("text").innerHTML=""; return; } if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("text").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","./a.php?q=" + str + "&d=" + d + "&k=" + k,true); xmlhttp.send(); } function mt1(str,d,k) { if (str=="") { document.getElementById("text" + d + "").innerHTML=""; return; } if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("text" + d + "").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","./a.php?q=" + str + "&d=" + d + "&k=" + k,true); xmlhttp.send(); } function mt2(str,d,k) { if (str=="") { document.getElementById("text" + k + "").innerHTML=""; return; } if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("text" + k + "").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","./a.php?q=" + str + "&d=" + d + "&k=" + k,true); xmlhttp.send(); } function showClip(str) { if (str=="") { document.getElementById("clip").innerHTML=""; return; } if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("clip").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","getclip.php?q="+str,true); xmlhttp.send(); } function makePic(str,d) { if (str=="") { document.getElementById("pics").innerHTML=""; return; } if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("pics").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","afb.php?q=" + str + "&d=" + d,true); xmlhttp.send(); } function mm(str,d,k) { if (str=="") { document.getElementById("text").innerHTML=""; return; } if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("text").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","./m.php?q=" + str + "&d=" + d + "&k=" + k,true); xmlhttp.send(); }