function checkValue3(t)
    {
    var td = t+"_div";     
    if(document.getElementById(td).style.display == "none")
        {
        document.getElementById(td).style.display = "block";
       
        }
    else
        {
        document.getElementById(td).style.display = "none";
        
        }
    }
function checkValue(t,el)
    {
    var td = t+"_div";   
    if(el == "Other")
        {
        document.getElementById(td).style.display="block";
        }
    else
        {
        document.getElementById(td).style.display="none";      
        }   
    }
function checkValue2(t,el)
    {
    var td = t+"_div";   
    if(el !== "none")
        {
        document.getElementById(td).style.display="block";
        }
    else
        {
        document.getElementById(td).style.display="none";      
        }   
    }
function showInfo(el)
    {
    posDBox('popup',0,-90);
    var c = document.getElementById(el).innerHTML;
    document.getElementById('content').innerHTML = c;
    document.getElementById('popup').style.display = "block";
    }
function closeInfo()
    {
    document.getElementById('popup').style.display = "none";
    document.getElementById('content').innerHTML = "";
    }

function getStyle(el, cssproperty, csspropertyNS){
if (el.currentStyle)
	{
	return el.currentStyle[cssproperty]
	}
else if (window.getComputedStyle)
	{
	var elstyle=window.getComputedStyle(el, "")	
	return elstyle.getPropertyValue(csspropertyNS)
	}
}
function posDBox(id,xOff,yOff){
    xOff = parseInt(xOff);
    yOff = parseInt(yOff);       
	var x = (document.body.clientWidth)?document.body.clientWidth:screen.availWidth;
	var y = (document.body.scrollHeight)?document.body.scrollHeight:window.innerHeight;
	var dboxElement = document.getElementById(id);	
	var dboxWidth = getStyle(dboxElement,'width','width');
	var dboxHeight = getStyle(dboxElement,'height','height');     	
	dboxWidth = dboxWidth.replace(/[px]/g, "");
	dboxWidth = dboxWidth/2
	dboxHeight = dboxHeight.replace(/[px]/g, "");
	dboxHeight = dboxHeight/2;  
	var x1 = Math.floor((x/2)-dboxWidth-20);
	var y1 = Math.floor((y/2)-dboxHeight);
	var x2 =(xOff)?x1 + xOff:x1;
	var y2 =(yOff)?y1 + yOff:y1;     
	dboxElement.style.left=x2+"px";
	dboxElement.style.top=y2+"px"; 
    dboxElement.style.display="block";  	
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
