All pastes #109412 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-08-01 01:41 UTC
rendered paste body
function kur() { // ACILAN 1
  try { // ACILAN 2
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }  catch (e) { // ACILAN 3
    try { // ACILAN 4
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) { // ACILAN 5
      xmlhttp = false;
    }
  }
  if ( !xmlhttp && typeof XMLHttpRequest != 'undefined' ) { // ACILAN 6
    try{ // ACILAN 7
    xmlhttp = new XMLHttpRequest();
    } catch(e) { // ACILAN 8
    xmlhttp = false;
  }
}
function makePOSTRequest(url, parameters) { // ACILAN 9
  kur();
  if (!xmlhttp) { // ACILAN 10
    alert('Hatayla karþýldý. Lütfen tekrar deneyin.');
    return false;
  }
  xmlhttp.open('POST', url, true);
  xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  xmlhttp.setRequestHeader("Content-length", parameters.length);
  xmlhttp.setRequestHeader("Connection", "close");
  xmlhttp.send(parameters);
}
function createQuery(form) { // ACILAN 11
  var elements = form.elements;
  var pairs = new Array();
  for (var i = 0; i < elements.length; i++) { // ACILAN 12
    if ((name = elements[i].name) && (value = elements[i].value))
    pairs.push(name + "=" + encodeURIComponent(escape(value)));
  }
  return pairs.join("&");
}
function get(obj) 
{ // ACILAN 13
  var poststr = unescape(createQuery(af));
  makePOSTRequest('inc/yorum_post.php', poststr);
}