window.onerror = myError;
self.focus();

function myError(message, url, line){
	alert(message + " - URL: " + url + " - Line: " + line);
	return true;
}

leftPos=0;
theHeight=300;
theWidth=600;
theWidth2=240;

function nWin(t){
if(screen){
	theHeight=screen.height-100;
	if(screen.width>=800)
		leftPos=screen.width-650;
	else
		leftPos=screen.width-620;
}

	open(t.href,'n','left='+leftPos+',top=20,hotkeys=0,width='+theWidth+',height='+theHeight+',toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=1');
	return false;
}

function WNew(t){
if(screen){
	theHeight=screen.height-300;
	if(screen.width>=800)
		leftPos=screen.width-290;
	else
		leftPos=screen.width-260;
}

	open(t.href,'wn','left='+leftPos+',top=250,hotkeys=0,width='+theWidth2+',height='+theHeight+',toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=1');
	return false;
}

