// dn.js - javascript utilities for DarkerNet IRC Network [http://www.darker.net/]



/* hide link lines in page */

function hideLinkLines()
{
if(document.getElementsByTagName)
{
el = document.getElementsByTagName('a')
for(i=0;i<el.length;i++)
{
el[i].onfocus = function() { this.blur() }
}
delete el
}
}
onload = hideLinkLines



/* text mouseover */

function ChangeText(obj, txt)
{
	obj.innerHTML = txt;
}



//  Function openWindow()
//  - imgPage:   html page which is loaded in the new window
//  - imgName:   name of the image (not filename)
//  - imgWidth:  width of the image (actually, the width of the new window)
//  - imgHeight: height of the image (actually, the width of the new window)
//
function openWindow(imgPage, imgName, imgWidth, imgHeight)
{
	window.open(	imgPage, 
			imgName, 
			'width=' + width + ',height=' + height + 		',resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no');

}