var xmlHttp
function next(start,next,flag)
{	
//alert (next)
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
		
	var url="next.php?start="+start+"&flag="+flag+"&next="+next+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}


function previous(start,previous,flag)
{	
//alert (previous)
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
		
	var url="next.php?start="+start+"&flag="+flag+"&previous="+previous+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged() 
{ 
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{	
				var div_id = "picdiv";
				document.getElementById(div_id).innerHTML=xmlHttp.responseText
			} 
}



function next11(start,str,flag)
{	
//alert (next)
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
		
	var url="next11.php?start="+start+"&flag="+flag+"&next="+str+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged11
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChanged11() 
{ 
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{	
				var div_id11 = "picdiv11";
				document.getElementById(div_id11).innerHTML=xmlHttp.responseText
			} 
}


function next2(start,next,flag)
{	
//alert (next)
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
		
	var url="next2.php?start="+start+"&flag="+flag+"&next="+next+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged2
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}


function previous2(start,previous,flag)
{	
//alert (previous)
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
		
	var url="next2.php?start="+start+"&flag="+flag+"&previous="+previous+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged2
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged2() 
{ 
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{	
				var div_id2 = "picdiv2";
				document.getElementById(div_id2).innerHTML=xmlHttp.responseText
			} 
}


function next22(start,str,flag)
{	
//alert (next)
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
		
	var url="next22.php?start="+start+"&flag="+flag+"&next="+str+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged22
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChanged22() 
{ 
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{	
				var div_id22 = "picdiv22";
				document.getElementById(div_id22).innerHTML=xmlHttp.responseText
			} 
}


function next33(start,str,flag)
{	
//alert (next)
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
		
	var url="next33.php?start="+start+"&flag="+flag+"&next="+str+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged33
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChanged33() 
{ 
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{	
				var div_id33 = "picdiv33";
				document.getElementById(div_id33).innerHTML=xmlHttp.responseText
			} 
}


function next3(start,next,flag)
{	
//alert (next)
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
		
	var url="next3.php?start="+start+"&flag="+flag+"&next="+next+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged3
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}


function previous3(start,previous,flag)
{	
//alert (previous)
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 	
		
	var url="next3.php?start="+start+"&flag="+flag+"&previous="+previous+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged3
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged3() 
{ 
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{	
				var div_id2 = "picdiv3";
				document.getElementById(div_id2).innerHTML=xmlHttp.responseText
			} 
}
/*function hide() 
{ 
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			{	
				var div_id = "picdiv";
				document.getElementById(div_id).innerHTML='';
			} 
}


*/

function GetXmlHttpObject()
{ 
			var objXMLHttp=null
			if (window.XMLHttpRequest)
			{
				objXMLHttp=new XMLHttpRequest()
			}
			else if (window.ActiveXObject)
			{
				objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
			}
			return objXMLHttp
}

