function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openMBWindow(URLtoOpen, windowName) {
  self.name = 'keyParent';
  windowParams = 'height=520,width=704,toolbar=no,scrollbars=no';
  newWindow=window.open(URLtoOpen, windowName, windowParams);
}

function openFTHBWindow(URLtoOpen, windowName) {
  self.name = 'keyParent';
  windowParams = 'height=620,width=870,toolbar=no,scrollbars=no';
  newWindow=window.open(URLtoOpen, windowName, windowParams);
}

function calcWindow(where) {
	newWindow = window.open( where, 'CALC', 'width=570,height=400,top=20,left=20,toolbar=0,location=0,directories=0,status=0,menuBar=1,scrollBars=1,resizable=1' ); 
	newWindow.focus();
}

function appWindow(where) {
	newWindow = window.open( where, 'APPWIN', 'width=760,height=520,resizable=yes,scrollbars=yes' ); 
	newWindow.focus();
}

function toolWindow(where) {
	newWindow = window.open( where, 'TOOL', 'width=700,height=420,top=20,left=20,toolbar=0,location=0,directories=0,status=0,menuBar=1,scrollBars=1,resizable=1' ); 
	newWindow.focus();
}

function chartWindow(where) {
   winChartWindow = window.open( where, 'CHART', 'width=520,height=470,top=20,left=20,toolbar=0,location=0,directories=0,status=0,menuBar=1,scrollBars=1,resizable=1' ); 
   winChartWindow.focus();
}

function openInfo(theURL) {
     InfoWindow =
window.open(theURL,'app','width=680,height=400,scrollbars=yes,resizable=yes');
     InfoWindow.focus();
}

function openPup(theURL,winName,features) {
	PupWindow = window.open(theURL,winName,features);
    PupWindow.focus();
}

function moneyWindow(where) {
	newWindow = window.open(where,'money','width=540,height=520,top=20,left=20,toolbar=0,location=0,directories=0,status=0,menuBar=1,scrollBars=1,resizable=1'); 
	newWindow.focus();
}

function mbvWindow(where) {
	newWindow = window.open( where, 'mbvWin','width=900,top=0,left=0,height=620,resizable=yes,scrollbars=yes' ); 
	newWindow.focus();
}

function heWindow(where) {
	newWindow = window.open( where, 'mbvWin','width=725,top=0,left=0,height=545,resizable=yes,scrollbars=yes' ); 
	newWindow.focus();
}

function soWin(where) {
	newWindow = window.open( where, 'signon', 'width=400,height=300,top=20,left=400,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=auto,resizable=1'); 
	newWindow.focus();
}

function kttWin(where) {
	newWindow = window.open( where, 'signon', 'width=400,height=500,top=20,left=20,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1'); 
	newWindow.focus();
}

function molWin(where) {
	newWindow = window.open( where, 'molwin', 'width=600,height=500,top=20,left=20,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=auto,resizable=1'); 
	newWindow.focus();
}

var getById = (typeof document.getElementById != "undefined");		
function setClassName(obj, className){
		getRef(obj).className= className;
}

function getRef(obj){
	if(getById)
		return(typeof obj == "string") ? document.getElementById(obj) : obj;
}

function printNode(nodeId,url) {
	var printNode = document.getElementById(nodeId).cloneNode(true);
	var x = window.open(url,'printWin','width=540,height=540,top=0,left=0,toolbar=1,location=0,directories=1,status=0,menuBar=1,scrollBars=1,resizable=1');
	x.focus();
	x.onload = function() {
		x.document.body.appendChild(printNode);
	}
}

function closePopup() {}

  function reload_close() {
     opener.location.reload();
     self.close();
   }

function flashVideo(where) {
	newWindow = window.open( where, 'APPWIN', 'width=320,height=240,resizable=no,scrollbars=no' ); 
	newWindow.focus();
}