var xmlHttp;
var xmlHttp2;
function getXmlHttpObject(){
	var objXMLHttp=null;
	if (window.XMLHttpRequest){
 		objXMLHttp=new XMLHttpRequest();
 	}
	else if (window.ActiveXObject){
 		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
 	}
 	return objXMLHttp;
}
//--------------Category List-----------------------------------------------------
function get_categories(){
	xmlHttp2=getXmlHttpObject();
	if(xmlHttp2==null){
		alert("You are using a too old browser. Please update the browser.");
		return;
	}
	else{
		var url="../scripts/pub_categories.php";
		xmlHttp2.onreadystatechange=show_categories;
		xmlHttp2.open("GET",url,true);
		xmlHttp2.send(null);
	}
}
function show_categories()
{
	if(xmlHttp2.readyState!=4){
		document.getElementById("pub_categories").innerHTML='Loading Categories...';	
	}
	if(xmlHttp2.readyState==4){		
	document.getElementById("pub_categories").innerHTML=xmlHttp2.responseText;		
	}
}
//--------------Publication List-----------------------------------------------------
function get_pub_list(pc_id){
	xmlHttp=getXmlHttpObject();
	if(xmlHttp==null){
		alert("You are using a too old browser. Please update the browser.");
		return;
	}
	else{
		var url="../scripts/pub_desc.php";
		url=url+"?pc_id="+pc_id;
		xmlHttp.onreadystatechange=show_pub_list;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}
}
function show_pub_list()
{
	if(xmlHttp.readyState!=4){
		document.getElementById("pub_desc").innerHTML='Loading list of publications...';	
	}
	if(xmlHttp.readyState==4){		
	document.getElementById("pub_desc").innerHTML=xmlHttp.responseText;		
	}
}
//--------------Publication List-----------------------------------------------------
function get_latest_pubs(){
	xmlHttp=getXmlHttpObject();
	if(xmlHttp==null){
		alert("You are using a too old browser. Please update the browser.");
		return;
	}
	else{
		var url="../scripts/latest_pub_desc.php";
		xmlHttp.onreadystatechange=show_latest_pubs;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	}
}
function show_latest_pubs()
{
	if(xmlHttp.readyState!=4){
		document.getElementById("pub_desc").innerHTML='Loading list of publications...';	
	}
	if(xmlHttp.readyState==4){		
	document.getElementById("pub_desc").innerHTML=xmlHttp.responseText;		
	}
}
function showMsg(){
	document.getElementById("pub_desc").innerHTML='<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td height="1" bgcolor="#CDCDCD"></td></tr><tr><td height="1"></td></tr><tr><td height="25" align="left" valign="middle" background="../about_us/images_about/h_back.jpg" style=" background-repeat:repeat-y"><table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC"><tr><td width="24" height="25" align="center" valign="middle"><img src="../resource_centre/images_resource/i_pub_icon.gif" width="12" height="13" /></td><td align="left" valign="middle" class="style1 style3">Knowledge Service Team</td></tr><tr><td height="1"></td></tr></table></td></tr><tr><td height="1"></td></tr><tr><td></td></tr><tr><td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" bgcolor="#E9E9E9"><table width="100%"  cellspacing="1" cellpadding="0"><tr><td  valign="top" bgcolor="#FFFFFF"><div id="one"><div id="one"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Asia Pacific Development Survey</strong></div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_apib.gif" style="border:1px;" /></div><div id="four"><br /><a href="http://www2.undprcc.lk/ext/APIB/" target="_blank">http://www2.undprcc.lk/ext/APIB/</a></div></div> <div id="Two"><hr size="1" style="color:#E9E9E9;"></div></div><div id="one"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inside Asia Pacific &shy; Development Bulletin</strong></div><div id="one">&nbsp;</div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_hunger.gif" style="border:1px;" /></div><div id="four">Combating Hunger &shy; A Seven Point Agenda</div><div id="four"><a href="http://hunger.undprcc.lk/insideap/" target="_blank">http://hunger.undprcc.lk/insideap/</a></div><div id="four"><a href="http://www2.undprcc.lk/resource_centre/pub_pdfs/P1088.pdf" target="_blank">Download pdf (14.0MB)</a></div></div><div id="one">&nbsp;</div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_climate_mdg.gif" style="border:1px;" /></div><div id="four">Climate Change and the MDGs in Asia Pacific: Challenges and Opportunities</div><div id="four"><a href="http://www.undprcc.lk/rcc%5Fweb%5Fbulletin/Issue2/" target="_blank">http://www.undprcc.lk/rcc%5Fweb%5Fbulletin/Issue2/</a></div></div><div id="one">&nbsp;</div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_mdg.gif" style="border:1px;" /></div><div id="four">Achieving the Millennium Development Goals in Asia and the Pacific</div><div id="four"><a href="http://www.undprcc.lk/rcc_web_bulletin/web_bulletin4/index.html" target="_blank">http://www.undprcc.lk/rcc_web_bulletin/web_bulletin4/index.html</a></div></div><div id="one">&nbsp;</div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_mdg_issue1.gif" style="border:1px;" /></div><div id="four">A Closer Look at Trade and Development in Asia and the Pacific</div><div id="four"><a href="http://www.undprcc.lk/rcc_web_bulletin/web_bulletin/bulletin1_s1.htm" target="_blank">http://www.undprcc.lk/rcc_web_bulletin/web_bulletin/bulletin1_s1.htm</a></div></div><div id="one">&nbsp;</div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_bulleting_march.gif" style="border:1px;" /></div><div id="four">A Closer Look at Gender and Human Development</div><div id="four"><a href="http://www.undprcc.lk/rcc_web_bulletin/webbulletin_march/bulletin1_s1.htm" target="_blank">http://www.undprcc.lk/rcc_web_bulletin/webbulletin_march/bulletin1_s1.htm</a></div></div><div id="one">&nbsp;</div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_mdg_issue2.gif" style="border:1px;" /></div><div id="four">A Closer Look at Poverty and HIV/AIDS Issues in Asia and the Pacific</div><div id="four"><a href="http://www.undprcc.lk/rcc_web_bulletin/bulletin_old/bulletin1_s1.htm" target="_blank">http://www.undprcc.lk/rcc_web_bulletin/bulletin_old/bulletin1_s1.htm</a></div></div><div id="one">&nbsp;</div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_mdg_issue4.gif" style="border:1px;" /></div><div id="four">Poverty Reduction through Localized Initiatives in Asia and the Pacific</div><div id="four"><a href="http://www.undprcc.lk/rcc_web_bulletin/Issue1/" target="_blank">http://www.undprcc.lk/rcc_web_bulletin/Issue1/</a></div></div><div id="Two"><hr size="1" style="color:#E9E9E9;"></div><div id="one"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compendium of Good Practices</strong></div><div id="one">&nbsp;</div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_poverty_mdg.gif" style="border:1px;" /></div><div id="four">Compendium of Good Practices &shy; Achieving the MDGs and Reducing Human Poverty</div><div id="four"><a href="http://www.undprcc.lk/Publications/popups/CGP_MDG.html" target="_blank">http://www.undprcc.lk/Publications/popups/CGP_MDG.html</a></div></div><div id="one">&nbsp;</div><div id="Two"><div id="left_b">&nbsp;</div><div id="three"><img src="images_resource/kst_poverty_hiv.gif" style="border:1px;" /></div><div id="four">Compendium of Good Practices &shy; Responding to HIV/AIDS</div><div id="four"><a href="http://www.undprcc.lk/Publications/popups/CGP_HIV.html" target="_blank">http://www.undprcc.lk/Publications/popups/CGP_HIV.html</a></div></div><div id="one">&nbsp;</div></td></tr></table></td></tr></table></td></tr></table></td></tr></table>';

}