	function getID(id)
	{
		return document.getElementById(id);	
	}
	function createjax()
	{
		if (window.XMLHttpRequest)
		{
			return new XMLHttpRequest();
		}
		else
		{
			return new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	function jaxsign(param,path)
	{
		var jax = createjax();
		jax.open("POST",path,true)
		jax.setRequestHeader('Content-Type','application/x-www-form-urlencoded')
		jax.send(param)
		return jax;
	}
	function getjsonx(jax,er)
	{
		try 
		{
			return eval('('+jax.responseText+')');
		}
		catch(e)
		{
			var obj = {}
			obj.status = 0;
			obj.msg = 'Unable to process by server.<br> Please try again later.'
			return obj;
		}
	}
	function setCookie(c_name,value,expiredays)
	{
		var exdate=new Date();
		exdate.setDate(exdate.getDate()+expiredays);
		document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()) + "; path=/";
	}

	function getCookie(c_name)
	{
		if (document.cookie.length>0)
		{
			c_start=document.cookie.indexOf(c_name + "=");
			if (c_start!=-1)
		    {
			    c_start=c_start + c_name.length+1;
			    c_end=document.cookie.indexOf(";",c_start);
			    if (c_end==-1) c_end=document.cookie.length;
			    return unescape(document.cookie.substring(c_start,c_end));
			}
		}
		return null;
	}

	function captcha()
	{		
		getID('img_captcha').src=base_url+'front/captcha_load/'+Math.random();		
	}
	
	function increaseFontSize(len,hei) 
	{
		setCookie('fontsize_fdot',len);	
		setCookie('lineheight_fdot',hei);
		$("p").css({'font-size':len,'line-height':hei});
		$("span").css({'font-size':len,'line-height':hei});
	}
	
	function decreaseFontSize() 
	{
		var p = document.getElementsByTagName('p');
		var d = document.getElementsByTagName('div');
		var s = document.getElementsByTagName('span');
		stz = new Array("p","d","s");
		for(j=0;j<stz.length;j++)
		{
			for(i=0;i<stz[j].length;i++) 
			{
				p = stz[j];
				if(p[i].style.fontSize) 
				{
					var s = parseInt(p[i].style.fontSize.replace("px",""));
				}
				else 
				{
					var s = 12;
				}
				if(s!=min) 
				{
					s -= 1;
				}
				p[i].style.fontSize = s+"px"
			} 
		}
	}
	
	function goback()
	{
		history.go(-1);	
	}
