var xmlhttp;
var returnobject;



function puanla(puan,id)
{
var Tablo='download';
var params='tablo='+Tablo+'&id='+id+'&puan='+puan;
go('/incfiles/puanla.asp?'+params,'');
alert('Puanlama yapılmıştır, '+puan+' puan verdiniz. \nTeşekkür ederiz.'); 
}

function objdisplay(obj,statu)
{
  if (statu==true){
      document.getElementById(obj).style.display="inline";
      }
    
  if (statu==false){
      document.getElementById(obj).style.display="none";
      }
}


function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}


var httpReceive = getHTTPObject();

function go(url,containerid) 
{
   
	window.document.body.style.cursor = 'wait';
    returnobject=containerid;
	if (httpReceive.readyState == 4 || httpReceive.readyState == 0) 
	{
  	  httpReceive.open("GET", url, true);
  	  httpReceive.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=iso-8859-9');
      httpReceive.onreadystatechange = StateChange; 
  	  httpReceive.send(null);   
    }

}
 
  function StateChange() 
{
    

      if (httpReceive.readyState == 4) 
      {
         if (httpReceive.status == 200) 
         { 
              if(returnobject)
              {
                   window.document.getElementById(returnobject).style.display="inline"; 
                   window.document.getElementById(returnobject).innerHTML=httpReceive.responseText;
              }   
         window.document.body.style.cursor = 'default';  
         return true
         } 
         else
         return false
      }
    
  }







