﻿//保存用户反馈过来的信息
function SaveFeed()
{
    showProgressBar(true);
    var re = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
    $("StxtContent").style.display='none';
    $("StxtEmail").style.display='none';
    $("SFeedBackCat").style.display='none';
    if($("txtContent").value==""||$("FeedBackCat").value==""||$("txtEmail").value==""||$("txtEmail").value.search(re))
    {
         if($("txtContent").value=="")
         {
            $("StxtContent").style.display='';
         }
          if($("FeedBackCat").value=="")
         {
            $("SFeedBackCat").style.display='';
         }
         if($("txtEmail").value=="")
         {
        $("StxtEmail").style.display='';
        $("StxtEmail").innerHTML="<br/>"+StxtEmail2;
         }else if($("txtEmail").value.search(re))
         {
            $("StxtEmail").style.display='';
            $("StxtEmail").innerHTML="<br/>"+StxtEmail1;
         }
        showProgressBar(false);
         return;
     }
     $("F_post").value="1";
     $("ScreenHeight").value=window.screen.height;
     $("ScreenWidth").value=window.screen.width;
     $("btnSave").disabled = true;
     $("Form1").submit();
 }

