function DeclarableJob(JobID,station){
   $id('JobID').name = JobID;
   $id('station').value = station;
}
function job(){
  var JobID = $id('JobID').name;
  var sex,marriage;
  ($id('man').checked) ? sex = 1 : sex = 0;
 
  if($id('wh').checked){
     marriage = 0;
  }else if($id('yh').checked){
     marriage = 1;
  }else if($id('ly').checked){
     marriage = 2;
  }
  var name = $id('uName').value;
  var birthday = $id('birthday').value;
  var diplomaSchool = $id('diplomaSchool').value;
  var Qualifications = $id('Qualifications').value;
  var specialty = $id('specialty').value;
  var diplomaDate = $id('diplomaDate').value;
  var phone = $id('phone').value;
  var Email = $id('Email').value;
  var Address = $id('Address').value;
  var level = $id('level').value;
  var resume = $id('resume').value;
  if(IsNull(name)){
   showmsg('msg','Error','请填写您的姓名!');return;
  }
  /*if(!IsEmail(Email)){
   showmsg('msg','Error','Email地址格式不正确!');return;
  }*/
  if(!IsDate(birthday)){
   showmsg('msg','Error','出生日期必须是日期格式!');return;
  }
  if(!IsDate(diplomaDate)){
   showmsg('msg','Error','毕业时间必须是日期格式!');return;
  }
  showmsg('msg','smallLoading','正在提交,请稍候..');
  var Url = 'ajax.asp?JobID='+JobID+'&name='+name+'&sex='+sex+'&birthday='+birthday+'&marriage='+marriage+'&diplomaSchool='+diplomaSchool+'&Qualifications='+Qualifications+'&specialty='+specialty+'&diplomaDate='+diplomaDate+'&phone='+phone+'&Email='+Email+'&Address='+Address+'&level='+level+'&resume='+resume+'&Action=job';
  ajax.response(Url,Jobed);
}
function Jobed(){
  var html = ajax.request();
  showmsg('msg','right',html);
  setTimeout('hidebg("job")',2000);
}
function showbg(obj){
   if(!obj) return;
   if($id('SelectPage')) SetVisibility('SelectPage','hidden');
   var BG = $createElement('div');
   BG.id = 'BG';
   BG.style.width=document.body.clientWidth;
   BG.style.height=document.body.clientHeight + document.body.scrollTop;
   BG.style.left=0;BG.style.top=0;
   BG.style.zIndex = max_zIndex();
   BG.className='Alpha';
   document.body.appendChild(BG);
   $id(obj).style.position = 'absolute';
   $id(obj).style.display = 'block';
   $id(obj).style.zIndex = max_zIndex();
   $id(obj).style.top = document.body.scrollTop + 30;
   $id(obj).style.left = (document.body.clientWidth / 2) - ($id(obj).offsetWidth / 2);
   window.onscroll = function(){
	   $id(obj).style.top = document.body.scrollTop + 30;
	   if($id('BG')) BG.style.height = document.body.clientHeight + document.body.scrollTop;
   }
   document.body.scrollTop+=1;document.body.scrollTop-=1;
   initDrag();
}
