// JavaScript Document

document.oncontextmenu = function(){return false}

if (window != top) top.location.href = "";



function SymError()
{
  return true;
}

window.onerror = SymError;

function getDocHeight(doc) {
  var docHt = 0, sh, oh;
  if (doc.height) docHt = doc.height;
  if (doc.body) {
    if (doc.body.scrollHeight) docHt = sh = doc.body.scrollHeight;
    if (doc.body.offsetHeight) docHt = oh = doc.body.offsetHeight;
    if (sh && oh) docHt = Math.max(sh, oh);
  }
  return docHt;
}

function setIframeHeight(iframeName) {
  column_match();
}

function loadIframe(iframeName, url) {
  if ( window.frames[iframeName] ) {
    window.frames[iframeName].location = url;   
    return false;
  }
  else return true;
}



function column_match() {
	if(document.getElementById('middle_height') && document.getElementById('right_height'))
	{

		var middle = document.getElementById('middle_height');
		var right = document.getElementById('right_height');
		var ifrm = document.getElementById('iframe');
		middle.style.height = ifrm.offsetHeight + 'px'; // helps resize (for some) if new doc shorter than previous  
		right.style.height = middle.offsetHeight + 'px'; // helps resize (for some) if new doc shorter than previous  
		
		column_match2();
	}

}
function column_match2() {
	if(document.getElementById('middle_height2') && document.getElementById('right_height2'))
	{
		
	  var middle = document.getElementById('middle_height2');
	  var right = document.getElementById('right_height2');
	  right.style.height = middle.offsetHeight + 'px'; // helps resize (for some) if new doc shorter than previous  
	}
}


//window.onload = function() { column_match() }
window.onresize = function() { column_match() }

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
