function PrintOpen(srcurl){
        printurl = "/service/print/Print.php?po="+srcurl;
        window.open(printurl, '','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,left=100,top=10,width=700,height=758');
}

function setCookie(name,value,expires)
{
	document.cookie=name + "=" + escape(value) + ((expires == null)? "" : (" ; expires=" + expires.toGMTString()));
}

function getCookie(name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while(i< clen) {
		var j = i + alen;
		if(document.cookie.substring(i,j)==arg){
			var end = document.cookie.indexOf(";",j);
			if(end == -1) end = document.cookie.length;
			return unescape(document.cookie.substring(j,end));
		}
		i=document.cookie.indexOf(" ",i)+1;
		if (i==0) break;
	}
	return null;
}

function getFontCookie() {
	var cookie = getCookie("cur_font_size");
	if ( cookie == null ) return 13;
	if ( cookie.length ) return cookie;
	else return 13;
}


function scaleFont(val)
{
	var content, lineHeight;
	content = document.getElementById("content");
	if (val > 0){
		if (fontSize <= 18) {
			fontSize = fontSize + val;
			lineHeight = fontSize+Math.round(1.1*fontSize);
			content.style.fontSize = fontSize + "px";
		}
		
	} else {
		if (fontSize > 13) {
			fontSize = fontSize + val;
			lineHeight = fontSize+Math.round(1.1*fontSize);
			content.style.fontSize = fontSize + "px";
		}
	}
	var mydate = new Date;
	mydate.setDate(mydate.getDate()+1000);
	setCookie("cur_font_size", fontSize, mydate);
}
var fontSize = parseInt(getFontCookie());