// JavaScript Document
$(function(){
  // $(".header .nav ul li").hover(function(){
  //    $(this).css({background:"url(images/navhover.jpg) repeat-x"});
  //    $("a",this).css({color:"#fff"});
 //  },function(){
  //    $(this).css({background:"none"});
  //    $("a",this).css({color:"#000"});
  // });
   $(".header .nav li a[href=" + location.pathname + "]").addClass("hover");
   var p=$(".sideCon .sideContent").height();
   var m=$(".sideCon .sideMenu").height()
   n=p-m;
  // alert (p);
  // alert (m);
   if  (p>m){
      $(".sideCon .sideMenu .sidetel").css({margin:""+n+"px 0 0 0"});
   }else{
      $(".sideCon .sideContent").height(m);
   }
   
});


function ismail(strmail) {
if (strmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
return true;
else
alert("邮件格式不正确！");

}

function CheckForma()
{  
if(document.formail.memail.value.length==""){  
alert("请输入邮件！");
document.formail.memail.focus();
return false;
}
return true;
}
