function che()
{
	if(document.formc.name.value==""){alert("你的姓名不能为空!");document.formc.name.focus();return false;}
	
	if(document.formc.dianhua.value==""){alert("联系电话不能为空!");document.formc.dianhua.focus();return false;}
	
	if(document.formc.address.value==""){alert("你的地址不能为空!");document.formc.address.focus();return false;}
	
	if(document.formc.title.value==""){alert("留言标题不能为空!");document.formc.title.focus();return false;}
	
	if(document.formc.content.value==""){alert("留言内容不能为空!");document.formc.content.focus();return false;}
	
	if(document.formc.email.value==""){alert("邮箱不能为空!");document.formc.email.focus();return false;}
	
	if(document.formc.yanzheng.value==""){alert("验证码不能为空!");document.formc.yanzheng.focus();return false;}
	
	return true;
}

function sear(){
	if(document.form.key.value=="")
	{
		alert("关键词不能为空！");
		document.form.key.focus();
		return false;
	}
	return true;
}

$(function(){
	//加为收藏
	function addFavourite()
	{
		if (document.all)
		   {
			 window.external.addFavorite(document.URL,document.title);
		   }
		  else if (window.sidebar)
		  {
			  window.sidebar.addPanel(document.title,document.URL,"");
		}
	}
	//设为首页
	function setHomepage(){
	  if (document.all){
		document.body.style.behavior='url(#default#homepage)';
		document.body.setHomePage(document.URL);
	  }else if (window.sidebar){
			if(window.netscape){
		   try{
			  netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
		   }catch (e){
						alert( "该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true" );
		   }
			}
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage',document.URL);
		}
	}
})

$(document).ready(function(){
	
	//导航菜单下拉效果
	$(".Nav li").hover(function(){$(this).children("ul").slideDown("")},function(){$(this).children("ul").slideUp("")});
	
	//点击A标签后立即移除焦点
	//$("a,:button").focus(function(){$(this).blur()});
	
	$(".leftFont").css({background:"url(images/pro_list_bg.gif) no-repeat",color:"#094A74"});
	$(".leftFont").hover(function(){
		$(this).css({background:"url(images/pro_list_hover_bg.gif) no-repeat",color:"#FFF"});
	})
	$(".leftFont").mouseleave(function(){
		$(this).css({background:"url(images/pro_list_bg.gif) no-repeat",color:"#094A74"});
	})
});

