var myProcess

function GetXmlHttpObject(handler)
{ 
	var objXmlHttp=null
	
	if (navigator.userAgent.indexOf("Opera")>=0)
	{
		alert("This example doesn't work in Opera") 
		return 
	}
	if (navigator.userAgent.indexOf("MSIE")>=0)
	{ 
		var strName="Msxml2.XMLHTTP"
		if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
		{
			strName="Microsoft.XMLHTTP" 
		} 
		try
		{ 
			objXmlHttp=new ActiveXObject(strName)
			objXmlHttp.onreadystatechange=handler 
			return objXmlHttp
		} 
		catch(e)
		{ 
			alert("Error. Scripting for ActiveX might be disabled") 
			return 
		} 
	} 

	if (navigator.userAgent.indexOf("Mozilla")>=0)
		{
			objXmlHttp=new XMLHttpRequest()
			objXmlHttp.onload=handler
			objXmlHttp.onerror=handler 
			return objXmlHttp
		}
} 

/*function display_imagetabforindex() 
{ 
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		//alert(xmlHttp.responseText)
		document.getElementById("showcontent").innerHTML=xmlHttp.responseText;
	}
}

function display_contenttab() 
{ 
   if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
   {
	  document.getElementById("showcontent").innerHTML=xmlHttp.responseText;
   }
}


function display_blogtabs()
{
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		//alert(xmlHttp.responseText)
		document.getElementById("changediv").innerHTML=xmlHttp.responseText;
	}
}

function display_addvote()
{
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		var str = xmlHttp.responseText.split("####");
		document.getElementById(str[0]).innerHTML=str[1];
	}
}

function display_addcomments()
{
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("showmessage").innerHTML=xmlHttp.responseText;
	}
}*/

function Displaypostnews() 
{ 
   if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
   {
     str = xmlHttp.responseText;
	newhref = "http://www.mzs.co.in/showpostmessage.php?val="+str ;
	//$path="http://www.brandcatmedia.net/clients/mzs";
	//newhref = "http://www.brandcatmedia.net/clients/mzs/mzs1/showpostmessage.php?val="+str ;
	//alert(newhref);
	anchor = document.createElement('a');
	anchor.setAttribute('href', newhref);
	$(document).ready(function () {
  	$.fn.colorbox({width:"320px", height:"200px", href:""+newhref+"", open:true});
 
});

	return false; 
	
	 
   }
} 

function display_products()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("videocatlisting").innerHTML = xmlHttp.responseText ;
call_color();
}
}
function display_productsvideo()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("videocatlisting").innerHTML = xmlHttp.responseText ;
//document.getElementById("count_movie").innerHTML = "<b>"+str[1]+"</b>" ;
//callcolor();
}
}
function display_video()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("videocatlisting").innerHTML = xmlHttp.responseText ;
//document.getElementById("count_movie").innerHTML = "<b>"+str[1]+"</b>" ;
//callcolor();
}
}
function display_productspress()
{
	//alert("fdgdgfdgdf");
if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("videocatlisting").innerHTML = xmlHttp.responseText ;
//document.getElementById("count_movie").innerHTML = "<b>"+str[1]+"</b>" ;
//callcolor();
}
}
function display_productsnews()
{
	
if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("videocatlisting").innerHTML = xmlHttp.responseText ;
//document.getElementById("count_movie").innerHTML = "<b>"+str[1]+"</b>" ;
//callcolor();
}
}

function display_topics() 
{ 
   if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		//alert("fdgdgfdgdf");
		document.getElementById("show_topics").innerHTML = xmlHttp.responseText;
		
	}
} 

function display_topicsearch() 
{ 
   if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		
		document.getElementById("show_topics").innerHTML = xmlHttp.responseText;
		
	}
} 
function display_post() 
{ 
   if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		//alert("fdgdgfdgdf");
		document.getElementById("show_post").innerHTML = xmlHttp.responseText;
		
	}
} 

function displayCategory() 
{ 
   if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
	//alert("fdgdgfdgdf");
		document.getElementById("showCategory").innerHTML = xmlHttp.responseText;
		
	}
} 
function display_search() 
{ 
   if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		//alert(xmlHttp.responseText);
		str = xmlHttp.responseText.split("@@");
		//alert(str);
		document.getElementById("show_search").innerHTML = str[0] ;
		//alert(str[0]);
		
		//alert(str[1]);
	}
} 
function ShowHeadContent() 
{ 
   if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
	//alert("fdgdgfdgdf");
		document.getElementById("changecontent").innerHTML = xmlHttp.responseText;
		
	}
} 


