﻿var strLink;
function fShowCnt(strID){
  if (window.showContext){    
    showContext.innerHTML = '正在加载，请稍候...';
    showReviewLst.innerHTML = '正在加载，请稍候...';
    procIfm.location='news/context.jsp?ShowID='+ strID +'&Link='+ strLink;
  }else{
    location='/design_news.jsp?ID='+strID;
  }
}

function fReview(){
    if(window.document.frmReview.strSubmit.value=='0'){
      window.document.frmReview.strSubmit.value ='1';
      if (window.document.frmReview.reName.value == ""){
        alert("请输入笔名!");
        window.document.frmReview.reName.focus();
        window.document.frmReview.strSubmit.value ='0';
        return false;
      }
      if (window.document.frmReview.reContent.value == ""){
        alert("请输入内容!");
        window.document.frmReview.reContent.focus();
        window.document.frmReview.strSubmit.value ='0';
        return false;
      }
      return true;
    }//if
    return false;
}//fReview


function fContribution(){
    if(window.document.frmContribution.strSubmit.value=='0'){
      window.document.frmContribution.strSubmit.value ='1';
      if (window.document.frmContribution.title.value == ""){
        alert("请输入标题!");
        window.document.frmContribution.title.focus();
        window.document.frmContribution.strSubmit.value ='0';
        return false;
      }
      if (window.document.frmContribution.author.value == ""){
        alert("请输入作者!");
        window.document.frmContribution.author.focus();
        window.document.frmContribution.strSubmit.value ='0';
        return false;
      }
      if (window.document.frmContribution.content.value == ""){
        alert("请输入内容!");
        //window.document.frmContribution.content.focus();
        window.document.frmContribution.strSubmit.value ='0';
        return false;
      }
      return true;
    }//if
    return false;
}//fReview

function fShowRe(){
  if (window.document.frmReview.reID.value !=''){
    window.showReview.style.display='block';
    window.document.frmReview.reContent.focus();
  }
}//fShowRe