var FFextraHeight = 0;
 if(window.navigator.userAgent.indexOf("Firefox")>=1)
 {
  FFextraHeight = 16;
  }
 function ReSizeiFrame(iframe)
 {
   if(iframe && !window.opera)
   {
     iframe.style.display = "block";
      if(iframe.contentDocument && iframe.contentDocument.body.offsetHeight)
      {   
		 var sh=iframe.contentDocument.body.offsetHeight;
		 if (sh>580&&sh<1000)
	     {
			   iframe.height  =sh*0.8;	
	     }
          if (sh>1000)
	     {
			  iframe.height  =sh*0.7;	
		
	     }
		 if (sh<400)
		 {		
		 iframe.height  =sh;
		 }
        
      }
      else if (iframe.Document && iframe.Document.body.scrollHeight)
      {
        iframe.height = iframe.Document.body.scrollHeight;       
      }
   }
 }
var tip = "在此发表评论!";
function reply_clearfield()
{
	if (document.formpost2.content.value == tip)
	{
		document.formpost2.content.value = "";
	}
}

var submited = false;
function reply_checksubmit2()
{
	if(document.formpost2.content.value==tip || document.formpost2.content.value.length==0)
	{
		alert('请填写内容');
		return false;
	}
	if(submited){
		alert('回复已经提交，请稍后;)');
		return false;
	}
	submited=true;
	return true;
}
 