
function ShowNotice(nid){
window.open("ShowNotice.asp?id="+nid,"","");
}

function ShowDetail(nid){
window.open("ShowDetail.asp?id="+nid,"","");
}

function ShowCam(nid){
window.open("ShowCam.asp?id="+nid,"","");
}

function ShowRecruit(nid){
window.open("../index/showNotice.asp?id="+nid,"","");
}

function ShowForum(nid){
window.open("../index/ShowNotice.asp?id="+nid,"","");
}

function MM_openBrtWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function ShowSeminars(tid){
 	window.open("Seminars_Info.asp?id="+tid,"","");
        }

function GetProJectId(Pid)
	{
	   document.all.ToDetail.Pid.value = Pid;
	   document.all.ToDetail.submit(); 
	}
function selectChange()
{
	if (document.all.link.value!='')
	{
		window.open(document.all.link.value);
	}

}												

function Checkform()
{
	if (document.form1.username.value.length == 0) {
		alert("用户名不能为空");
		document.form1.username.focus();
		return false;
	}

	  if (document.form1.types.value.length == 0) 
		{
		alert("请选择性别");
		document.form1.types.focus();
		return false;
		}

    if (document.form1.calender.value.length == 0) 
		{
		alert("学历不能为空");
		document.form1.calender.focus();
		return false;
		}
		if (document.form1.num_year.value.length == 0)
		 {
		alert("年限不能为空");
		document.form1.num_year.focus();
		return false;
		}
	if (document.form1.duty.value.length == 0)
		 {
		alert("请填写你的职务");
		document.form1.duty.focus();
		return false;
		}
	if (document.form1.tel.value.length == 0) {
		alert("电话号码不能为空");
		document.form1.tel.focus();
		return false;
		}
	if (document.form1.tel.value.length<10)
        {
                alert("请输入正确电话号码");
                document.form1.tel.focus();
                return false;
        }  

	if (document.form1.nowunit.value.length == 0)
		 {
		alert("请填写工作单位");
		document.form1.nowunit.focus();
		return false;
		}
	
	return true;
}

	function hideLayer1()
	{
	    var alertWindow = document.getElementById('alertWindow');
	    if(alertWindow)
		{alertWindow.style.visibility = "hidden";
		//alert("ok");
		}
	}
	function showLayer1()
	{
	    var alertWindow = document.getElementById('alertWindow');
	    if(alertWindow)
		{alertWindow.style.visibility = "visible";
		//alert("ok");
		}
	}
    
