var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="scrollbars,"+
     "resizable,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}

sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



// break out of frames
if (window!= top)
top.location.href=location.href

// tellafriend pop-up
function tella()  {
	thewindow = window.open('tellafriend.html', 'anew', config='height=290,width=330,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no');
	}
	
// summary pop-up
function summary()  {
	thewindow = window.open('../summary.html', 'anew', config='height=400,width=630,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=no');
	}

// Print
	function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}
	
// bookmark
function addbookmark()
{
bookmarkurl="http://www.kmaloans.com/"
bookmarktitle="Bad Credit Home Loan Information"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}