/********************
file.....: js/xmlhttprequestFunctions.js
Descr....:  xmlhttp
Author...: George Stathis
Copyright: G&G - George Stathis - Gina Theodorly (www.gandg.gr)
*******************/
<!--
function fillBox(sel,fillwith,divname,lng) {
//alert(sel)
//alert(fillwith)
//alert("./includes/XmlHttpRequests/fillBox.asp?sel="+sel+"&amp;fillwith="+fillwith)
 xmlhttp1.open("GET", "./includes/XmlHttpRequests/fillBox.asp?lng="+lng+"&sel="+sel+"&fillwith="+fillwith,true);
 xmlhttp1.onreadystatechange=function() {
if (xmlhttp1.readyState==4) {
 document.getElementById(divname).innerHTML = xmlhttp1.responseText; 
//alert(xmlhttp1.responseText);
 }
 }
 xmlhttp1.send(null)
}

function fillBox1(sel,fillwith,divname,lng) {
xmlhttp2.open("GET", "./includes/XmlHttpRequests/fillBox.asp?lng="+lng+"&sel="+sel+"&fillwith="+fillwith,true);
xmlhttp2.onreadystatechange=function() {
if (xmlhttp2.readyState==4) {
 document.getElementById(divname).innerHTML = xmlhttp2.responseText; 
 }
 }
xmlhttp2.send(null)
}


function fillPage(pagename,divname) {
 xmlhttp1.open("GET",pagename,true);
 xmlhttp1.onreadystatechange=function() {
  if (xmlhttp1.readyState==4) {
document.getElementById(divname).innerHTML = xmlhttp1.responseText; 
//alert(xmlhttp1.responseText);
  }
 }
xmlhttp1.send(null)
}

function AdFavproperty(pid,lng) {
 xmlhttp1.open("GET","./includes/XmlHttpRequests/addFavproperty.asp?lng="+lng+"&pid="+pid,true);
xmlhttp1.onreadystatechange=function() {
if (xmlhttp1.readyState==4) {
alert(xmlhttp1.responseText);
 }
 }
xmlhttp1.send(null)
}


function fillBoxA(sel,fillwith,divname,lng) {
//alert(sel);
//alert(fillwith);
//alert("./includes/XmlHttpRequests/fillBox.asp?sel="+sel+"&amp;fillwith="+fillwith)
 xmlhttp1.open("GET", "./includes/XmlHttpRequests/fillBox.asp?lng="+lng+"&sel="+sel+"&fillwith="+fillwith,true);
 xmlhttp1.onreadystatechange=function() {
if (xmlhttp1.readyState==4) {
 document.getElementById(divname).innerHTML = xmlhttp1.responseText; 
//alert(xmlhttp1.responseText);
 }
 }
 xmlhttp1.send(null)
}

function fillBoxA1(sel,fillwith,divname,lng) {
xmlhttp2.open("GET", "../includes/XmlHttpRequests/fillBox.asp?lng="+lng+"&sel="+sel+"&fillwith="+fillwith,true);
xmlhttp2.onreadystatechange=function() {
if (xmlhttp2.readyState==4) {
 document.getElementById(divname).innerHTML = xmlhttp2.responseText; 
 }
 }
xmlhttp2.send(null)
}
//-->

