function printpage() {window.print();}
function popup(url, wname, w, h)
{
 var win = null;
 if( win == null )
 {
win=window.open(url,wname, "width="+w+",height="+h+",scrolling=no,scrollbars=no,toolbar=no,location=no,menubar=no,resizable=yes,marginwidth=0,marginheight=0");
 }
 else
 {
  win.location = url;      
  win.focus();
 }
}
function sendreco()
{
 url = "sendreco.php";
 url += "?page_id=%PAGE_ID%";
 popup(url, "sendreco", 500, 450);
}
var ie = (document.all) ? true : false;

function setStyleByClass(t,c,p,v){
	var elements;
	if(t == '*') {
		// '*' not supported by IE/Win 5.5 and below
		elements = (ie) ? document.all : document.getElementsByTagName('*');
	} else {
		elements = document.getElementsByTagName(t);
	}
	for(var i = 0; i < elements.length; i++){
		var node = elements.item(i);
		for(var j = 0; j < node.attributes.length; j++) {
			if(node.attributes.item(j).nodeName == 'class') {
				if(node.attributes.item(j).nodeValue == c) {
					eval('node.style.' + p + " = '" +v + "'");
				}
			}
		}
	}
}

curr_font_id = 2;
vfont_size = new Array (11, 12, 13, 14, 15, 16);
function font_up()
{
 if(curr_font_id < (vfont_size.length-1))
 {
  curr_font_id++;

  setStyleByClass( "DIV", "content_text", "fontSize", vfont_size [curr_font_id] + "px");
 }
}
function font_down()
{
 if(curr_font_id > 0)
 {
  curr_font_id--;

  setStyleByClass( "DIV", "content_text", "fontSize", vfont_size [curr_font_id] + "px");
 }
}

