function changeFontSize(inc)
{
	var p = document.getElementsByTagName('p');
	for(n=0; n<p.length; n++) {
		if(p[n].style.fontSize) {
			var size = parseInt(p[n].style.fontSize.replace("pt", ""));    }
			else {
				var size = 9;    }
				p[n].style.fontSize = size+inc + 'pt';   }
  createCookie('fontsize1',size+inc,9);
var h1 = document.getElementsByTagName('h1');
	for(n=0; n<h1.length; n++) {
		if(h1[n].style.fontSize) {
			var size = parseInt(h1[n].style.fontSize.replace("pt", ""));    }
			else {
				var size = 14;    }
				h1[n].style.fontSize = size+inc + 'pt';   }
  createCookie('fontsize2',size+inc,14);
	var h2 = document.getElementsByTagName('h2');
	for(n=0; n<h2.length; n++) {
		if(h2[n].style.fontSize) {
			var size = parseInt(h2[n].style.fontSize.replace("pt", ""));    }
			else {
				var size = 11;    }
				h2[n].style.fontSize = size+inc + 'pt';   }
  createCookie('fontsize3',size+inc,11);
	var h3 = document.getElementsByTagName('h3');
	for(n=0; n<h3.length; n++) {
		if(h3[n].style.fontSize) {
			var size = parseInt(h3[n].style.fontSize.replace("pt", ""));    }
			else {
				var size = 11;    }
				h3[n].style.fontSize = size+inc + 'pt';   }
  createCookie('fontsize4',size+inc,9);
var a = document.getElementsByTagName('a');
	for(n=0; n<a.length; n++) {
		if(a[n].style.fontSize) {
			var size = parseInt(a[n].style.fontSize.replace("pt", ""));    }
			else {
				var size = 9;    }
				a[n].style.fontSize = size+inc + 'pt';   }
  createCookie('fontsize5',size+inc,9);
	var span = document.getElementsByTagName('span');
	for(n=0; n<span.length; n++) {
		if(span[n].style.fontSize) {
			var size = parseInt(span[n].style.fontSize.replace("pt", ""));    }
			else {
				var size = 9;    }
				span[n].style.fontSize = size+inc + 'pt';   }
  createCookie('fontsize6',size+inc,9);
}

function setFontSizePL()
{
 var cookieSize = readCookie('fontsize1')
 if (cookieSize) {
	var p = document.getElementsByTagName('p');
	for(n=0; n<p.length; n++) {
		p[n].style.fontSize = cookieSize + 'pt'; 	}
 }
 var cookieSize = readCookie('fontsize2')
 if (cookieSize) {
        var h1 = document.getElementsByTagName('h1');
	for(n=0; n<h1.length; n++) {
		h1[n].style.fontSize = cookieSize + 'pt'; }
 }
 var cookieSize = readCookie('fontsize3')
 if (cookieSize) {
        var h2 = document.getElementsByTagName('h2');
	for(n=0; n<h2.length; n++) {
		h2[n].style.fontSize = cookieSize + 'pt'; }
 }
 var cookieSize = readCookie('fontsize4')
 if (cookieSize) {
        var h3 = document.getElementsByTagName('h3');
	for(n=0; n<h3.length; n++) {
		h3[n].style.fontSize = cookieSize + 'pt'; }
 }
 var cookieSize = readCookie('fontsize5')
 if (cookieSize) {
        var a = document.getElementsByTagName('a');
	for(n=0; n<a.length; n++) {
		a[n].style.fontSize = cookieSize + 'pt';  }
 }
 var cookieSize = readCookie('fontsize6')
 if (cookieSize) {
        var span = document.getElementsByTagName('span');
	for(n=0; n<span.length; n++) {
		span[n].style.fontSize = cookieSize + 'pt'; }
 }
}
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}


function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}
