with(document){
				write("<Div id='toolTip'  style='POSITION:absolute;visibility:hidden;border:0px ridge;width:10;z-index:100;'>");
				write(" <table cellSpacing=1   width='100%'  cellPadding=0  border=0 bgcolor='#000000' >						            ");
				write(" <tr bgcolor='ffffff'>	 ");
				write(" <td  id='disText' style='font-weight:normal;font-size:11;font-family:Arial' ></td>		    ");
				write(" </tr></table></Div>");															 
			}	
			
		function hideToolTip(){
			with (toolTip.style) {
				visibility = 'hidden';
			}
		}		
		function toolTipText(cap){
			disText.innerText=cap;
			event.srcElement.style.cursor='hand';
			with (toolTip.style) {
				left = event.x;
				top  = event.y+17;
				visibility = 'visible';
			}
		}
		
	
document.write("<div id='popup'  style='POSITION:absolute;visibility:visible;border:0px ridge;width:100;height:10;z-index:300;' >");
document.write("</div>");
var inHtml="";
	function showPopUp(cont){
		showPopUpHow('',cont,'RB');
	}
	function showPopUpTit(tit,cont){
		showPopUpHow(tit,cont,'RB','no');
	}
	function showPopUpHow(tit,cont,how,hide){
		var scrollY=0;var scrollX=0;
		if(!(document.body.scrollTop==null ||document.body.scrollTop=='undefined'))
			scrollY=document.body.scrollTop;
		if(!(document.body.scrollLeft==null ||document.body.scrollLeft=='undefined'))
			scrollX=document.body.scrollLeft;	
		if(hide=='yes') popupHideCombo();
		if(!(how=='LB'||how=='RB'||how=='LT'||how=='RT')||how=='')
			 how="RB";
			event.srcElement.style.cursor='hand';
			popup.innerHTML=getInnerHtml(tit,cont);
			var x=event.x;
			var y=event.y;
			var xDif=event.x+popup.offsetWidth+20-document.body.offsetWidth;
			var yDif=event.y+popup.offsetHeight+27-document.body.offsetHeight;
			if(how=='RB'){
				if(xDif>0) x=x-popup.offsetWidth;
				if(yDif>0) y=y-popup.offsetHeight-17;
			}else if(how=='RT'){
				if(xDif>0) x=document.body.offsetWidth-popup.offsetWidth-20;
				if(yDif>0) y=y-popup.offsetHeight-17;
				else y=y-34;
			}else if(how=='LB'){
				if(popup.offsetWidth>x)
					x=0;
				else 
					x=x-popup.offsetWidth;
				if(yDif>0)
					 y=document.body.offsetHeight-17-popup.offsetHeight;
			}else if(how=='LT'){
				if(popup.offsetWidth>x)	
					x=0;
				else x=x-popup.offsetWidth;
				if(popup.offsetHeight>y)
					 y=-17;
				else y=y-popup.offsetHeight-20;	
			}
			if(x<=0)x=0;	
			if(y<=0)y=0;
			with (popup.style) {
				cursor='hand';
				left =x+scrollX;
				top  =y+17+scrollY;
				visibility  = 'visible';
			}
	}
	function hidePopUp(){
		inHtml='';
		popup.style.visibility  = 'hidden';
		popup.style.width=10;
		popupShowCombo();
	}
	function getInnerHtml(tit,cont){
		if(inHtml!=''){ 
		return inHtml;}
		if(tit!='')
			tit='<tr>'+
					'<td width="100%" bgcolor=D6E6FC>'+
						'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
							'<tr>'+
								'<td width="100%" nowrap align="center">'+
									'<font class="sb2">&nbsp;'+tit+'</font>'+
								'</td>'+
							'</tr>'+
						'</table>'+
					'</td>'+
				'</tr>';
					
		inHtml = '<table border="0" width="100" cellspacing="0" cellpadding="0" >'+
					'<tr>'+
						'<td width="100%" bgcolor="#000000">'+
							'<table border="0" width="100%" cellspacing="1" cellpadding="2" bgcolor="CCCCCC">'+tit+
									'<td width="100%" bgcolor="FFFFFF">'+
										'<table border="0" width="90%" cellpadding="2" cellspacing="1" align="center">'+
											'<tr>'+
												'<td width="100%" nowrap>'+
													'<font class="sb2">'+cont+'</font>'+
												'</td>'+
											'</tr>'+
										'</table>'+
									'</td>'+
								'</tr>'+
							'</table>'+
						'</td>'+
					'</tr>'+
				'</table>';

		return inHtml;
	}		
	var m_lstTr=null;
	function changeColor(tr){
			if(m_lstTr!=null){
				m_lstTr.style.backgroundColor='FFFFFF';
			}
			m_lstTr=tr;
			tr.style.backgroundColor='99FFFF';
	}
	function popupHideCombo(){
		var m=1;
		while (document.getElementById("awmobject"+m)){
			document.getElementById("awmobject"+m).style.visibility="hidden";m++;
		}
	}
	function popupShowCombo(){
		var m=1;
		while (document.getElementById("awmobject"+m)){
			document.getElementById("awmobject"+m).style.visibility="visible";m++;
		}
}

		
