function $(sID){ 
	try{ 
		return document.getElementById(sID);
	}catch (e){
	};
};

//UNSAP Show
function fucUnSapShow(){
	var oObj = document.getElementById("UNSAPShow") ;
	if (oObj.style.display == "none"){
		oObj.style.display = "block";
		document.getElementById("UNSAPShowButton").style.display = "none";
	}else{
		oObj.style.display = "none";
		document.getElementById("UNSAPShowButton").style.display = "block";
	};
};

// Input[Text] Default Value
function fucInputBoxDefaultValue(sId, sValue){
	if ( !document.getElementById(sId) ) return false;
	var oObj = document.getElementById(sId);
	oObj.onfocus = function(){ if (oObj.value == sValue){_User();}; this.select(); };
	oObj.onblur = function(){ if (oObj.value == ""){ _Init(); }; };
	function _Init(){ oObj.value = sValue; oObj.style.textAlign = "center"; oObj.style.color = "#aaa"; };
	function _User(){ oObj.value = ""; oObj.style.color = ""; oObj.style.textAlign = ""; };
	_Init();
};// <script type="text/javascript">fucInputBoxDefaultValue("TextKeyword", "请输入您所要搜索的关键字");</script>

// Alert
function fucAlertOver(sId, sClassName, sTxt){
	if(document.all){
		if(document.readyState!="complete") return false;
	}
	if ( !$(sId) ) {
		return false;
	}
	if ( $("idAlert_"+ sId) ) {
		return false;
	}
	var oAlert = document.createElement("div"); 
	oAlert.id = "idAlert_"+ sId; 
	oAlert.className = sClassName;
	var oStrong = document.createElement("strong"); 
	oStrong.innerHTML = sTxt; 
	oAlert.appendChild(oStrong);
	document.getElementsByTagName("body").item(0).appendChild(oAlert);
}
function fucAlertMove(evt,sId){
	if(document.all){
		if(document.readyState!="complete") return false;
	}
	if ( !$(sId) ) return false;
	var x = 0, y = 0;
	if ( document.all ){
		x = (document.documentElement && document.documentElement.scrollLeft) ? document.documentElement.scrollLeft : document.body.scrollLeft; x += window.event.clientX;
		y = (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop; y += window.event.clientY;
	}else{ x = evt.pageX; y = evt.pageY; };
	var tarObj = $("idAlert_"+ sId);
	if(tarObj){
		tarObj.style.left = (x-45) +"px"; 
		tarObj.style.top = (y-60)+"px";
		tarObj.style.display = "block";
	}
}
function fucAlertOut(sId){
	if(document.all){
		if(document.readyState!="complete") return false;
	}
	var tarObj = $("idAlert_"+ sId);
	if(tarObj){
 		tarObj.style.display = "none";
 	}
}