﻿function toggleTable(el) {

  var myelement = document.getElementById(el);
  var nameelement = document.getElementById(el + "-exTable");
  var myimg = document.getElementById(el + "-img");

  if( !myelement.style.display || myelement.style.display == "none" ) {
myelement.style.display = "inline";
    myimg.src= "images/expandcollapse_button_closed.gif";
    nameelement.style.color = "#000099";
    nameelement.style.textDecoration = "underline";
  } else {
    myelement.style.display = "none";
    myimg.src= "images/expandcollapse_button_open.gif";
    nameelement.style.color = "#1C5DA0";
    nameelement.style.textDecoration = "none";
  }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0mod
  newwindow=window.open(theURL,winName,features);
  if (!newwindow.opener) newwindow.opener = self;
}

function openWindow(url, height, width, resize, sbars)
{
	var h=height;
	var w=width;
	
	if (h==null) h=300;
	if (w==null) w=500;
	
	if (resize!=null){
		var r = (resize==true) ? "yes" : "no"}
	else{
		r = "yes";
	}

	if (sbars!=null){
		if (sbars=="yes") {
                                var s = "yes"
                                } else if (sbars=="no") {
                                var s = "no"
                                }
	}else{
		s = "no";
	}
	var l = Math.ceil( (window.screen.width  - w) / 2 );
	var t = Math.ceil( (window.screen.height - h) / 2 );
	
	var val= window.open(url, "_blank", "top="+t+", left="+l+", width="+w+", height="+h+", status=no, toolbar=no, titlebar=no, menubar=no, location=no, resizable="+r+", border=0, scrollbars="+s);

}
