var str2=new Array();
str2="";

   function Show(str,evt,toppos1,leftpos)
    {

		str2=str;
		objmain=document.getElementById('divhelp');
		objinner=document.getElementById('Popup');
		
		objmain.innerHTML=str2;

					
        /* get the mouse left position */
        x = evt.clientX + document.body.style.left ;
        
		/* get the mouse top position  */
        y = evt.clientY + document.body.scrollTop - toppos1;
        
		

        /* set the pop-up's left */
        objinner.style.left = x-leftpos;
        /* set the pop-up's top */
        objinner.style.top = y;
		objinner.style.display="block";
		objmain.innerHTML=str2;
		/* display the pop-up */
        
		opacity('Popup',0,85,350);
    }
	
	 function Show2(str,evt,toppos1,leftpos)
    {

		str2=str;
		objmain=document.getElementById('divhelp');
		objinner=document.getElementById('Popup');
		
		objmain.innerHTML=str2;

					
        /* get the mouse left position */
        x = evt.clientX + document.body.style.left ;
        
		/* get the mouse top position  */
        y = evt.clientY + document.body.scrollTop - toppos1;
        
		

        /* set the pop-up's left */
        objinner.style.left = x-leftpos;
        /* set the pop-up's top */
        objinner.style.top = y;
		objinner.style.display="block";
	
		objmain.innerHTML=str2;
		/* display the pop-up */
        
		//opacity('Popup1',0,100,550);

		

//		alert(document.getElementById('Popup').value);
    }
    /* this function hides the pop-up when
     user moves the mouse out of the link */
    function Hide()
    {
        /* hide the pop-up */
		opacity('Popup',85,0,350);
	   objinner.style.display="none";
    }
	

function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers

function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
	
} 
function opacity1(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac1(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac1(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers

function changeOpac1(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
	object.display='';
} 
