// Mortgage Calculators Plus v1.1
// ------------------------------------------------------------------------
// Copyright (c) 2005, MortgageCalculatorsPlus.com
// ------------------------------------------------------------------------
// This file is part of "Mortgage Calculators Plus" software
// ------------------------------------------------------------------------

function show_tip(tipid){
	destobj=document.getElementById(tipid);
	tipbox=document.getElementById("tiplayer");
	objpos=getAbsolutePosition(destobj);
	tipbox.style.left=destobj.offsetWidth+objpos[0]+10;
	tipbox.style.top=objpos[1]-10;
	tipbox.innerHTML=tips[tipid];
	tipbox.style.visibility="visible";
};
function hide_tip(){
	document.getElementById("tiplayer").style.visibility="hidden";
};
function getAbsolutePosition(oNode){
	var oCurrentNode=oNode;
	var iLeft=0;
	var iTop=0;
	while(oCurrentNode.tagName!="BODY"){
		iTop+=oCurrentNode.offsetTop;
		iLeft+=oCurrentNode.offsetLeft;
		oCurrentNode=oCurrentNode.offsetParent;
	}
	return Array(iLeft, iTop);
};



function owindow( pageToLoad, winName, width, height, center){

xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ) &&(center)){
 xposition = (screen.width - width) / 8;
 yposition = (screen.height - height) / 3;
}

args = "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=0,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //NN Only
+ "screeny=" + yposition + "," //NN Only
+ "left=" + xposition + "," //IE Only
+ "top=" + yposition; //IE Only

window.open( pageToLoad, winName, args );

}

