function thepriceChar(id, count,ev,char_price){
	if(ev!=null && keepKeyNum(ev)==13) return ;
	var cprice = parseFloat(char_price);
	var icount = parseInt(count);
	var ccount = parseInt(limitChars(id,count,"\\n"));
	document.getElementById("charcount").innerText = ccount;
	document.getElementById("char_max").innerText = icount - ccount;
	//document.getElementById("charprice").innerText = accMul(char_price , ccount);
	var num = new Number(char_price * ccount);
	document.getElementById("charprice").innerText = num.toFixed(2);
}
function autoHeight(){
   var r_table = document.getElementById("rightTable");
   var r_td = document.getElementById("rightTD");
   r_table.style.height=r_td.offsetHeight+"px";
   
   var fT = document.getElementById("footTable");
   var pos = findcomXY(fT);
   var ili = document.getElementById("inps_logo_image");
   ili.style.left = pos.left+705+"px";
   ili.style.top = pos.top-320+"px";
}
function findcomXY(o){
    var to=new Object();
	to.left=to.right=to.top=to.bottom=0;
	var twidth=o.offsetWidth;
	var theight=o.offsetHeight;

	while(o!=null&&o!=document.body){
		to.left+=o.offsetLeft;
		to.top+=o.offsetTop;
		o=o.offsetParent;
	}
	to.right=to.left+twidth;
	to.bottom=to.top+theight;
	return to;	
}
