var xmlHttp var xmlHttp1 function prevedi(str) { document.getElementById('rezultat').innerHTML='                                                                                '; xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } var url="engleskosrpski.php" url=url+"?rec="+str xmlHttp.onreadystatechange=stateChanged xmlHttp.open("POST",url,true) xmlHttp.send(null) } function prevedi1(str) { document.getElementById('rezultat1').innerHTML='                                                                '; xmlHttp1=GetXmlHttpObject1() if (xmlHttp1==null) { alert ("Browser does not support HTTP Request") return } var url="srpskoengleski.php" url=url+"?rec="+str xmlHttp1.onreadystatechange=stateChanged1 xmlHttp1.open("POST",url,true) xmlHttp1.send(null) } function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById("rezultat").innerHTML=xmlHttp.responseText } } function stateChanged1() { if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete") { document.getElementById("rezultat1").innerHTML=xmlHttp1.responseText } } function GetXmlHttpObject() { var objXMLHttp=null if (window.XMLHttpRequest) { objXMLHttp=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp } function GetXmlHttpObject1() { var objXMLHttp1=null if (window.XMLHttpRequest) { objXMLHttp1=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp1=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp1 }