// JavaScript Document
function showPanelT(box_id, target_id) {
	$(target_id).style.display = "block";
	$(box_id).href = "javascript:hiddenPanelT('" + box_id + "','" + target_id + "')";
}
function hiddenPanelT(box_id, target_id) {
	$(target_id).style.display = "none";
	$(box_id).href = "javascript:showPanelT('" + box_id + "','" + target_id + "')";
}

function showMenu(box_id, target_id, class_id) {
	
	$(target_id).style.display = "block";
	$(box_id).href = "javascript:hiddenMenu('" + box_id + "','" + target_id + "','" + class_id + "')";
	$(class_id).className ="show";
}
function hiddenMenu(box_id, target_id, class_id) {
	$(target_id).style.display = "none";
	$(box_id).href = "javascript:showMenu('" + box_id + "','" + target_id + "','" + class_id + "')";
	$(class_id).className =" hidden";
}

function showEditC(box_id, target_id, edit_id) 
{
	$(target_id).style.display = "none";
	$(edit_id).style.display = "block";
	$(box_id).href = "javascript:hiddenEditC('" + box_id + "','" + target_id + "','" + edit_id + "')";
}

function hiddenEditC(box_id, target_id, edit_id) 

{
	$(target_id).style.display = "block";
	$(edit_id).style.display = "none";
	$(box_id).href = "javascript:showEditC('" + box_id + "','" + target_id + "','" + edit_id + "')";
}

function showCommu(id,num){
	for(var i=1;i<=num;i++){
		$("commu_"+i).style.display = "none";	
		if($("commu_more_"+i))					
			$("commu_more_"+i).style.display = "none";
		$("on_"+i).className = "";
			
	}	
	$("commu_"+id).style.display = "block";
	if($("commu_more_"+id))	
		$("commu_more_"+id).style.display = "block";
	$("on_"+id).className = "onthis";
}
function loadUserInfo(uid,target_o,target_oid){
	target_o = target_o ? target_o : 1;
	var url = '/?m=pc&a=page_inc_common_userinfo';
	var pars = 'uid=' + uid + '&target_o='+target_o + '&target_oid='+target_oid;
	var myAjax = new Ajax.Updater('inc_com_userinfo',url,{method:'post',parameters: pars,evalScripts:true});
}
