var d = document;  
var offsetfromcursorY=22 // y offset of tooltip  
	var ie=d.all && !window.opera;  
	var ns6=d.getElementById && !d.all;  
	var tipobj,op;  
	 
	////////////////////////////////////////////////////////////////////////////////////  
	          
	function tooltip(el,txt)  
	{  
    tipobj=d.getElementById('mess');  
	    tipobj.innerHTML = txt;  
   		 op = 0.1;     
	    tipobj.style.opacity = op;   
	    tipobj.style.visibility="visible";  
	    el.onmousemove=positiontip;  
	    appear(0.89);  
	
	}  
	
	 
	function hide_info(el)  
	{  
	    d.getElementById('mess').style.visibility='hidden';  
	  //  el.onmousemove='';  
	}  
	 
	function ietruebody(){  
	return (d.compatMode && d.compatMode!="BackCompat")? d.documentElement : d.body  
	}  
	 
	function positiontip(e)  
	{  
	    var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;  
	    var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;  
	    var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20  
	    var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20  
	      
	    var rightedge=ie&&!window.opera? winwidth-event.clientX : winwidth-e.clientX;  
	    var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY;  
	 
	    if (rightedge<tipobj.offsetWidth)   tipobj.style.left=curX-tipobj.offsetWidth+"px";  
        else tipobj.style.left=curX+"px";  
	 
	    if (bottomedge<tipobj.offsetHeight) tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"  
	    else tipobj.style.top=curY+offsetfromcursorY+"px";  
	}  
	 

	
	function appear(alp)    
	{     
	
	    if(op < alp)   
	    {  
	        op += 0.1;  
	        tipobj.style.opacity = op;  
	        tipobj.style.filter = 'alpha(opacity='+op*100+')';  
	        t = setTimeout("appear("+alp+")", 30);  
	    }  

	}  


	function my_select(id,value)
	{
		var select_obj=document.getElementById(id).options;
		
		for (var i=0; i<select_obj.length;i++)
		{
			
			if (select_obj[i].value==value	) select_obj[i].selected=1;
		}
		
		
	}
	


