// JavaScript Document
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
function ontype(){
window.location.href="newsmanage.asp?id="+document.frm.leixing.value;
}
function savecheck()
{
	if (document.Frm.Name.value.length <1)
	{
		alert("请输入您的姓名");
		document.Frm.Name.focus();
		return false;
	}
	if (document.Frm.Content.value.length <1)
	{
		alert("请输入您的内容");
		document.Frm.Content.focus();
		return false;
	}
	return true;
}

function BMsavecheck()
{
	if (document.Frm.zymc.value.length <1)
	{
		alert("请输入您要报考的专业名称");
		document.Frm.zymc.focus();
		return false;
	}
	if (document.Frm.zydj.value.length <1)
	{
		alert("请输入您要报考的专业等级");
		document.Frm.zydj.focus();
		return false;
	}
	if (document.Frm.kslb.value.length <1)
	{
		alert("请输入您的考生类别");
		document.Frm.kslb.focus();
		return false;
	}
	if (document.Frm.name.value.length <1)
	{
		alert("请输入您的姓名");
		document.Frm.name.focus();
		return false;
	}
	if (document.Frm.jg.value.length <1)
	{
		alert("请输入您的籍贯");
		document.Frm.jg.focus();
		return false;
	}
	if (document.Frm.whcd.value.length <1)
	{
		alert("请输入您的文化程度");
		document.Frm.whcd.focus();
		return false;
	}
	if (document.Frm.zy.value.length <1)
	{
		alert("请输入您现在的职业");
		document.Frm.zy.focus();
		return false;
	}
	if (document.Frm.phone.value.length <1)
	{
		alert("请输入您的联系电话");
		document.Frm.phone.focus();
		return false;
	}
	if (document.Frm.mail.value.length <1)
	{
		alert("请输入您的E-mail");
		document.Frm.mail.focus();
		return false;
	}
	if (document.Frm.add.value.length <1)
	{
		alert("请输入您的家庭住址");
		document.Frm.add.focus();
		return false;
	}
	return true;
}

function CheckAll(form)
{
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkAll")
       e.checked = form.chkAll.checked;
    }
}

function TypeChange(TypeID)
{
	self.location.href= "manage.asp?TypeID="+TypeID;	
}

function ColumnChange(ID)
{
	self.location.href= "manage.asp?ID="+ID;	
}
function onlineCheck()
{
	if (document.Frm.companyname.value.length <1)
	{
		alert("请输入单位");
		document.Frm.companyname.focus();
		return false;
	}
	if (document.Frm.name.value.length <1)
	{
		alert("请输入联系人");
		document.Frm.name.focus();
		return false;
	}
	if (document.Frm.email.value.length <1)
	{
		alert("请输入E-Mail");
		document.Frm.email.focus();
		return false;
	}
	if (document.Frm.tel.value.length <1)
	{
		alert("请输入电话");
		document.Frm.tel.focus();
		return false;
	}
	if (document.Frm.fax.value.length <1)
	{
		alert("请输入传真");
		document.Frm.fax.focus();
		return false;
	}
	if (document.Frm.address.value.length <1)
	{
		alert("请输入联系地址");
		document.Frm.address.focus();
		return false;
	}
	if (document.Frm.demand.value.length <1)
	{
		alert("请输入制作要求");
		document.Frm.demand.focus();
		return false;
	}
	return true;
}

function view(a) {
document.getElementById('my1').style.display='none';
document.getElementById('my2').style.display='none';

document.getElementById('my'+a).style.display='block';
}


