function cikkEmail( form ) {
	var cim = prompt("Milyen e-mail címre küldjük a cikket?","");
	if (cim) {
		form.elements.to.value = cim;
		form.submit();
	}
	return false;
}

var fontsize = 1;
function fontSizeMinus( td ) {
	if (fontsize > 0) fontsize--;
	return setFontSize(fontsize, td);
}
function fontSizePlus( td ) {
	if (fontsize < 7) fontsize++;
	return setFontSize(fontsize, td);
}
function setFontSize( fs, td ) {
	//var td = document.getElementById("colMain");

	if (!td) return false;

	var fontSize = 10 + fs;
	var lineHeight = fontSize + Math.round(0.3 * fontSize);

	// get all paragraph
	var p = td.getElementsByTagName("p");
	if (p.length) changeFontSize(p, fontSize, lineHeight);

	var table = td.getElementsByTagName("table");
	if (table.length) changeFontSize(table, fontSize, lineHeight);

	/*
	var h1 = td.getElementsByTagName("h1");
	if (h1.length) changeFontSize(h1, fontSize, lineHeight);

	var h2 = td.getElementsByTagName("h2");
	if (h2.length) changeFontSize(h2, fontSize, lineHeight);

	var h3 = td.getElementsByTagName("h3");
	if (h3.length) changeFontSize(h3, fontSize, lineHeight);
	*/

	var div = td.getElementsByTagName("div");
	if (div.length) changeFontSize(div, fontSize, lineHeight);

	return false;
}

function changeFontSize( collection, fS, lH ) {
	for(var i = 0; i < collection.length; i++) {
		var d = collection[i];
		d.style.fontSize = fS + "px";
		d.style.lineHeight = lH + "px";
	}
}
