function wopen3 (obj)
{
 var wo = window.open("", "abc", "width=10, height=10, scrollbars=0, status=0");
 wo.document.open();
 var win = "";
 win = "<html><head>";
 win += "<title>Image</title>";
 win += "<script>function resizes (obj){";
 win += "var w=obj.width, h=obj.height;";
 win += "window.resizeTo (w+8, h+48);";
 win += "}</"+"script"+">";
 win += "<style type='text/css'> * {margin:0; padding:0; border:0; } </style> </head>"
 win += "<body>";
 win += "<table cellpadding='0' cellspacing='0' width='100%' height='100%'><tr><td align='center'>";
 win += "<img src='" + obj + "' alt='' onload='resizes(this)' />";
 win += "</td></tr></table>";
 win += "</body></html>";
 wo.document.write(win);
 wo.window.focus();
 wo.document.close();
}

var oObj;
function changeState(oObj, layerRef) {
	
    if (oObj.checked) 
	{
	//alert('checked');
        var blockElement = document.getElementById(layerRef).style;
        blockElement.display = "block";
	}
	else{
            
        //alert('Not_checked');
        var blockElement = document.getElementById(layerRef).style;
        blockElement.display = "none";
        }
}
	//changeState(this,'menu1');
	
function showMenu(obj){
	var oMenu = document.getElementById(obj);
	oMenu.style.display = 'block';
}

function hideMenu(obj){
	var oMenu = document.getElementById(obj);
	oMenu.style.display = 'none';
}