function showdiv(idiv,iphp)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    if(idiv != '') document.getElementById(idiv).innerHTML=xmlhttp.responseText;
			if(iphp.indexOf("&first=1") >= 0) showdiv('shownews2','ajax_navnews.php?page=1&c_id=2&first=2');	
			else  if(iphp.indexOf("&first=2") >= 0) showdiv('shownews3','ajax_navnews.php?page=1&c_id=3&first=3');	
			else  if(iphp.indexOf("&first2=1") >= 0) showdiv("shoik2","ajax_navindex.php?c_id=0&first2=2");	
			else  if(iphp.indexOf("&first2=2") >= 0) showdiv("shoik3","ajax_navindex3.php?c_id=0");	
	
    }
  else 
	{
	if(idiv != '') document.getElementById(idiv).innerHTML= '<div style="text-align:center"><center><img src="images/ajax-loader.gif" border=0></center></div>';
	}
  }
try{      
	xmlhttp.open("GET",iphp+'&rand='+Math.random(),true);
}catch(e){
    xmlhttp.open("GET",iphp+'&rand='+Math.random(),true);
}  
//xmlhttp.open("GET",iphp+'&pdsize='+pdsize+'&pdcolor='+pdcolor+'&pdea='+pdea+'&rand='+Math.random(),true);
xmlhttp.send();
}
