function GetData(objID,dt){
/*
var xmlhttp = false;
try {
	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
	try {
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (E) {
	xmlhttp = false;
	}
    }
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
	xmlhttp = new XMLHttpRequest();
	}

	var obj = document.getElementById(objID);
	xmlhttp.open("GET", "data.php?data="+dt);
	xmlhttp.onreadystatechange = function() {
	if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
	obj.innerHTML = xmlhttp.responseText;
	}
	}
	xmlhttp.send(null); */ 
	holder=document.getElementById(objID); //wrap around div
	holder.innerHTML=""; //unisti prethodne html-ove
    IF=document.createElement('iframe');  // iframe is created in the DOM
    IF.setAttribute('height', 800);  // simple DOM methods
    IF.setAttribute('width', 650);
    IF.setAttribute('frameborder', 0);
    IF.setAttribute('scrolling', 'auto');	
    IF.setAttribute('align', 'left');		
    IF.setAttribute("src", "data.php?data="+dt);
    holder.appendChild(IF); //
}


