//=================清除所有a标签热区开始=======================
$(document).ready(
				  function(){
$(" a").focus(function(){$(this).blur();});
})
//=================清除所有a标签热区结束======================




//=================选择下拉菜单开始==========================
var dom;
$(function(){
     var sto;
	$("#main_nav li").hover(
		function(){
                dom=$(this)
			sto=setTimeout('dom.children("dl").show();',100);
		},
		function(){
                clearTimeout(sto)
			$(this).children("dl").hide();
		}
	)
})
//=================选择下拉菜单结束=========================





//=================友情链接新窗口打开开始====================
function chan(){
window.open(document.getElementById("link").options[document.getElementById("link").selectedIndex].value);
}//===============友情链接新窗口打开结束=====================






//================================================
function openLink(test){
			var txt=test;
			if(txt=="menu1")window.open("/foundation6/","_self")
			if(txt=="menu2")window.open("/donations2/","_self")
			if(txt=="menu3")window.open("/bank/","_self")
			if(txt=="menu4")window.open("/home5/","_self")
			if(txt=="menu5")window.open("/video1/","_self")
}
//===============================================










function validator()
{
 	if(document.form1.name.value=="")
	{alert("请输入您的姓名!"); document.form1.name.focus(); return false;}
	if(document.form1.telephone.value=="")
	{alert("请输入您的联系电话!");document.form1.telephone.focus();return false;}
	if(document.form1.email.value=="")
	{alert("请输入您的Email!");document.form1.email.focus();return false;}
	if(!(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/).test(document.form1.email.value))
	{alert("请输入正确的Email!");document.form1.email.focus();return false;}
	if(document.form1.content.value=="")
	{alert("请输入您的留言内容!");document.form1.content.focus();return false;}

}
