<!--
function print_TransFlash(flash_name,tW,tH)
{
	var flash_a='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   WIDTH='
	+tW
	+' HEIGHT='
	+tH
	+'>'
	+' <param name=WMODE value=Transparent>'
	+'<PARAM NAME=movie VALUE="'
	+flash_name
	+'"><EMBED src="'
	+flash_name
	+'" WIDTH='
	+tW
	+' HEIGHT='
	+tH
	+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>'
	document.write(flash_a);
}

function print_Flash(flash_name,tW,tH)
{
	var flash_a='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"   WIDTH='
	+tW
	+' HEIGHT='
	+tH
	+'><PARAM NAME=movie VALUE="'
	+flash_name
	+'"><EMBED src="'
	+flash_name
	+'" WIDTH='
	+tW
	+' HEIGHT='
	+tH
	+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>'
	document.write(flash_a);
}

function OpenFolder(strPath)
{
	try {
		var objShell = new ActiveXObject("wscript.shell");
		objShell.Run(strPath);
		objShell = null;
	}
		catch (e){alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确，而且所需的库文件均可用。\n使用本功能前,请将站点设置为本地站点,并且本地站点安全级别为最低.')
	
	}
}

function openJsWD(_target,widtha,heighta)
{
window.open(_target, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+widtha+",height="+heighta);
}

function kvsSH( obj )
{
	if (obj.style.display == "")
	{
		obj.style.display = "none";
	}
	else
	{
		obj.style.display = '';
	}
}

function check_my_action(){	
	var str1= "";	
	if(document.all.theSearchKey.value == "" && document.all.theSearchCol.value != "" )
	{
		str1="您所使用的筛选条件为空.\n\n是否继续执行?";
	}
	if (str1!="")
	{		
		return (confirm(str1));
	}else	{			
		return true;
	}
}


function check_my_list()
{
	var allCheck=funCountChecks(document.all.doID);	
	if (document.all.actionDo.value=="")return;
	var theMessage=document.all.actionDo.options[document.all.actionDo.selectedIndex].text+" "+ allCheck.toString() +" 条数据吗\? ";
	

	if(confirm(theMessage))
	{
		showProgressBar();
		document.myFormList.submit();
		}else{
		document.all.actionDo.selectedIndex=0;
	}
	
}


function funCountChecks(tCheckBtn){
	var numClick;numClick=0;
	var allNul=tCheckBtn.length;
	if (allNul==undefined){
		var e2=tCheckBtn;
		if (e2.checked==true){
			document.all.actionDo.disabled=false;
			return(1);
			}else{
			document.all.actionDo.disabled=true;
			return(0);
		}
	}
	var firstBtn=false;
	for (var i=0;i<allNul;i++){
		var e=tCheckBtn[i];
		if(e.checked){
			firstBtn=true;
			numClick=numClick+1;
		}
	}
	if (firstBtn==true){
		document.all.actionDo.disabled=false;
		return(numClick);
		}else{
		document.all.actionDo.disabled=true;
	}
}

function recoredCheckDelAll(tCheckBtn){
	var allNul=tCheckBtn.length;
	if (allNul==undefined){
		var e2=tCheckBtn;
		if (!e2.disabled){e2.checked=!e2.checked;}
		if (e2.checked==true){
			document.all.actionDo.disabled=false;
			}else{			
			document.all.actionDo.disabled=true;
		}
		return;
	}
	var firstBtn=tCheckBtn[0].checked;
	if (firstBtn==false){
		document.all.actionDo.disabled=false;
		}else{
		document.all.actionDo.disabled=true;
	}
	for (var i=0;i<allNul;i++){
		var e=tCheckBtn[i];
		if (!e.disabled){
			if(firstBtn==true){
				e.checked=false;
				}else{
				e.checked=true;
			}
		}
	}
}

function tableCheckAll(tCheckBtn){
	var allNul=tCheckBtn.length;
	if (allNul==undefined){
		var e2=tCheckBtn;
		if (e2.checked==true){
			document.all.actionDo.disabled=false;			
			}else{
			document.all.actionDo.disabled=true;
		}
		return;
	}
	var firstBtn=false;
	for (var i=0;i<allNul;i++){
		var e=tCheckBtn[i];
		if(e.checked){firstBtn=true;}
	}
	if (firstBtn==true){
		document.all.actionDo.disabled=false;		
		}else{		
		document.all.actionDo.disabled=true;
	}
}

function tableCTC(tCheckBtnCheck,tLine,tOver,tOut){
	var theColorS="#F1F1F1";
	
	if(tCheckBtnCheck==true){
		tOver.value=theColorS;
		tOut.value=theColorS;
		tLine.bgColor=theColorS;
		}else{
		tOver.value="#F1F1F1";
		tOut.value="#FFFFFF";
		tLine.bgColor="#F1F1F1";
	}
	tableCheckAll(document.all.doID);
}

function overBackColor(op,color){
	var i=op.length;
	var j
	for(j=0;j<i;j++)
	{
	op[j].bgColor=color
	}
}

function overBC(op,color){	
	op.bgColor=color;
}


function lefttoright(selfrom,seltto,maxnum){
	//把左边的多选框里选中的内容放入右边的多选框
	//formname为form的名字，selfrom为左边多选框的id,selto为右边多选框的id,maxnum为右边框最多可以加的项目数
	var lengthright,lengthleft,i,j;
	//var objfrom=document.forms[formname].elements[selfrom];
	//var objto=document.forms[formname].elements[seltto];
	var objfrom=document.all.namedItem(selfrom);
	var objto=document.all.namedItem(seltto);
	
	lengthleft=objfrom.options.length;
	lengthright=objto.options.length;
	
	//var testObj=document.all.namedItem(selfrom);//test_SEL;
	//var testObj2=document.all.namedItem(seltto);//test_SEL;
	//window.alert(testObj.options.length+','+testObj2.options.length);
	//window.alert(lengthright);
	var arrleftvalue=new Array();
	var arrlefttext=new Array();
	var arrrightvalue=new Array();
	var arrrighttext=new Array();
	var positon;
	for(i=0,j=0;i<lengthleft;i++){
		if(objfrom.options[i].selected){
			arrleftvalue[j]=objfrom.options[i].value;
			arrlefttext[j++]=objfrom.options[i].text;
			position=i;
			
		}
	}
	
	for(i=0,j=0;i<lengthright;i++){
		arrrightvalue[j]=objto.options[i].value;
		arrrighttext[j++]=objto.options[i].text;
	}
	var errflag=false;
	//首先检查个数是否超过要求
	/*
	if(!errflag){
		if(arrleftvalue.length+arrrightvalue.length>maxnum){
			errflag=true;
			window.alert("最多可以选择 "+maxnum+" 个选项！");
			return false;
		}
	}
	*/
	//选择不许重复
	if(!errflag){
		for(i=0;i<arrleftvalue.length;i++){
			for(j=0;j<arrrightvalue.length;j++){
				//window.alert(arrleftvalue[i]+" "+arrlefttext[i]+" "+arrrightvalue[j]+" "+arrrighttext[j]);
				
				if(arrleftvalue[i]==arrrightvalue[j]){
					errflag=true;
					window.alert("选择重复:"+arrrighttext[j]);
					return false;
				}
			}
		}
	}
	//如果选了第一个就不许选其他的
	/*
	if(!errflag){
		if(arrleftvalue.length+arrrightvalue.length>1){
			for (i=0;i<arrleftvalue.length;i++)
			{
				if(arrleftvalue[i]==objfrom.options[0].value){
					errflag=true;
					window.alert("选择了 "+objfrom.options[0].text+" 就不能够选其他选项！");
					return false;
				}
			}
			for (i=0;i<arrrightvalue.length;i++)
			{
				if(arrrightvalue[i]==objfrom.options[0].value){
					errflag=true;
					window.alert("选择了 "+objfrom.options[0].text+" 就不能够选其他选项！");
					return false;
				}
			}
			
		}
	}
	*/
	
	//将剩下的加入右边的多选框
	if(!errflag){
		j=objto.options.length;
		for (i=0;i<arrleftvalue.length;i++){
			//window.alert(arrlefttext[i]+" "+arrleftvalue[i]);
			objto.options[j++]=new Option(arrlefttext[i],arrleftvalue[i]);
		}
	       if(j>0)  	
		{
	         for(i=0;i<j-1;i++)
		       objto.options[i].selected=false;
	        	objto.options[j-1].selected=true;
         }
	}
	for(i=0;i<objfrom.options.length;i++)
	    objfrom.options[i].selected=false; 
	if(position<objfrom.options.length-1)
	   objfrom.options[position+1].selected=true;
	else objfrom.options[0].selected=true;
	
}

function righttoleft(selright){
	//将右边多选框选中的内容去掉，formname为多选框所在form的名字,selright为右边多选框的id
	//var objright=document.forms[formname].elements[selright];
	var objright=document.all.namedItem(selright);	
	
	var i=objright.length;
	var position;
	for(i--;i>=0;i--){
			if(objright[i].selected){
				objright[i]=null;
				position=i;
			}		
	}
	for(i=0;i<objright.length;i++)
	    objright[i].selected=false; 
	    
	 //window.alert(position);   
	if(position>0){
	   objright[position-1].selected=true;	
	}else{
		if(position=0) objright[0].selected=true;
	}
}

function selecttovalue(selright,toObj){
	//将右边多选框选中的内容去掉，formname为多选框所在form的名字,selright为右边多选框的id
	//var objright=document.forms[formname].elements[selright];
	var objright=document.all.namedItem(selright);	
	var objSave=document.all.namedItem(toObj);	
	var i=objright.length;
	if(i==-1)
	{
		objSave.value="";
		return false;
	}	
	var mixValue="";
	for(i=0;i<objright.length;i++)
	{
	  if (mixValue==""){
			mixValue=objright.options[i].value;
		}
		else{
			mixValue=mixValue+","+objright.options[i].value;
		}	    
	}
	objSave.value=mixValue;
	return true;	
}

function selectall(selform) {
  for (i = 0;i<selform.seljobfamily.options.length ; i++) {
    if (selform.seljobfamily.options[i].text != "") {
      selform.seljobfamily.options[i].selected = true;   
    }
  }

  for (i = 0;i<selform.selindustry.options.length ; i++) {
    if (selform.selindustry.options[i].text != "") {
      selform.selindustry.options[i].selected = true;   
    }
  }

  for (i = 0;i<selform.sellocation.options.length ; i++) {
    if (selform.sellocation.options[i].text != "") {
      selform.sellocation.options[i].selected = true;   
    }
  }
  return true;  
} 

function show_clock(){	
	var Digital=new Date()
	var cMonth=Digital.getMonth()+1;
	if (cMonth<10 )cMonth="0"+cMonth;
	var cYear=Digital.getYear();
	var cDay=Digital.getDate();
	if (cDay<10 )cDay="0"+cDay;	
	var hours=Digital.getHours();
	if (hours<10 )hours="0"+hours;
	var minutes=Digital.getMinutes();
	if (minutes<10 )minutes="0"+minutes;
	var seconds=Digital.getSeconds();
	if (seconds<10 )seconds="0"+seconds;
	var dn="上午" 
	if ((hours>=12)&&(minutes>=1)||(hours>=13)){
		dn="下午"
		hours=hours-12
	}
	if (hours==0)
	hours=12
	document.all.clock_show.value=" "+cYear+"年"+cMonth+"月"+cDay+"日 "+dn+" "+hours+"时"+minutes+"分"+seconds+"秒 ";
	setTimeout("show_clock()",1000)
}

	function showProgressBar()
{	
	//document.all.allbody.style.display ="";
	//document.all.prodress.style.display = "" ;
	//document.all.allbody.style.filter = "alpha(opacity=40);"
}
function showWait()
{	
	document.all.allbody.style.display ="";
	document.all.prodress.style.display = "" ;
	document.all.allbody.style.filter = "alpha(opacity=40);"
}

//-->
