//---------------------------------------------------------
function getXmlHttp(){
  var xmlhttp;
  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();
  }
  return xmlhttp;
}
//---------------------------------------------------------
var xmlhttp = getXmlHttp()

function gladi(kd3)
{
xmlhttp.open('GET', '123.php?name='+kd3, true);
xmlhttp.onreadystatechange = function() {
  if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
      // alert(xmlhttp.responseText);
         }
  }
};
xmlhttp.send(null);
} //dladi
//---------------------------------------------------------

//----------------------------------------------------
window.onload = function() {
/* 
 var linkWithAlert = document.getElementById("alertLink");
    linkWithAlert.onclick = function() {
      //  return true;
	var tt=1;
	while (tt)
		{tt= !confirm('SDSDSDSD');}
		return false;
}	
*/
// - - - - - - - - - - - - - - - - - - - - - - - - 		
var lists=document.getElementsByTagName('*');
var leng=lists.length;
//messageWindow('12345',leng);		
//alert ('found === ' +leng);
		
for (var t=0;t<leng; t++)
	{
	if (lists[t].className=="stule1" ||
	lists[t].className=="stule2" ||
	lists[t].className=="stule3" ||
	lists[t].className=="stule4" ||
	lists[t].className=="stule5"
	)
		{
		  lists[t].onclick=function()
		{
		var poni = this.id;
		gladi(poni);
		return true; //false;
			  }
			  ;
			 }
 			// alert ("555" + lists[t].className);
 			}

 };




