var w8ing = "<img src='/interface/images/ajax-loader.gif' />";

function llload(url, target) {
 	if ( ! document.getElementById) {
  		return false;
 	}

 	if (w8ing != null) {
  		document.getElementById(target).innerHTML = w8ing;
 	}
	
 	if (window.ActiveXObject) {
  		pt = new ActiveXObject("Microsoft.XMLHTTP");
 	} else if (window.XMLHttpRequest) {
  		pt = new XMLHttpRequest();
 	}

 	if (pt == undefined) {
  		return false;
 	}
 	pt.onreadystatechange = function() { response(url, target); }
 	pt.open("GET", url, true);
 	pt.send(null);
}

function response(url, target) {
 	if (pt.readyState == 4) {
//		sleep(5000);
	 	document.getElementById(target).innerHTML = (pt.status == 200) ? pt.responseText : "" ;
	}
}
function sleep(milliseconds) {
  var start = new Date().getTime();
  for (var i = 0; i < 1e7; i++) {
    if ((new Date().getTime() - start) > milliseconds){
      break;
    }
  }
}


// function image load
function imageLoad(){ 
//if(document.getElementById("sticky").src){
	document.getElementById("lloading").style.display = 'none';
//	sleep(500);
	document.getElementById("sticky").style.display = '';
//}else{
//	document.getElementById("lloading").style.display = 'none';	
//}
//setInterval ("imageLoad()", 500);
} // end functin

