//Flash免激活
function FreeFlash(elm, url, w, h) { 
if (!document.getElementById(elm)) return; 
var str = ''; 
str += '<object width="'+ w +'" height="'+ h +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">'; 
str += '<param name="movie" value="'+ url +'">'; 
str += '<param name="wmode" value="transparent">'; 
str += '<param name="quality" value="autohigh">'; 
str += '<embed width="'+ w +'" height="'+ h +'" src="'+ url +'" quality="autohigh" wmode="opaque" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>'; 
str += '</object>'; 
document.getElementById(elm).innerHTML = str; 
} 
function CheckSearchNull(){
if (document.form.Keyword.value==""){
	alert("the keywords can't be empty!");
	document.form.Keyword.focus()
	return false;
}
return true;
}
function CheckNull(){
if (document.form.Title.value==""){
	alert("Title can't be empty!");
	document.form.Title.focus()
	return false;
}
if (document.form.LinkMan.value==""){
	alert("Name can't be empty!");
	document.form.LinkMan.focus()
	return false;
}
if(document.form.Email.value.length!=0){
if (document.form.Email.value.charAt(0)=="." ||        
	document.form.Email.value.charAt(0)=="@"||       
	document.form.Email.value.indexOf('@', 0) == -1 || 
	document.form.Email.value.indexOf('.', 0) == -1 || 
	document.form.Email.value.lastIndexOf("@")==document.form.Email.value.length-1 || 
	document.form.Email.value.lastIndexOf(".")==document.form.Email.value.length-1)
{
	alert("Email's format is wrong!");
	document.form.Email.focus();
	return false;
	}
}
else
{
	alert("Email can't be empty!");
	document.form.Email.focus();
	return false;
}
if (document.form.LinkTel.value==""){
	alert("Tel can't be empty!");
	document.form.LinkTel.focus()
	return false;
}
if (document.form.Content.value==""){
	alert("Content can't be empty!");
	document.form.Content.focus()
	return false;
}
return true;
}
function CheckJobNull(){
if (document.form.Title.value==""){
	alert("Work title can't be empty!");
	document.form.Title.focus()
	return false;
}
if (document.form.Name.value==""){
	alert("Name can't be empty!");
	document.form.Name.focus()
	return false;
}
if (document.form.Birthday.value==""){
	alert("Birthday can't be empty!");
	document.form.Birthday.focus()
	return false;
}
if (document.form.Study.value==""){
	alert("School record can't be empty!");
	document.form.Study.focus()
	return false;
}

if (document.form.Tel.value==""){
	alert("Tel can't be empty!");
	document.form.Tel.focus()
	return false;
}

if(document.form.Email.value.length!=0){
if (document.form.Email.value.charAt(0)=="." ||        
	document.form.Email.value.charAt(0)=="@"||       
	document.form.Email.value.indexOf('@', 0) == -1 || 
	document.form.Email.value.indexOf('.', 0) == -1 || 
	document.form.Email.value.lastIndexOf("@")==document.form.Email.value.length-1 || 
	document.form.Email.value.lastIndexOf(".")==document.form.Email.value.length-1)
{
	alert("Email's format is wrong!");
	document.form.Email.focus();
	return false;
	}
}
else
{
	alert("E-mail can't be empty!");
	document.form.Email.focus();
	return false;
}
if (document.form.Address.value==""){
	alert("Address can't be empty!");
	document.form.Address.focus()
	return false;
}
if (document.form.Nengli.value==""){
	alert("Level and ability can't be empty!");
	document.form.Nengli.focus()
	return false;
}
if (document.form.Content.value==""){
	alert("Resume can't be empty!");
	document.form.Content.focus()
	return false;
}
return true;
}
//打开窗口
function openWin(u, w, h) { 
	var l = (screen.width - w) / 2; 
	var t = (screen.height - h) / 2; 
	var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l; 
	s += ', toolbar=no, scrollbars=no, menubar=no, location=no, resizable=no'; 
	open(u, 'oWin', s); 
} 