function $(s){return document.getElementById(s);}

//登录验证
function user_login_check()
{ 
	document.getElementById('Client_time').value=parseInt(new Date().valueOf() / 1000);
	//alert(document.user_login.Client_time.value);
	$('username_echo').innerHTML='';
	$('password_echo').innerHTML='';
	if (document.user_login.username.value == "")
	{
		$('username_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请输入您的用户名!</font>';
		document.user_login.username.focus();
		return false;
	}

	if (document.user_login.password.value == "")
	{
		$('password_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请输入您的账号密码!</font>';
		document.user_login.password.focus();
		return false;
	}
	document.user_login.submit();
}

function user_login_index_check()
{ 
	document.getElementById('Client_time').value=parseInt(new Date().valueOf() / 1000);
	//alert(document.user_login.Client_time.value);
	if (document.user_login.username.value == "")
	{
		document.user_login.username.focus();
		alert('请输入您的用户名!')		
		return false;
	}

	if (document.user_login.password.value == "")
	{
		document.user_login.password.focus();
		alert('请输入您的账号密码!!')		
		return false;
	}
	document.user_login.submit();
}

//登录结果显示
function plaster_userlogin_validate(request)
{	
		var return_words = request.responseText.split("|");  
		//alert(return_words)
   	if(return_words[0]=="ok") 
		{			
				$('login_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">登录成功，跳转中!</font>';
				//alert(return_words[1])
				location.href=return_words[1];
  	}
  	else //验证失败
  	{
  			$('login_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">'+return_words[0]+'</font>';
  			
					document.user_login.password.focus();
							
  	}   	
}
//登录结束----------------------------------------------------------------------------------------------------

//验证忘记密码
function user_forget_check()
{ 
	if (document.user_forget.username.value == "")
	{
		$('forget_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请填写您注册时的用户名!</font>';
		document.user_forget.username.focus();
		return false;
	}
		if (document.user_forget.email.value == "")
	{
		$('forget_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请填您注册时填写的Email地址!</font>';
		document.user_forget.email.focus();
		return false;
	}
	
	if ((document.user_forget.email.value=="")||(document.user_forget.email.value.indexOf ("@")==-1)||(document.user_forget.email.value.indexOf (".")==-1))
	{
		$('forget_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">邮件地址格式不正确!</font>';
		document.user_forget.email.focus();
		return false;
	}
	star_ck_tijiao();
	document.user_forget.submit();
}

//忘记密码修改
function user_forget_edit_check()
{ 
	if (document.user_forget.password.value == "")
	{
		$('forget_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请您输入新密码!</font>';
		document.user_forget.password.focus();
		return false;
	}
	if(document.user_forget.password.value.length < 4 )
	{
		$('username_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">密码不能低于4个字符</font>';
		document.user_forget.password.focus();
		return false;
	}
	if (document.user_forget.password.value.length > 20)
	{
		$('username_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">密码太长 20个字符以内！</font>';
		document.user_forget.password.focus();
		return false;
	}
	if (document.user_forget.password2.value == "")
	{
		$('forget_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请您再次输入新密码!</font>';
		document.user_forget.password2.focus();
		return false;
	}
		
	if (document.user_forget.password.value != document.user_forget.password2.value)
	{
		$('forget_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">您两次输入的密码不同，请重新输入!</font>';
		document.user_forget.password.focus();
		return false;
	}
	star_ck_tijiao();
	document.user_forget.submit();
}

//验证注册
function user_reg_check()
{ 
	if($('yuedu_check').checked!=true)
	{
		alert('您必须同意注册协议');
	}
	$('username_echo').innerHTML='';
	$('password_echo').innerHTML='';
	$('password2_echo').innerHTML='';
	$('email_echo').innerHTML='';
	$('Lcode_echo').innerHTML='';
	if (document.user_reg.username.value == "" || document.user_reg.username.value == "请输入您的用户名")
	{
		$('username_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请填写您的用户名!</font>';
		document.user_reg.username.focus();
		return false;
	}
	if(document.user_reg.username.value.length < 4 )
	{
		$('username_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">用户名不能低于4个字符</font>';
		document.user_reg.username.focus();
		return false;
	}
	if (document.user_reg.username.value.length > 20)
	{
		$('username_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">用户名太长 20个字符以内！</font>';
		document.user_reg.username.focus();
		return false;
	}
	
		if (document.user_reg.password.value == "")
	{
		$('password_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请填写您的账号密码!</font>';
		document.user_reg.password.focus();
		return false;
	}
	if(document.user_reg.password.value.length < 4 )
	{
		$('password_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">密码不能低于4个字符</font>';
		document.user_reg.password.focus();
		return false;
	}
	if(document.user_reg.password.value.length > 20)
	{
		$('password_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">密码太长 不能大于20个字符！</font>';
		document.user_reg.password.focus();
		return false;
	}	
	if (document.user_reg.password2.value == "")
	{
		$('password2_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请再输入一次密码</font>';
		document.user_reg.password2.focus();
		return false;
	}
	if (document.user_reg.password.value != document.user_reg.password2.value)
	{
		$('password_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">两次密码不一致，请重新输入!</font>';
		document.user_reg.password.focus();
		return false;
	}	

		
	if (document.user_reg.email.value == "")
	{
		$('email_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请填写您的Email地址!</font>';
		document.user_reg.email.focus();
		return false;
	}
	
	if ((document.user_reg.email.value=="")||(document.user_reg.email.value.indexOf ("@")==-1)||(document.user_reg.email.value.indexOf (".")==-1))
	{
		$('email_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">Email地址格式不正确!</font>';
		document.user_reg.email.focus();
		return false;
	}
	
	if (document.user_reg.Lcode.value == "")
	{
		$('Lcode_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">请填写验证码!</font>';
		document.user_reg.Lcode.focus();
		return false;
	}
	

	
	var xmlhttp = createXMLHttpRequest();
	var reg_post="&username="+document.user_reg.username.value;
	    reg_post+="&password="+document.user_reg.password.value;
	    reg_post+="&email="+document.user_reg.email.value;	     
	    reg_post+="&Lcode="+document.user_reg.Lcode.value;
	    reg_post+="&utype="+document.user_reg.utype.value;
	   	ajax(xmlhttp,"POST","/user/reg_1.php?nowtime="+new Date(),reg_post,plaster_user_reg_validate); //注册验证
			//显示正在注册
			$('reg_echo').innerHTML='<img src="/images/loading.gif">&nbsp;<font color="#ff0000">注册中，请稍等..</font>';
			$('btn_sumit').style.display="none";
}
function plaster_user_reg_validate(request)
{	
		var return_words = request.responseText.split("|");  
		if(return_words[0]=="ok") //验证失败
		{			
			$('reg_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">注册成功!</font>';
			location.href=return_words[1];
  	}
  	else 
  	{
  		$('btn_sumit').style.display="";
  		$('reg_echo').innerHTML='';
  		//document.user_reg.username.focus();
  		$(return_words[1]).focus();
  		$(return_words[1]+'_echo').innerHTML='<img src="/images/check_error.gif">&nbsp;<font color="#ff0000">'+return_words[0]+'</font>';
  	}
}


function girl() 
{
	document.user_reg.sex.value=2;
}
function boy() 
{
	document.user_reg.sex.value=1;
}


//检测用户名是否重复
function check_user_name()
{
	$('username_echo').innerHTML='';
	if(document.user_reg.username.value.length > 3)
	{
		//alert(document.user_reg.username.value.length);
		$('username_echo').innerHTML='<img src="/images/loading.gif">';
		show_html('username_echo','/user/check_user_name.php?username='+document.user_reg.username.value+"&nowtime="+new Date() )
	}
	else
	{
		$('username_echo').innerHTML='<img src=/images/check_error.gif> <font color="#ff0000">用户名太短，最少4个字符</font>';
	}
}

/////------------------------------------------------------------------------


//显示内容
var obj_html=''
function show_html(obj,tophp)
{   
  load_html_php(obj,tophp+'&nowtime=New Date()');
}
function load_html_php(obj,url)
{
	//alert(url);
  var xmlhttp = createXMLHttpRequest();
  ajax(xmlhttp,"POST",url,"",plaster_load_html_php); //验证
  obj_html=obj;
  
}
function plaster_load_html_php(request)
{
	 if(request.responseText=="false") //验证失败
		{
			$(obj_html).innerHTML='没有相关数据。';
		}
		else
		{
    	$(obj_html).innerHTML=request.responseText;
  	}
}

//收件箱展开显示内容-----------------------------------------------------------------
function InBox_show_html(i,tophp)
{   
   		if(($('tr'+i).style.display)=="none")
   		{   		
	   		$('tr'+i).style.display="";
	   		$('td'+i).innerHTML='<img src="/images/loading.gif">&nbsp;<font color="#ff0000">读取中，请稍等..</font>';
	   		load_InBox_php(tophp+'&i='+i+'&nowtime=New Date()');
   		}
   		else
   		{
   			$('tr'+i).style.display="none";
   		}
   		
}
function load_InBox_php(url)
{
	//alert(url);
  var xmlhttp = createXMLHttpRequest();
  ajax(xmlhttp,"POST",url,"",plaster_load_InBox_php); //验证
}
function plaster_load_InBox_php(request)
{
	 var return_words = request.responseText.split("|");  
		//alert(return_words)		
   	if(return_words[0]=="false") //验证失败
		{
			$('td'+return_words[1]).innerHTML='没有相关数据。';
		}
		else
		{
    	    	
    	$('td'+return_words[1]).innerHTML=return_words[2];
    	if(return_words[0]!='noico') //没有图标
    	{
    		$('ico'+return_words[1]).innerHTML='<img src="/images/read.gif" width="14" height="12" />';
    	}
  	}
}

//返回顶部
var goto_top_type = -1;
var goto_top_itv = 0;

function goto_top_timer()
{
var y = goto_top_type == 1 ? document.documentElement.scrollTop : document.body.scrollTop;
var moveby = 15;

y -= Math.ceil(y * moveby / 100);
if (y < 0) {
y = 0;
}

if (goto_top_type == 1) {
document.documentElement.scrollTop = y;
}
else {
document.body.scrollTop = y;
}

if (y == 0) {
clearInterval(goto_top_itv);
goto_top_itv = 0;
}
}

function goto_top()
{
if (goto_top_itv == 0) {
if (document.documentElement && document.documentElement.scrollTop) {
goto_top_type = 1;
}
else if (document.body && document.body.scrollTop) {
goto_top_type = 2;
}
else {
goto_top_type = 0;
}

if (goto_top_type > 0) {
goto_top_itv = setInterval('goto_top_timer()', 5);
}
}
}

//切换搜索样式
function input_search()
{
		
	document.J_TSearchForm.insearch.className='top_search_input_in';
	if(document.J_TSearchForm.insearch.value=='请输入搜索关键字' ||  document.J_TSearchForm.insearch.value=='')
	{
		document.J_TSearchForm.insearch.value='';
	}
}
function no_input_search()
{
	if(document.J_TSearchForm.insearch.value=='请输入搜索关键字' ||  document.J_TSearchForm.insearch.value=='')
	{
		document.J_TSearchForm.insearch.className='top_search_input';
		document.J_TSearchForm.insearch.value='请输入搜索关键字';
	}
	else
	{
		document.J_TSearchForm.insearch.className='top_search_input_in';
	}
}


//切换兼职搜索样式
function jz_input_search()
{
		
	document.jz_SearchForm.insearch.className='jz_search_input_in';
	if(document.jz_SearchForm.insearch.value=='请输入搜索关键字' ||  document.jz_SearchForm.insearch.value=='')
	{
		document.jz_SearchForm.insearch.value='';
	}
}
function jz_no_input_search()
{
	if(document.jz_SearchForm.insearch.value=='请输入搜索关键字' ||  document.jz_SearchForm.insearch.value=='')
	{
		document.jz_SearchForm.insearch.className='jz_search_input';
		document.jz_SearchForm.insearch.value='请输入搜索关键字';
	}
	else
	{
		document.jz_SearchForm.insearch.className='jz_search_input_in';
	}
}

//切换搜索选中样式
function change_search(thisid,sumid,ac_char)
{
	for (i=1;i<sumid;i++)
	{

    if(i==thisid)
    {
    	$('search_top_type'+i).className='tsearch-tabs-active';
    	document.J_TSearchForm.insearch.focus();
  	}
  	else
  	{
			//alert(return_words[1])
			$('search_top_type'+i).className='';
		}
  }
 document.J_TSearchForm.search_type.value=ac_char;
}

//搜索关键字
function search_key(inword)
{
	document.J_TSearchForm.insearch.value=inword;
	document.J_TSearchForm.submit();
}	

//高级搜索
function go_search()
{
	if(document.J_TSearchForm.search_type.value=='people')
	{
		location.href="/hr/search.php";
	}
	else
	{
		location.href="/job/search.php";
	}
}

//开启提示
function star_ck_tijiao()
{
	
	//已提交
	var myAlert_tijiao = document.createElement("alert_tijiao"); 
	myAlert_tijiao.id="myAlert_tijiao";
	myAlert_tijiao.style.border = "1px solid #949494";
	myAlert_tijiao.style.background = "#ffffff";
	myAlert_tijiao.style.zIndex = "1000";
	myAlert_tijiao.style.position = "absolute";
	myAlert_tijiao.style.display = "none";
	
	str_tijiao_Html="<table width=\"263\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
	str_tijiao_Html+="<table width=\"237\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\n";
	str_tijiao_Html+="<tr>\n";
	str_tijiao_Html+="<td height=\"58\" align=\"center\" valign=\"middle\" bgcolor=\"#FFFFFF\"><table width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
	str_tijiao_Html+="<tr>\n";
	str_tijiao_Html+="<td width=\"25%\" align=\"center\"><img src=\"/images/loader1.gif\" width=\"34\" height=\"34\" /></td>\n";
	str_tijiao_Html+="<td width=\"75%\" align=\"left\" style=\"color:#74a3d9\"><strong>已经提交，请稍等．．．</strong></td>\n";
	str_tijiao_Html+="</tr>\n";
	str_tijiao_Html+="</table></td>\n";
	str_tijiao_Html+="</tr>\n";
	str_tijiao_Html+="</table>\n";
	
	myAlert_tijiao.innerHTML = str_tijiao_Html;
	document.body.appendChild(myAlert_tijiao);


	document.documentElement.scrollTop=0;
	myAlert_tijiao.style.display = "block"; 
	myAlert_tijiao.style.position = "absolute"; 
	myAlert_tijiao.style.top = "50%"; 
	myAlert_tijiao.style.left = "50%"; 
	myAlert_tijiao.style.marginTop = "-"+58/2+"px";
	myAlert_tijiao.style.marginLeft = "-"+237/2+"px";
	myAlert_tijiao.style.width = 237+"px";
	myAlert_tijiao.style.height = 58+"px";
	mybg_tijiao = document.createElement("div"); 
	mybg_tijiao.setAttribute("id","mybg_tijiao"); 
	mybg_tijiao.style.background = "#000"; 
	mybg_tijiao.style.width = "100%"; 
	mybg_tijiao.style.height = "100%"; 
	mybg_tijiao.style.position = "absolute"; 
	mybg_tijiao.style.top = "0"; 
	mybg_tijiao.style.left = "0"; 
	mybg_tijiao.style.zIndex = "500"; 
	mybg_tijiao.style.opacity = "0.3"; 
	mybg_tijiao.style.filter = "Alpha(opacity=30)"; 
	document.body.appendChild(mybg_tijiao);
	document.body.style.overflow = "hidden"; 
}

//加入收藏
function add_favorites(load_url,html_id)
{
	art.dialog.load(load_url, {
    follow: html_id,
    title: '加入收藏夹',
    time: 5,
    yesFn: function(){
 		
    }   
}, true);
}

//申请职位
function application_job(load_url)
{
	art.dialog.load(load_url, {
    lock: true,
    id:'zwsq',
    title: '申请职位',
    yesFn: function(){ 
    	if(document.application_job_Form)
    	{
    		return application_job_Form_check(); 
    	} 
    }   
}, true);
}
function application_job_Form_check()
{
	if(document.application_job_Form.Title.value=='' )
	{
		alert('信件标题不能为空!')
		document.application_job_Form.Title.focus();
		return false;
	}
	if(document.application_job_Form.Memo.value=='' )
	{
		alert('信件内容不能为空!')
		document.application_job_Form.Memo.focus();
		return false;
	}
	art.dialog({
    id: 'job_Dialog',
    lock: true,
    content: '<img src="/images/loading.gif">&nbsp;<font color="#ff0000"> 提交中,请稍候！'  
		});
		
	var xmlhttp = createXMLHttpRequest();
	var reg_post="&comid="+document.application_job_Form.comid.value;
	    reg_post+="&zwid="+document.application_job_Form.zwid.value;
	    reg_post+="&Title="+document.application_job_Form.Title.value;	     
	    reg_post+="&Memo="+document.application_job_Form.Memo.value;
	ajax(xmlhttp,"POST","/user/do_application_job1.php?nowtime="+new Date(),reg_post,plaster_application_job_todo);
		

}
function plaster_application_job_todo(request)
{
		
		art.dialog.get('job_Dialog').close();
		art.dialog({
    id: 'job_Dialog_tishi',
    time: 5,
    content:request.responseText, 
    yesFn: function(){       
    }  
		});
		
}


//推荐职位给好友
function send_to_friend(load_url)
{
	art.dialog.load(load_url, {
    lock: true,
    id:'zwsq',
    title: '推荐职位给好友',
    yesFn: function(){ 
    	if(document.send_to_friend_Form)
    	{
    		return send_to_friend_Form_check(); 
    	} 
    }   
}, true);
}
function send_to_friend_Form_check()
{
	if(document.send_to_friend_Form.to_Email.value=='' )
	{
		alert('请输入好友电子邮件地址!')
		document.send_to_friend_Form.to_Email.focus();
		return false;
	}
	if(document.send_to_friend_Form.to_Email.value.indexOf(".")==-1 || document.send_to_friend_Form.to_Email.value.indexOf("@")==-1)
	{
		alert("电子邮箱地址不合法！-");
		document.send_to_friend_Form.to_Email.focus();
		 return false;
	}
	if(document.send_to_friend_Form.you_name.value=='' )
	{
		alert('请输入您的名字!')
		document.send_to_friend_Form.you_name.focus();
		return false;
	}
	if(document.send_to_friend_Form.Title.value=='' )
	{
		alert('邮件标题不能为空!')
		document.send_to_friend_Form.Title.focus();
		return false;
	}
	if(document.send_to_friend_Form.Memo.value=='' )
	{
		alert('邮件内容不能为空!')
		document.send_to_friend_Form.Memo.focus();
		return false;
	}
	
	art.dialog({
    id: 'friend_Dialog',
    lock: true,
    content: '<img src="/images/loading.gif">&nbsp;<font color="#ff0000"> 提交中,请稍候！'  
		});
		
	var xmlhttp = createXMLHttpRequest();
	var reg_post="&to_Email="+document.send_to_friend_Form.to_Email.value;
	    reg_post+="&you_name="+document.send_to_friend_Form.you_name.value;
	    reg_post+="&Title="+document.send_to_friend_Form.Title.value;	     
	    reg_post+="&Memo="+document.send_to_friend_Form.Memo.value;
	ajax(xmlhttp,"POST","/user/do_send_to_friend1.php?nowtime="+new Date(),reg_post,plaster_send_to_friend_todo);
		

}
function plaster_send_to_friend_todo(request)
{
		
		art.dialog.get('friend_Dialog').close();
		art.dialog({
    id: 'friend_Dialog_tishi',
    time: 5,
    content:request.responseText, 
    yesFn: function(){       
    }  
		});
		
}


//加入人才库
function add_PersonDB(load_url,html_id)
{
	  art.dialog.load(load_url, {
    follow: html_id,
    title: '加入人才库',
    time: 5,
    yesFn: function(){
 		
    }   
}, true);
}

//企业给人才发送邮件
function do_send_my_email(load_url,html_id)
{
	  art.dialog.load(load_url, {
    follow: html_id,
    title: '发送简历到邮箱',
    time: 5,
    yesFn: function(){ 		
    }   
}, true);
}

//给人才发邮件
function do_send_p_email(load_url)
{
	art.dialog.load(load_url, {
    lock: true,
    id:'zwsq',
    title: '发送邮件',
    yesFn: function(){ 
    	if(document.do_send_p_email_Form)
    	{
    		return do_send_p_email_Form_check(); 
    	} 
    }   
}, true);
}
function do_send_p_email_Form_check()
{
	if(document.do_send_p_email_Form.Title.value=='' )
	{
		alert('邮件标题不能为空!')
		document.do_send_p_email_Form.Title.focus();
		return false;
	}
	if(document.do_send_p_email_Form.Memo.value=='' )
	{
		alert('邮件内容不能为空!')
		document.do_send_p_email_Form.Memo.focus();
		return false;
	}
	
	art.dialog({
    id: 'p_email_Dialog',
    lock: true,
    content: '<img src="/images/loading.gif">&nbsp;<font color="#ff0000"> 提交中,请稍候！' 
		});
		
	var xmlhttp = createXMLHttpRequest();
	var reg_post="&to_Email="+document.do_send_p_email_Form.to_Email.value;
	    reg_post+="&Title="+document.do_send_p_email_Form.Title.value;	     
	    reg_post+="&Memo="+document.do_send_p_email_Form.Memo.value;
	ajax(xmlhttp,"POST","/user/do_send_p_email1.php?nowtime="+new Date(),reg_post,plaster_do_send_p_email_todo);
		

}
function plaster_do_send_p_email_todo(request)
{
		
		art.dialog.get('p_email_Dialog').close();
		art.dialog({
    id: 'p_email_Dialog_tishi',
    time: 5,
    content:request.responseText, 
    yesFn: function(){       
    }  
		});		
}



//邀请面试
function do_Interview(load_url)
{
	art.dialog.load(load_url, {
    lock: true,
    id:'zwsq',
    title: '邀请面试',
    yesFn: function(){ 
    
    	if(document.do_Interview_Form)
    	{
    		return do_Interview_Form_check();
    	} 
    },
	  noFn: true
}, true);
}
function do_Interview_Form_check()
{
	if(document.do_Interview_Form.jobid.value=='' )
	{
		alert('请选择邀请面试的职位!')
		document.do_Interview_Form.jobid.focus();
		return false;
	}
	if(document.do_Interview_Form.Title.value=='' )
	{
		alert('信件标题不能为空!')
		document.do_Interview_Form.Title.focus();
		return false;
	}
	if(document.do_Interview_Form.Memo.value=='' )
	{
		alert('信件内容不能为空!')
		document.do_Interview_Form.Memo.focus();
		return false;
	}
	
	art.dialog({
    id: 'Interview_Dialog',
    lock: true,
    content: '<img src="/images/loading.gif">&nbsp;<font color="#ff0000"> 提交中,请稍候！'  
		});
		
	var xmlhttp = createXMLHttpRequest();
	var reg_post="&jobid="+document.do_Interview_Form.jobid.value;
			reg_post+="&Perid="+document.do_Interview_Form.Perid.value;    
	    reg_post+="&Title="+document.do_Interview_Form.Title.value;	     
	    reg_post+="&Memo="+document.do_Interview_Form.Memo.value;
	ajax(xmlhttp,"POST","/user/do_Interview1.php?nowtime="+new Date(),reg_post,plaster_do_Interview_todo);
		

}
function plaster_do_Interview_todo(request)
{
		
		art.dialog.get('Interview_Dialog').close();
		art.dialog({
    id: 'Interview_Dialog_tishi',
    time: 5,
    content:request.responseText, 
    yesFn: function(){       
    } 
		});		
}
//显示网页内容
function show_html_code(html_id,tourl)
{  
$('#'+html_id).html('<img src="/images/loading.gif">&nbsp;<font color="#ff0000">加载中 请稍等..</font>');
$.get(tourl, {NextAction:"no"} , function(result){
$('#'+html_id).html('');
$("#" + html_id).append(result); 
});
}
//修改头像或logo
function edit_my_face(load_url,mytitle)
{
	  art.dialog.load(load_url, {
	  id: 'edit_face_dialog',
	  width:'500px',
	  height:'200px',
    title: mytitle,
    noFn: function(){ 		
    }   
}, true);
}

