window.onerror = killError;
window.defaultStatus = ""


function newWindow(filename, w,h){  
        popWin = window.open(filename,"popup","height="+h+",width="+w+",scrollbars=yes, resize=no, leftmargin=0, topmargin=0", "dependent") ; popWin.focus ("popup");
}


function closePopUp () {
		if (popWin.document) {
			popWin.close(); return false;	}
			}


function goTo(URL) {
	location.href = URL;
		}
		
function voidThis() {}


function killError() {
  		return true;
		}




function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}


