// JavaScript Document
//邮箱登陆

function checkForm(form) {
  if (form.email_name.value == "" ||form.email_name.value.length==0 ) {
    window.alert("请输入邮件账号名称!");
    form.email_name.focus();
    return false;
  }
  if (form.domain.value == "" ||form.domain.value.length==0 ) {
    window.alert("请输入邮件域名!");
    form.domain.focus();
    return false;
  }

  if (form.password.value == "") {
    window.alert("请输入密码!");
    form.password.focus();
    return false;
  }
  if (form.email_name.value.indexOf('@') < 0) {
    form.username.value = form.email_name.value + "@" + form.domain.value;
  } else {
    form.username.value = form.email_name.value;
  }
  if(form.username.value=="administrator"){
    form.action="../domain/adminlogin.jsp";
  }

  return true;
}
//114搜索
function SubSearch(rr) {
var rr;
if (rr=="forum"){
document.all.web1.className="searchfod2";
document.all.forum1.className="searchfod1";
document.all.blog1.className="searchfod2";
document.all.news1.className="searchfod2";
document.all.ypage1.className="searchfod2";
document.searchs.action='http://bbs.114.vnet.cn/search_bbs.html';
}
if (rr=="web"){
document.all.web1.className="searchfod1";
document.all.forum1.className="searchfod2";
document.all.blog1.className="searchfod2";
document.all.news1.className="searchfod2";
document.all.ypage1.className="searchfod2";
document.searchs.action='http://114.vnet.cn/search_web.html';

}
if (rr=="blog"){
document.all.web1.className="searchfod2";
document.all.forum1.className="searchfod2";
document.all.blog1.className="searchfod1";
document.all.news1.className="searchfod2";
document.all.ypage1.className="searchfod2";
document.searchs.action='http://blog.114.vnet.cn/search_blog.html';
}
if (rr=="news"){
document.all.web1.className="searchfod2";
document.all.forum1.className="searchfod2";
document.all.blog1.className="searchfod2";
document.all.news1.className="searchfod1";
document.all.ypage1.className="searchfod2";
document.searchs.action='http://news.114.vnet.cn/search_news.html';
}
if (rr=="ypage"){
document.all.web1.className="searchfod2";
document.all.forum1.className="searchfod2";
document.all.blog1.className="searchfod2";
document.all.news1.className="searchfod2";
document.all.ypage1.className="searchfod1";
document.searchs.action='http://yellowpage.114.vnet.cn/search_tel.html';
}
return false;
}
//影视推荐
function movieclick(movieclick) {
var movieclick;
if (movieclick=="m"){
document.all.movie_m.src="images/right_47.gif";
document.all.movie_jc.src="images/right_48.gif";
document.all.movie_dm.src="images/right_49.gif";
document.all.blue_1.style.display="";
document.all.blue_2.style.display="none";
document.all.blue_3.style.display="none";
}
if (movieclick=="jc"){
document.all.movie_m.src="images/movie1_47.gif";
document.all.movie_jc.src="images/movie1_48.gif";
document.all.movie_dm.src="images/right_49.gif";
document.all.blue_1.style.display="none";
document.all.blue_2.style.display="";
document.all.blue_3.style.display="none";
}
if (movieclick=="dm"){
document.all.movie_m.src="images/movie1_47.gif";
document.all.movie_jc.src="images/right_48.gif";
document.all.movie_dm.src="images/movie1_49.gif";
document.all.blue_1.style.display="none";
document.all.blue_2.style.display="none";
document.all.blue_3.style.display="";
}
}
//焦点图下面的版块
function kkkk(kk){
var kk;
if (kk == "jy"){
document.all.jy.className="foucs_bg2";
document.all.jd.className="foucs_bg1";
document.all.zp.className="foucs_bg1";
document.all.bk.className="foucs_bg1";
document.all.b1.style.display="";
document.all.b2.style.display="none";
document.all.b3.style.display="none";
document.all.b4.style.display="none";
}
if (kk == "jd"){
document.all.jy.className="foucs_bg1";
document.all.jd.className="foucs_bg2";
document.all.zp.className="foucs_bg1";
document.all.bk.className="foucs_bg1";
document.all.b1.style.display="none";
document.all.b2.style.display="";
document.all.b3.style.display="none";
document.all.b4.style.display="none";
}
if (kk == "zp"){
document.all.jy.className="foucs_bg1";
document.all.jd.className="foucs_bg1";
document.all.zp.className="foucs_bg2";
document.all.bk.className="foucs_bg1";
document.all.b1.style.display="none";
document.all.b2.style.display="none";
document.all.b3.style.display="";
document.all.b4.style.display="none";
}
if (kk == "bk"){
document.all.jy.className="foucs_bg1";
document.all.jd.className="foucs_bg1";
document.all.zp.className="foucs_bg1";
document.all.bk.className="foucs_bg2";
document.all.b1.style.display="none";
document.all.b2.style.display="none";
document.all.b3.style.display="none";
document.all.b4.style.display="";
}

}

//新华免费电影弹出窗口代码
function viewcontent(url)
{
window.open("http://xmovie.jx.vnet.cn"+url,"","titlebar=yes,toolbar=no,location=no,menubar=no,status=no,width=815,height=600,top=150,left=5,scrollbars=yes,resizeable=no");
}

