function openWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function defaul_home(){
	this.home.style.behavior='url(#default#homepage)';this.home.setHomePage('http://ciep.chinajob.com');
}

function bookmarkit(){
	window.external.addFavorite('http://ciep.chinajob.com','中国国际人才交流暨项目洽谈会');
	}

function del(theName){
		theName.value="";
return true;
}

function checkvalue(theName){
   if (theName.value){
	if (!theName.checked){
			alert("请选择纪录！"); 
		return false;
		}
   }else{
	len=theName.length;
	flag=false;
	for (i=0;i<len;i++)
	{
		if ( theName[i].checked)
			flag=true;
	}
	if (!flag){
		alert("请选择纪录！");
		return false;
	}
   } 
   return true;
}

function checkfrm_login(){
	temp=document.form_login.user_id;
	if (temp.value==""){
		alert("请输入用户名");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入用户名");
			temp.focus();
			return false;
		}
	}
	temp=document.form_login.user_password;
	if (temp.value==""){
		alert("请输入密码");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入密码");
			temp.focus();
			return false;
		}
	}
return true;
}

function checkfrm_search(){
	temp=document.form_search.keyword;
	if (temp.value==""){
		alert("请输入关键词");
		document.form_search.keyword.focus();
		return false;
	}else{
		if (temp.value=="关键词"){
			alert("请输入关键词");
			document.form_search.keyword.value="";
			document.form_search.keyword.focus();
			return false;
		}
	}
return true;
}

function checkfrm_search1(){
	temp=document.form_search1.keyword;
	if (temp.value==""){
		alert("请输入关键词");
		document.form_search1.keyword.focus();
		return false;
	}else{
		if (temp.value=="关键词"){
			alert("请输入关键词");
			document.form_search1.keyword.value="";
			document.form_search1.keyword.focus();
			return false;
		}
	}
return true;
}


function checkfrm_regis_username()
{
	temp=document.form_regis_username.username;
	if (temp.value==""){
		alert("请输入用户名");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入用户名");
			temp.focus();
			return false;
		}
	}

return true;
}

function checkfrm_regis_username_nj()
{
	temp=document.form_regis_username.usernj_id;
	if (temp.value==""){
		alert("请输入用户名");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入用户名");
			temp.focus();
			return false;
		}
	}

return true;
}

function checkfrm_register()
{
	temp=document.form_register.password;
	if (temp.value==""){
		alert("请输入密码");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入密码");
			temp.focus();
			return false;
		}
	}
	temp=document.form_register.repassword;
	if (temp.value==""){
		alert("请输入密码确认");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入密码确认");
			temp.focus();
			return false;
		}
	}

	temp1=document.form_register.password;
	temp2=document.form_register.repassword;
	if (temp1.value!=temp2.value){
		alert("密码确认与密码不符，请重新输入");
		temp2.focus();
		return false;
	}

	temp=document.form_register.email.value
	if ((temp == null) || (temp.length == 0)){
	    window.alert("请输入您的E-mail地址！");	
		document.form_register.email.focus();
		return false;
	}		
	len = temp.length;
	if(len>0)
	{
	  if (len > 50)
	  {
		window.alert("email地址长度不能超过50位!");
		document.form_register.email.focus();
		return false;
	  }
	  pos1 = temp.indexOf("@");
	  pos2 = temp.indexOf(".");
	  pos3 = temp.lastIndexOf("@");
	  pos4 = temp.lastIndexOf(".");
	  if ((pos1 <= 0)||(pos1 == len)||(pos2 <= 0)||(pos2 == len))
	  {
		window.alert("请输入有效的E-mail地址！");
		document.form_register.email.focus();
		return false;
	  }
	  else
	  {
		if( (pos1 == pos2 - 1)||(pos1 == pos2 + 1)||( pos1 != pos3 )||( pos4 < pos3 ) )
		{
			window.alert("请输入有效的E-mail地址！");
		    document.form_register.email.focus();
		    return false;
		}
	  }		
	}
	temp=document.form_register.unit_name;
	if (temp.value==""){
		alert("请输入单位名称");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入单位名称");
			temp.focus();
			return false;
		}
	}
return true;
}

function checkfrm_register_nj()
{
	temp=document.form_register.usernj_password;
	if (temp.value==""){
		alert("请输入密码");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入密码");
			temp.focus();
			return false;
		}
	}
	temp=document.form_register.reusernj_password;
	if (temp.value==""){
		alert("请输入密码确认");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入密码确认");
			temp.focus();
			return false;
		}
	}

	temp1=document.form_register.usernj_password;
	temp2=document.form_register.reusernj_password;
	if (temp1.value!=temp2.value){
		alert("密码确认与密码不符，请重新输入");
		temp2.focus();
		return false;
	}

	temp=document.form_register.usernj_passwordq;
	if (temp.value==""){
		alert("请输入密码提示问题");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入密码提示问题");
			temp.focus();
			return false;
		}
	}

	temp=document.form_register.usernj_passworda;
	if (temp.value==""){
		alert("请输入提示问题答案");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入提示问题答案");
			temp.focus();
			return false;
		}
	}

	temp=document.form_register.usernj_email.value
	if ((temp == null) || (temp.length == 0)){
	    window.alert("请输入您的E-mail地址！");	
		document.form_register.usernj_email.focus();
		return false;
	}		
	len = temp.length;
	if(len>0)
	{
	  if (len > 50)
	  {
		window.alert("email地址长度不能超过50位!");
		document.form_register.usernj_email.focus();
		return false;
	  }
	  pos1 = temp.indexOf("@");
	  pos2 = temp.indexOf(".");
	  pos3 = temp.lastIndexOf("@");
	  pos4 = temp.lastIndexOf(".");
	  if ((pos1 <= 0)||(pos1 == len)||(pos2 <= 0)||(pos2 == len))
	  {
		window.alert("请输入有效的E-mail地址！");
		document.form_register.usernj_email.focus();
		return false;
	  }
	  else
	  {
		if( (pos1 == pos2 - 1)||(pos1 == pos2 + 1)||( pos1 != pos3 )||( pos4 < pos3 ) )
		{
			window.alert("请输入有效的E-mail地址！");
		    document.form_register.usernj_email.focus();
		    return false;
		}
	  }		
	}
	temp=document.form_register.unitnj_name;
	if (temp.value==""){
		alert("请输入单位名称");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入单位名称");
			temp.focus();
			return false;
		}
	}
	temp=document.form_register.unitnj_name;
	if (temp.value==""){
		alert("请输入单位名称");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入单位名称");
			temp.focus();
			return false;
		}
	}
	temp=document.form_register.unitnj_linkman;
	if (temp.value==""){
		alert("请输入联系人姓名");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入联系人姓名");
			temp.focus();
			return false;
		}
	}
	temp=document.form_register.unitnj_phone;
	if (temp.value==""){
		alert("请输入联系人电话");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入联系人电话");
			temp.focus();
			return false;
		}
	}
	temp=document.form_register.unitnj_mobile;
	if (temp.value==""){
		alert("请输入联系人手机");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入联系人手机");
			temp.focus();
			return false;
		}
	}
	temp=document.form_register.unitnj_fax;
	if (temp.value==""){
		alert("请输入传真");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入传真");
			temp.focus();
			return false;
		}
	}
return true;
}

function checkfrm_register1()
{
	temp=document.form_register1.psw;
	if (temp.value==""){
		alert("请输入密码");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入密码");
			temp.focus();
			return false;
		}
	}
	temp=document.form_register1.pswcfm;
	if (temp.value==""){
		alert("请输入密码确认");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入密码确认");
			temp.focus();
			return false;
		}
	}

	temp1=document.form_register1.psw;
	temp2=document.form_register1.pswcfm;
	if (temp1.value!=temp2.value){
		alert("密码确认与密码不符，请重新输入");
		temp2.focus();
		return false;
	}

	temp=document.form_register1.name;
	if (temp.value==""){
		alert("请输入单位名称");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入单位名称");
			temp.focus();
			return false;
		}
	}

	temp=document.form_register1.email.value
	if ((temp == null) || (temp.length == 0)){
	    window.alert("请输入您的E-mail地址！");	
		document.form_register1.email.focus();
		return false;
	}		
	len = temp.length;
	if(len>0)
	{
	  if (len > 50)
	  {
		window.alert("email地址长度不能超过50位!");
		document.form_register1.email.focus();
		return false;
	  }
	  pos1 = temp.indexOf("@");
	  pos2 = temp.indexOf(".");
	  pos3 = temp.lastIndexOf("@");
	  pos4 = temp.lastIndexOf(".");
	  if ((pos1 <= 0)||(pos1 == len)||(pos2 <= 0)||(pos2 == len))
	  {
		window.alert("请输入有效的E-mail地址！");
		document.form_register1.email.focus();
		return false;
	  }
	  else
	  {
		if( (pos1 == pos2 - 1)||(pos1 == pos2 + 1)||( pos1 != pos3 )||( pos4 < pos3 ) )
		{
			window.alert("请输入有效的E-mail地址！");
		    document.form_register1.email.focus();
		    return false;
		}
	  }		
	}

return true;
}

function checkfrm_message(){
	temp=document.form_message.cont;
	if (temp.value==""){
		alert("请输入邀函内容");
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入邀函内容");
			temp.focus();
			return false;
		}
	}
return true;
}

function checkfrm_note(){
	temp = document.form_note.note_title;
	if (temp.value==""){
		alert("请录入标题！");	
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请录入标题！");
			temp.focus();
			return false;
		}
	}
	temp = document.form_note.note_name;
	if (temp.value==""){
		alert("请输入您的姓名！");	
		temp.focus();
		return false;
	}else{
		tmp=temp.value;
		while(tmp.charAt(0)==" ")
			tmp=tmp.substring(1);
		if (tmp==""){
			alert("请输入您的姓名！");
			temp.focus();
			return false;
		}
	}
return true;
}

function MM_preloadImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function load()
  { if (form_shortcut.select2.selectedIndex > 0) location = form_shortcut.select2.options[form_shortcut.select2.selectedIndex].value;}

function checkfrm_conlist() {
  temp = document.conlist.elements['conid[]'];
  if (temp.value) {
    if (!temp.checked) {
      alert("请至少选择一个会议！");
      return false;
	}
  } else {
    len = temp.length;
    flag = false;
    for (i = 0; i < len; i++) {
      if (temp[i].checked) flag = true;
    }
	if (!flag) {
      alert("请至少选择一个会议！");
      return false;
    }
  } 
  return true;
}


function settime2() {
  str='';
  str="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\">";
  for (i = 1; i <= window.unitnj_info3.comm2_num.value;i++)
  str+='<tr><td align=\"center\">推介会场次'+i+'：<select name="commnj2_time[]" size="1"><option value="">--------请选择--------</option><option value=""></option><option value="27日上午 10:00--10:25">27日上午 10:00--10:25</option><option value="27日上午 10:30--10:55">27日上午 10:30--10:55</option><option value="27日上午 11:00--11:25">27日上午 11:00--11:25</option><option value="27日上午 11:30--11:55">27日上午 11:30--11:55</option><option value="">----------------------</option><option value="27日下午 14:00--14:25">27日下午 14:00--14:25</option><option value="27日下午 14:30--14:55">27日下午 14:30--14:55</option><option value="27日下午 15:00--15:25">27日下午 15:00--15:25</option><option value="27日下午 15:30--15:55">27日下午 15:30--15:55</option><option value="27日下午 16:00--16:25">27日下午 16:00--16:25</option><option value="27日下午 16:30--16:55">27日下午 16:30--16:55</option><option value="">----------------------</option><option value="28日上午 9:00--9:25">28日上午 9:00--9:25</option><option value="28日上午 9:30--9:55">28日上午 9:30--9:55</option><option value="28日上午 10:00--10:25">28日上午 10:00--10:25</option><option value="28日上午 10:30--10:55">28日上午 10:30--10:55</option><option value="28日上午 11:00--11:25">28日上午 11:00--11:25</option><option value="28日上午 11:30--11:55">28日上午 11:30--11:55</option></select></td>'+'</tr>';
  str+="</table>";
  window.time2.innerHTML=str;
}

function settime3() {
  str='';
  str="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\">";
  for (i = 1; i <= window.unitnj_info3.comm3_num.value;i++)
  str+='<tr><td align=\"center\">推介会场次'+i+'：<select name="commnj3_time[]" size="1"><option value="">--------请选择--------</option><option value=""></option><option value="27日上午 10:00--10:25">27日上午 10:00--10:25</option><option value="27日上午 10:30--10:55">27日上午 10:30--10:55</option><option value="27日上午 11:00--11:25">27日上午 11:00--11:25</option><option value="27日上午 11:30--11:55">27日上午 11:30--11:55</option><option value="">----------------------</option><option value="27日下午 14:00--14:25">27日下午 14:00--14:25</option><option value="27日下午 14:30--14:55">27日下午 14:30--14:55</option><option value="27日下午 15:00--15:25">27日下午 15:00--15:25</option><option value="27日下午 15:30--15:55">27日下午 15:30--15:55</option><option value="27日下午 16:00--16:25">27日下午 16:00--16:25</option><option value="27日下午 16:30--16:55">27日下午 16:30--16:55</option><option value="">----------------------</option><option value="28日上午 9:00--9:25">28日上午 9:00--9:25</option><option value="28日上午 9:30--9:55">28日上午 9:30--9:55</option><option value="28日上午 10:00--10:25">28日上午 10:00--10:25</option><option value="28日上午 10:30--10:55">28日上午 10:30--10:55</option><option value="28日上午 11:00--11:25">28日上午 11:00--11:25</option><option value="28日上午 11:30--11:55">28日上午 11:30--11:55</option></select></td>'+'</tr>';
  str+="</table>";
  window.time3.innerHTML=str;
}
/*
function checkfrm_unitnj_info1() {
  temp = document.unitnj_info1.unitnj_type;
  if (temp.value == "") {
    alert("请选择单位类型");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请选择单位类型");
      temp.focus();
      return false;
    }
  }

  temp = document.unitnj_info1.unitnj_linkman;
  if (temp.value == "") {
    alert("请填写联系人");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请填写联系人");
      temp.focus();
      return false;
    }
  }

  temp = document.unitnj_info1.unitnj_gender;
  if (temp.value == "") {
    alert("请选择性别");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请选择性别");
      temp.focus();
      return false;
    }
  }

  temp = document.unitnj_info1.unitnj_nation;
  if (temp.value == "") {
    alert("请选择国籍");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请选择国籍");
      temp.focus();
      return false;
    }
  }

  temp = document.unitnj_info1.unitnj_inhabite;
  if (temp.value == "") {
    alert("请选择居住国");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请选择居住国");
      temp.focus();
      return false;
    }
  }

  temp = document.unitnj_info1.unitnj_name;
  if (temp.value == "") {
    alert("请填写任职机构（单位名称）");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请填写任职机构（单位名称）");
      temp.focus();
      return false;
    }
  }

  temp = document.unitnj_info1.unitnj_address;
  if (temp.value == "") {
    alert("请填写组团单位地址");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请填写组团单位地址");
      temp.focus();
      return false;
    }
  }

  temp = document.unitnj_info1.unitnj_phone;
  if (temp.value == "") {
    alert("请填写联系电话");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请填写联系电话");
      temp.focus();
      return false;
    }
  }

  temp = document.unitnj_info1.unitnj_fax;
  if (temp.value == "") {
    alert("请填写传真");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请填写传真");
      temp.focus();
      return false;
    }
  }
}
*/
function checksxl() {
	cg = "";
	zz = "";
  temp = document.unitnj_info3.elements['conid[]'];
  l    = temp.length;
  for (j=0;j<l ;j++ )
  {
	  if(temp[j].value == "2")
	  {
		  cg = "a";
	  }
	  if(temp[j].value == "3")
	  {
		  zz = "a";
	  }
  }
  if(cg == "a")
	{
	  len  = document.unitnj_info3.comm2_num.value;
	  temp = document.unitnj_info3.elements['commnj2_time[]']	
	  if(len == "1")
		{
		  if(temp.value == "")
			{
				alert ("请选择引智成果展示推介会场次!");
				return false;
			}
		} else
		{
		  for (i=0;i<len ;i++ )
		  {
			  if(temp[i].value == "")
			  {
					alert ("请选择引智成果展示推介会场次!");
					return false;
			  }
		  }
		}
	}
  if(zz == "a")
	{
	  leng = document.unitnj_info3.comm3_num.value;
	  temp = document.unitnj_info3.elements['commnj3_time[]'];
	  if(leng == "1")
		{
		  if(temp.value == "")
			{
				alert ("请选择国际资质证书展示推介会场次!");
				return false;
			}
		} else 
		{
		  for (i=0;i<leng ;i++ )
		  {
			  if(temp[i].value== "")
			  {
					alert ("请选择国际资质证书展示推介会场次!");
					return false;
			  }
		  }
		}
	}

  //window.alert(unitnj_info3.chengguo.options[unitnj_info3.chengguo.selectedIndex].value);
  //if (unitnj_info3.chengguo.options[unitnj_info3.chengguo.selectedIndex].value == "") {
    //alert("asdfasdf!");
    return true;
  //}
}

function setroomlist() {
  str='';
  //if (!window.unitnj_info2.unitnj_num.value)
  //window.unitnj_info2.unitnj_num.value = 1;
  str="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\" align=\"center\">";
  str+="<tr><td colspan=\"8\"><font color=\"blue\">请输入所有与会人员的信息，由组团人员填写</font></td></tr><tr><td colspan=\"8\"><hr></td></tr>";
  str+="<tr><td colspan=\"8\"><font color=\"red\">※&nbsp;&nbsp;必须填写</font></td></tr><tr><td colspan=\"8\"></td></tr>";
  str+="<tr><td align=\"center\"><font color=\"red\">※</font>姓名</td><td align=\"center\"><font color=\"red\">※</font>性别</td><td align=\"center\"><font color=\"red\">※</font>工作单位</td><td align=\"center\"><font color=\"red\">※</font>职务</td><td align=\"center\"><font color=\"red\">※</font>单位地址</td><td align=\"center\"><font color=\"red\">※</font>联系电话</td><td align=\"center\"><font color=\"red\">※</font>电子信箱</td><td align=\"center\"><font color=\"red\">※</font>住宿要求</td></tr>";
  for (i = 1; i <= window.unitnj_info2.unitnj_num.value;i++)
  str+='<tr><td align=\"center\"><input type="text" name=\"roomnj_name[]\" size=6></td>'+'<td align=\"center\"><select name=\"roomnj_gender[]\"><option value=\"1\">男</option><option value=\"2\">女</option></select></td>'+'<td align=\"center\"><input type="text" name=\"roomnj_unit[]\" size=6></td>'+'<td align=\"center\"><input type="text" name=\"roomnj_duty[]\" size=6></td>'+'<td align=\"center\"><input type="text" name=\"roomnj_address[]\" size=6></td>'+'<td align=\"center\"><input type="text" name=\"roomnj_phone[]\" size=6></td>'+'<td align=\"center\"><input type="text" name=\"roomnj_email[]\" size=6></td>'+'<td align=\"center\"><select name=\"roomnj_room[]\"><option value=\"1\">不住</option><option value=\"2\">单人</option><option value=\"3\">双人</option></select></td>'+'</tr>';
  str+="</table>";
  document.unitnj_info2.flag.value = "1";
  window.roomnj_list.innerHTML=str;
}

function checkfrm_roomlist()
{
	flag = document.unitnj_info2.flag.value;
	if(flag == "0")
	{
		return true;
	}
	num = document.unitnj_info2.unitnj_num.value;
	for (i=0;i<num ;i++ )
	{
		j=i + 1;
		temp2=document.unitnj_info2.elements['roomnj_name[]'];
		if(num!= 1)
		{
			
			temp=temp2[i];
		} else 
		{
			temp=temp2;
		}
		if(temp.value=="")
		{
			alert("请填写第"+j+"位姓名!");
			temp.focus();
			return false;
		}
		temp1=document.unitnj_info2.elements['roomnj_unit[]'];
		if(num!= 1)
		{
			temp=temp1[i];
		} else 
		{
			temp=temp1;
		}
		if(temp.value=="")
		{
			alert("请填写"+temp2[i].value+"工作单位!");
			temp.focus();
			return false;
		}
		temp1=document.unitnj_info2.elements['roomnj_duty[]'];
		if(num!= 1)
		{
			
			temp=temp1[i];
		} else 
		{
			temp=temp1;
		}
		if(temp.value=="")
		{
			alert("请填写"+temp2[i].value+"职务!");
			temp.focus();
			return false;
		}
		temp1=document.unitnj_info2.elements['roomnj_address[]'];
		if(num!= 1)
		{
			
			temp=temp1[i];
		} else 
		{
			temp=temp1;
		}
		if(temp.value=="")
		{
			alert("请填写"+temp2[i].value+"单位地址!");
			temp.focus();
			return false;
		}
		temp1=document.unitnj_info2.elements['roomnj_phone[]'];
		if(num!= 1)
		{
			
			temp=temp1[i];
		} else 
		{
			temp=temp1;
		}
		if(temp.value=="")
		{
			alert("请填写"+temp2[i].value+"联系电话!");
			temp.focus();
			return false;
		}
		temp1=document.unitnj_info2.elements['roomnj_email[]'];
		if(num!= 1)
		{
			
			temp=temp1[i];
		} else 
		{
			temp=temp1;
		}
		if(temp.value=="")
		{
			alert("请填写"+temp2[i].value+"电子信箱!");
			temp.focus();
			return false;
		}
	}
	return true;

}

function checkfrm_find() {
  temp = document.form_find.keyword;
  if (temp.value == "") {
    alert("请填写关键字");
    temp.focus();
    return false;
  } else {
    tmp = temp.value;
    while (tmp.charAt(0) == " ")
      tmp = tmp.substring(1);
    if (tmp == "") {
      alert("请填写关键字");
      temp.focus();
      return false;
    }
  }
}

function return_step1() {
  location.href = "http://ciep.chinajob.com/ciepnj/index.php"
}

function return_step() {
  document.returnstep.submit();
}

function download() {
  location.href = "http://ciep.chinajob.com/ciepnj/download.php"
}
