/*BDDC Ver 1.4*/

	var blnAutoLinkState=false;

	function YD_DoLink(obj,target){
		var objWin=eval(target);			/*Ver 1.3 +B*/
		if (objWin==null){						/*Ver 1.4 +B*/
			objWin=window
		}									/*Ver 1.4 +E*/
		
		if (obj==null){						
			obj=event.srcElement;
		}					
		var strHref=obj.href;				/*Ver 1.3 +E*/
		
		if (strHref!=null && strHref!=""){	/*Ver 1.4 +B*/
			if(strHref.toLowerCase().indexOf("javascript:")>-1){
				//alert(obj.tagName);
				eval(strHref);			/*Ver 1.4.2*/ //the old is:window.document.location.href=strHref;
			}
			//else if (obj!=null){			/*Ver 1.4 -B*/
			//	eval(strHref);
			//}								/*Ver 1.4 -E*/
			else{
				window.document.location.href=strHref;
			}
		}									/*Ver 1.4 +E*/
	}
	
	function YD_ShowLink(obj,clrColor,intType){
		if (obj==null){						/*Ver 1.3 +B*/
			obj=event.srcElement;
		}									/*Ver 1.3 +E*/
		
		var CNTDftClr="#2C8300";
		obj.style.cursor="hand";
		obj.style.textDecoration='underline';
		if(intType==-1){
			clrColor=CNTDftClr;
		}
		else{
			if (clrColor==null){
				if(clrColor=="#" && obj.children[0]!=null){
					clrColor=obj.children[0].color;
				}
				else{
					clrColor=CNTDftClr;
				}
			}
		}
		
		if (obj!=null){
			obj.style.color=clrColor;
		}
	}
	
	function YD_HideLink(obj,clrColor){
		if (obj==null){					/*Ver 1.3 +B*/
			obj=event.srcElement;
		}								/*Ver 1.3 +E*/
		
		obj.style.cursor="default";
		obj.style.textDecoration='none';
		if(clrColor==null){
			clrColor="";
		}
		
		if (obj!=null){
			obj.style.color=clrColor;
		}
	}