
function sendit(p) {
var str = "p=" + p;
ajx(str);
}

function ajx(str)

    {

var url = "http://www.layoutcodez.net/creative/ajx.php";		
// code for Mozilla, etc.
	if (window.XMLHttpRequest)
	{
		xmlhttp2=new XMLHttpRequest();
		xmlhttp2.onreadystatechange = ajChange;
		xmlhttp2.open("POST", url, true);
		xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
		xmlhttp2.send(str);
	}
	// code for IE
	else if (window.ActiveXObject)
	{
		xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP");
		if (xmlhttp2)
		{
			xmlhttp2.onreadystatechange = ajChange;
			xmlhttp2.open("POST", url, true);
			xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
			xmlhttp2.send(str);
		}
	}
      

    }

function ajChange()
{

if (xmlhttp2.readyState==4)
  {
  if (xmlhttp2.status==200)
    {
var now = new Date();
data = xmlhttp2.responseText;
document.getElementById("ffill").innerHTML = "<input type=\"button\" name=\"Previous\" value=\"Previous\" style=\"color:#990000; font-weight:bold;\" onclick=\"sendit(0)\"><br />" + data;
}
}
}
