var tags = new Array('p', 'li');
var pixelArray = new Array('9','10','12','14','15','17');
var initSize = 2;

function fontSizer(inc,unit) {
	if (!document.getElementById)
		return;
	var size = initSize;
	size += inc;
	if (size < 0 ) {
		size = 0;
	}
	if (size > 5 ) {
		size = 5;
	}
	initSize = size;
	getBody = document.getElementsByTagName('body')[0];
	for (i = 0 ; i < tags.length ; i++ ) 
	{
		getallTags = getBody.getElementsByTagName(tags[i]);
		for (k = 0 ; k < getallTags.length ; k++)
			getallTags[k].style.fontSize = (unit=='px') ? pixelArray[size]+unit: emArray[size]+unit;
	}
}


function popup(url,h,w) {
	if (h==NaN || h==undefined)
		h=600;
	if (w==NaN || w==undefined)
		w=800;
	rnd=Math.round(Math.random() * 100);
        var l = Math.round(((screen.availWidth - w) / 2));
        var t = Math.round(((screen.availHeight - h) / 2));

	var props;
	props = "height=" + h + ",width=" + w + ",top=" + t + ",left=" + l + ",location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no";
	a=window.open(url,"popup" + rnd,props);
	return false;
}
