function FontSize(size) {
	//alert(size);
	if(!size) { size = '12'; }
	if(size > 20) { size = '20'; }
	var aTags = new Array('div', 'ul', 'li', 'input', 'td', 'tr', 'th', 'a', 'span', 'h1');
	var aRel  = new Array("resize");
	update_font_size(size);
	
	for(indexvalue in aTags) {
	   var p = document.getElementsByTagName(aTags[indexvalue]);
	   for(i=0;i<p.length;i++) {
		   //console.log(p[i]);
		   if(p[i].rel) { console.log(p[i].rel); }
		   if(p[i].id == 'size') {
		  		
		   } else {
			  // console.log(p[i].style.fontSize+'-----'+size+'px');
					p[i].style.fontSize = size+"px"   

			  if(p[i].id == 'cartbox' && p[i].style.fontSize > '12px') { 
				  p[i].style.paddingTop = "16px";
				  document.getElementById('h1style').style.top  = "42px";
			  }	else {
				  p[i].style.paddingTop = "0px";
			  }
		   }
	   }
	}
}

function FontSi2ze(size) {
	update_font_size(size)
	document.body.style.zoom = size+"%";

}

 function get_font_size()
{
    var fontsize = 0; // default font size
	var strCook = document.cookie;
	if(strCook.indexOf("!~")!=0){
		var intS = strCook.indexOf("!~");
		var intE = strCook.indexOf("~!");
		var fontsize = strCook.substring(intS+2,intE);
	}
    return fontsize;
}

function update_font_size(fontsize)
{
	document.cookie = "fontsize=!~" + fontsize + "~!; path=/";
}