function newTag(objId,text) {
	var obj = $(objId);
	obj.popupDivID = objId+'Tag';
	obj.popupIframeID = objId+'TagIframe';
	var div = document.createElement('div');
	div.setAttribute('id',obj.popupDivID);
	div.setAttribute((document.all ? 'className' : 'class'),'yellowtag');
	div.innerHTML = text;
	var iframe = document.createElement('iframe');
	iframe.setAttribute('id',obj.popupIframeID);
	iframe.setAttribute((document.all ? 'className' : 'class'),'yellowtagiframe');
	iframe.setAttribute('src','/source/?m=blank');
	iframe.setAttribute('frameBorder',0);
	$('bodyTag').appendChild(div);
	$('bodyTag').appendChild(iframe);
	var popupDiv = $(obj.popupDivID);
	var popupIframe = $(obj.popupIframeID);
	if (popupDiv.offsetWidth > 300) {
		popupDiv.style.whiteSpace = 'normal';
		if( text.length <=10){
			popupDiv.style.width = '80px';
		}else{
			popupDiv.style.width = '300px';	
		}
	}
	popupIframe.style.width = popupDiv.offsetWidth + 'px';
	popupIframe.style.height = popupDiv.offsetHeight + 'px';
	var coors = getPos(obj);
	var top = coors[1] - popupDiv.offsetHeight - 2;
	popupDiv.style.top = top + 'px';
	popupIframe.style.top = top + 'px';
	coors[0] = coors[0] - ((popupDiv.offsetWidth - obj.offsetWidth) / 2);
	if (coors[0] + popupDiv.offsetWidth > 977) {
		coors[0] = 977 - popupDiv.offsetWidth;
	}
	popupDiv.style.left = coors[0] + 'px';
	popupIframe.style.left = coors[0] + 'px';
	
	if (typeof(obj) == 'object') {
		$(obj.popupDivID).className 	= 'yellowtag_firstLoad';
		$(obj.popupIframeID).className 	= 'yellowtag_firstLoad';

		if (obj.src != '') {  // object is image
			obj.onmouseover = function () {showTag(this);};
			obj.onmouseout = function () {hideTag(this);};
		} else if (obj.name != '') {  // object is form element
			obj.onfocus = function () {showTag(this);};
			obj.onblur = function () {hideTag(this);};
		}
	}
}
function showTag(obj) {
	$(obj.popupDivID).className = 'yellowtagover';
	$(obj.popupIframeID).className = 'yellowtagiframeover';
}
function hideTag(obj) {
	$(obj.popupDivID).className = 'yellowtag';
	$(obj.popupIframeID).className = 'yellowtagiframe';
}
