﻿function openShutManager(oSourceObj,oTargetObj,shutAble,oOpenTip,oShutTip){
	var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
	var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
	var openTip = oOpenTip || "";
	var shutTip = oShutTip || "";
	if(targetObj.style.display!="none"){
		if(shutAble) return;
		targetObj.style.display="none";
		oSourceObj.className="ico_c";
		if(openTip && shutTip){
			sourceObj.innerHTML = shutTip;
		}
	} else {
		targetObj.style.display="block";
		oSourceObj.className="ico_o";
		if(openTip && shutTip){
			sourceObj.innerHTML = openTip;
		}
	}
}

