
function toggle(id){
	 var  tbl = "SideNavigation1_table_" + id;
    var img = "SideNavigation1_img_" + id;
    var  tblElement = document.getElementById(tbl);
    var imgElement = document.getElementById(img);
    alert(id);
    alert(tblElement);
    alert(imgElement.src);
     if (tblElement){
           // if (tblElement.className == 'closed')
 //          if (tblElement.style.display =='none')
   //         {
                    //tblElement.className = "open";
         //           tblElement.style.display = "block";
                    imgElement.src = "/IPBWebPublic/Images/arrow_orange_down.jpg";
                    alert("Inside the down");
                    
//              }
//              else
 //             {
                    //tblElement.className = "closed";
   //                 tblElement.style.display = "none";
     //               imgElement.src = "../Images/arrow_orange.gif";
       //             alert("OutSide" + imgElement.src);
         //      }
            }
 
}

function openWindow(windowURL, windowWidth, windowHeight, windowName)
{
	var topPos;
	var leftPos;
	var newWindowStyle;
	var newWindowHandler;

	topPos = (screen.availHeight - windowHeight) / 2;
	leftPos = (screen.availWidth - windowWidth) / 2;	
	newWindowStyle = "width=" + windowWidth + ",height=" + windowHeight + ",top=" + topPos + ",left=" + leftPos + ",fullscreen=no,toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no";
	
	newWindowHandler = window.open(windowURL, windowName, newWindowStyle);
	newWindowHandler.focus();
}