
function imgh(imageArr){
	var imageArr=document.getElementById(imageArr);
	//alert("图片原始大小为550x734");

	//alert(imageArr.offsetWidth)
	imageRate=parseInt(imageArr.style.width)/parseInt(imageArr.style.Height);
	if(imageArr.offsetWidth>500)
	{
	//alert("现在使图片自适应大小...");
		imageArr.style.width="500px";
		imageArr.style.height = "";
		//imageArr.style.height=200/parseInt(imageRate)+"px";
	}else{
		imageArr.style.width="";
	}
	
	if(imageArr.offsetHeight>500)
	{
	//alert("现在使图片自适应大小...");
		imageArr.style.width="";
		imageArr.style.height="500px";
		//imageArr.style.height=200/parseInt(imageRate)+"px";
	}else{
		imageArr.style.height="";
	}
}


function repyfrom(){
	
	if(document.getElementById('Tcontent').value==''){
		document.getElementById('errinfo').innerHTML = 'Please enter Reply content';
		return false;
	}
	
}


function GradeInfotip(Useful,reid)
{
	var url = "inforebate.php?reid="+reid;
	var ajax = InitAjax();
	ajax.open("GET", url, true); 
	ajax.onreadystatechange = function() { 
		if (ajax.readyState == 4 && ajax.status == 200)
		{
			document.getElementById(Useful).innerHTML = ajax.responseText;
		}
	}		
	ajax.send(null); 
}

