// JavaScript Document

function set2DivHeight(idDiv1,idDiv2) {
	var maxHeight = 0;
	var div1 = document.getElementById(idDiv1).offsetHeight;
	var div2 = document.getElementById(idDiv2).offsetHeight;
   
	maxHeight = (div1 < div2) ? div2 : div1;
   
	document.getElementById(idDiv1).style.height = maxHeight + "px";
	document.getElementById(idDiv2).style.height = maxHeight + "px";
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function getQueryVariable(query,variable) {
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  }
  //alert('Query Variable ' + variable + ' not found');
  return false;
}
