var xmlHttpReq;
if(typeof XMLHttpRequest != 'undefined') 
{
  try 
  {
    xmlHttpReq = new XMLHttpRequest();
  } 
  catch(e) 
  {
	  try {
	    xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
	  } catch (e) {
	  try {
	    xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	    xmlHttpReq = false;
	  }
	 }
  }
}
else
{
  try {
	  xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
	try {
	  xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (E) {
	  xmlHttpReq = false;
	}
  }
}

var data = sendRequest("POST", "functions.php", "sender=sendRequest&type=nova_str&stranky=nevim");

function reloadNewTuts(predej)
{
  data = sendRequest("POST", "functions.php", "sender=sendRequest&type=nova_str&stranky="+predej);
  document.all['my_content'].innerHTML = data;
  return false;
}

function sendRequest(getOrPost, page, params)
{
  var strResult;
  if(getOrPost.toUpperCase() == "POST")
  {
    xmlHttpReq.open("POST", page, false);
    xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlHttpReq.send(params);
  }
  else
  {
    xmlHttpReq.open("GET", page + "?" + params, false);
    xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlHttpReq.send(null);
  }
  strResult = xmlHttpReq.responseText;
  return strResult;
}