


function zoom(queryStr,graphType)
{
    var winWidth = (80/100)*window.screen.width
    var winHeight =(80/100)*window.screen.height
    var imgWidth = winWidth - 10
    var imgHeight = winHeight - 37
	var type = "_school",typeLen=type.length;
	var iLen = String(graphType).length;
	
	if(graphType.search(type)>=0)
	{
		type="&type="+String(graphType).substring(iLen-typeLen+1,iLen);
		graphType = String(graphType).substring(0,iLen-typeLen);
	}else
	{
	type="";
	}
	
    x = (window.screen.width - winWidth)/2;
    y = (window.screen.height - winHeight)/2;

    child = open
    (
        "controller.php?action=largeimage"+type+"&Width="+imgWidth+"&Height="+imgHeight+"&"+queryStr+"&graphType="+graphType,
        "Large",
        "width="+winWidth+",height="+winHeight+",left= "+x+",top="+y+",status=no,resizable=no,scrollbars=no"
    );
    //if the window is open bring it into focus
    if(child)
	    child.focus();
}
