var str2=new Array();
str2="";

   function Show(str,evt,toppos1,leftpos)
    {

		str2=str;
		objmain=document.getElementById('divhelp');
		objinner=document.getElementById('Popup');
		
		//objmain.innerHTML=str2;

		//alert(document.body.scrollTop);			
        /* get the mouse left position */
        //x = evt.clientX + document.body.style.left ;
        x=325;
		/* get the mouse top position  */
		
        //y = evt.clientY + document.body.scrollTop - toppos1;
        y=45+document.body.scrollTop;
		

        /* set the pop-up's left */
        objinner.style.left = x-leftpos;
        /* set the pop-up's top */
        objinner.style.top = y;
		hgt=1;
		len=str2.length;
		inc=len-1;
		/*for(hg=1;hg<len;hg++)
		{
	
			
			objmain.style.height=hgt;
			objinner.style.height=hgt;
			objmain.innerHTML=str2.substring(0,hg);
			objinner.style.display="block";
			
			hgt=hgt+(49/inc);
		}*/
		objinner.style.display="block";
		//changeheight('divhelp','Popup',len,85,350);
		
		opacity('Popup','divhelp',0,100,350);
		objmain.innerHTML=str2;
		//objinner.style.display="block";
		
		//
		//
		/* display the pop-up */
        
		
    }
	
	 function Show2(str,evt,toppos1,leftpos)
    {

		str2=str;
		objmain=document.getElementById('divhelp1');
		objinner=document.getElementById('Popup1');
		
		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','divhelp',100,0,350);
	   objinner.style.display="none";
    }
	 function Hide1()
    {
        /* hide the pop-up */
		//opacity('Popup1','divhelp1',100,0,350);
	   //objinner.style.display="none";
	   document.getElementById('Popup1').style.display="none";
    }
	

function opacity(id,id1, 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));
			 setTimeout("changeheight(" + i + ",'" + id + "','" + id1 + "')",(timer * speed));
			//document.getElementById(id).style.display='block';
            timer++;
			
        }
		
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			 setTimeout("changeheight(" + i + ",'" + id + "','" + id1 + "')",(timer * speed));
			//document.getElementById(id).style.display='block';
            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,id1, 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("changeheight(" + i + ",'" + id + "','" + id1 + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
           setTimeout("changeheight(" + i + ",'" + id + "','" + id1 + "')",(timer * speed));
            timer++;
        }
    }
}*/
function changeheight(hgt,mid,iid) {
    var object = document.getElementById(mid).style;
	var object1 = document.getElementById(iid).style;
    object.height = (hgt-21)+"px";
	object1.height = (hgt-21)+"px";
	//alert(object.height);
    /*object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";*/
	
} 
//change the opacity for different browsers


