// update : 2006-07-10
function runajax(fd,wgrp,mpart,lxid,type)
{
	if(fd)
	{
		params = 'FD='+fd+'&wgrp='+wgrp+'&mpart='+mpart+'&LxID='+lxid+'&type='+type;
		new ajax.ApmSoftNet.REQ('../../libraries/webgroup.php',params,webgroupList,'GET','webgroup');
	}
}
function webgroupList(reqs)
{
	var outhtml= '';
	var xmlDoc = '';
	var xmlDoc = reqs.responseXML;
	
	var chkcode = xmlDoc.getElementsByTagName('chkcode').item(0).firstChild.nodeValue;

	if(chkcode == 'Y')
	{
		var webgrp_title = xmlDoc.getElementsByTagName('titleimg').item(0).firstChild.nodeValue;
		var webgrp_str = xmlDoc.getElementsByTagName("titlestr").item(0).firstChild.nodeValue;
		var webgrp_contents = xmlDoc.getElementsByTagName("contents").item(0).firstChild.nodeValue;

		webgrp_title = str_replace('#169;', '&', webgrp_title);
		webgrp_str = str_replace('#169;', '&', webgrp_str);
		webgrp_contents = str_replace('#169;', '&', webgrp_contents);
		
		outhtml += webgrp_contents;
		this.printMsg(outhtml);
	
		printDiv(webgrp_title,'tbar');
		printDiv(webgrp_str,'tbstr');
	}
}