
/*
-- ------ Control ------ --
unionNets.com
2010
*/
function netsControl(){}
//-- ------ #Parameters ------ --
netsControl.prototype.sName="tmpControl";

netsControl.prototype.sMenuPower_ButText_0="收起子菜单";
netsControl.prototype.sMenuPower_ButText_1="展开子菜单";

netsControl.prototype.sAjax_0=new netsSingleAjax();
netsControl.prototype.sChooseControl="";

netsControl.prototype.sRowOverStyle="ListCell1";
netsControl.prototype.sRowCheckedStyle="ListCell2";

//-- ------ #Methods ------ --
//-- ------ #Common ------ --
//-- #On mouse over --
netsControl.prototype.onControlLight=function(pControl,pStyle){
	pControl.className="SControlLight1 "+pStyle;
}
netsControl.prototype.onControlBlur=function(pControl,pStyle){
	pControl.className="SControl1 "+pStyle;
}
//-- #On row checked --
netsControl.prototype.onRowCheckedAll=function(pName){
	Coun0=0;
	while(document.getElementById("checkedBox"+Coun0)!=undefined){
		if(document.getElementById("checkedBox"+Coun0).checked){
			document.getElementById(pName+"Row"+Coun0).className=this.sRowCheckedStyle;
		}else{
			document.getElementById(pName+"Row"+Coun0).className=document.getElementById(pName+"RowStyle"+Coun0).value;
		}
		Coun0++;
	}
}

netsControl.prototype.onRowChecked=function(pName,pIndex){
	document.getElementById(pName+"Row"+pIndex).className=this.sRowOverStyle;
	return 0;
}
netsControl.prototype.onRowMouseover=function(pName,pIndex){
	document.getElementById(pName+"Row"+pIndex).className=this.sRowOverStyle;
	return 0;
}
netsControl.prototype.onRowMouseout=function(pName,pIndex){
	if(document.getElementById("checkedBox"+pIndex).checked){
		document.getElementById(pName+"Row"+pIndex).className=this.sRowCheckedStyle;
	}else{
		document.getElementById(pName+"Row"+pIndex).className=document.getElementById(pName+"RowStyle"+pIndex).value;
	}

	return 0;
}

//-- #On tab --
netsControl.prototype.onTabSlide=function(pIndex){
	var Coun0=0;
	var tmpElement0=document.getElementById("ListTab_"+Coun0);
	while(tmpElement0!=undefined){
		tmpElement0.className="TabNormal";
		Coun0++;
		tmpElement0=document.getElementById("ListTab_"+Coun0);
	}
	
	//-- #Set by index --
	tmpElement0=document.getElementById("ListTab_"+pIndex);
	tmpElement0.className="TabSelected";
	return 0;
}
netsControl.prototype.onTabChildSlide=function(pIndex){
	var Coun0=0;
	var tmpElement0=document.getElementById("panelChildLink"+Coun0);
	var tmpElement1=document.getElementById("panelChildTitle"+Coun0);
	var tmpElement2=document.getElementById("panelChildBody"+Coun0);
	while(tmpElement0!=undefined){
		tmpElement0.className="TabChildNormal";
		tmpElement0.childNodes[0].className="Link1 FBlack4";
		//tmpElement1.className=tmpCommon.sysHidden;
		tmpElement2.className=tmpCommon.sysHidden;
		Coun0++;
		tmpElement0=document.getElementById("panelChildLink"+Coun0);
		//tmpElement1=document.getElementById("panelChildTitle"+Coun0);
		tmpElement2=document.getElementById("panelChildBody"+Coun0);
	}
	//-- #Set by index --
	tmpElement0=document.getElementById("panelChildLink"+pIndex);
	//tmpElement1=document.getElementById("panelChildTitle"+pIndex);
	tmpElement2=document.getElementById("panelChildBody"+pIndex);
	tmpElement0.className="TabChildSelected";
	tmpElement0.childNodes[0].className="Link1 FBlack4";
	//tmpElement1.className="Title";
	tmpElement2.className="Panel";
	
	return 0;
}
netsControl.prototype.onTabOptionShow=function(pName,pClassname,pType){
	if(pType==0){
		document.getElementById(pName).className=pClassname;
	}else{
		document.getElementById(pName).className=tmpCommon.sysHidden;
	}
	return 0;
}
//-- #Data option --
netsControl.prototype.onSearch=function(pPage,pFlag){
	var tmpSTR=document.getElementById("SearchBox").value;
	var tmpAR0=tmpSTR.split(tmpCommon.sysSPLIT2);
	var tmpElement0="";
	
	tmpSTR="";
	var Coun0=0;
	while(tmpAR0.length-1>Coun0){
		tmpElement=document.getElementById(tmpAR0[Coun0]+"Txt"+pFlag);
		tmpSTR+=tmpCommon.encodeURL(tmpElement.value);
		if(tmpAR0.length-2>Coun0){
			tmpSTR+=tmpCommon.sysSPLIT1;
		}
		Coun0++;
	}
	
	if(pPage==""){
		pPage=tmpCommon.sysPage+"?";
	}
	tmpSTR=pPage+"&Search0="+tmpSTR;
	window.location=tmpSTR;
	return 0;
}
netsControl.prototype.onSearch_External=function(pPage,pFlag,pExtendParameter){
	var tmpSTR=document.getElementById("SearchBox").value;
	var tmpAR0=tmpSTR.split(tmpCommon.sysSPLIT2);
	var tmpElement0="";
	
	tmpSTR="";
	var Coun0=0;
	while(tmpAR0.length-1>Coun0){
		tmpElement=document.getElementById(tmpAR0[Coun0]+"Txt"+pFlag);
		tmpSTR+=tmpCommon.encodeURL(tmpElement.value);
		if(tmpAR0.length-2>Coun0){
			tmpSTR+=tmpCommon.sysSPLIT1;
		}
		Coun0++;
	}
	
	if(pPage==""){
		pPage=tmpCommon.sysPage+"?";
	}
	tmpSTR=pPage+"&Search0="+tmpSTR+pExtendParameter;
	window.location=tmpSTR;
	return 0;
}
netsControl.prototype.onNormal_Multiple=function(pPage){
	var tmpElement1=document.getElementById(this.sysForm);
	var tmpSTR="";
	
	Coun0=0;
	while(document.getElementById("checkedBox"+Coun0)!=undefined){
		if(document.getElementById("checkedBox"+Coun0).checked){
			tmpSTR+=document.getElementById("checkedBox"+Coun0).value+tmpCommon.sysSPLIT2;
		}
		Coun0++;
	}
	
	if(pPage==""){
		pPage=tmpCommon.sysPage;
	}
	window.location=pPage+"?ActionType="+tmpCommon.sysNormal_Multiple+"&"+tmpCommon.sysNormal_Multiple+"="+tmpSTR;
	return 0;
}
netsControl.prototype.onNormal_MultipleByTxt=function(pPage,pIDS,pConfig){
	var tmpElement1=document.getElementById(this.sysForm);
	var tmpSTR="";
	
	//-- ------ #Make url ------ --
	//-- #IDS --
	Coun0=0;
	while(document.getElementById("checkedBox"+Coun0)!=undefined){
		if(document.getElementById("checkedBox"+Coun0).checked){
			tmpSTR+=document.getElementById("checkedBox"+Coun0).value+tmpCommon.sysSPLIT2;
		}
		Coun0++;
	}
	if(pIDS==""){
		pIDS=tmpSTR;
	}
	if(pIDS=="" && 
		document.getElementById("MultipleByTxt_IDSTxt")!=undefined){
		pIDS=document.getElementById("MultipleByTxt_IDSTxt").value;
	}
	//-- #Config --
	if(pConfig=="" && 
		document.getElementById("MultipleByTxt_ColumnsConfigTxt")!=undefined &&
		document.getElementById("MultipleByTxt_RowSplitTxt")!=undefined && 
		document.getElementById("MultipleByTxt_ColumnSplitTxt")!=undefined){
		pConfig=document.getElementById("MultipleByTxt_ColumnsConfigTxt").value+tmpCommon.sysSPLIT1+
			document.getElementById("MultipleByTxt_RowSplitTxt").value.replace(/\,/g,tmpCommon.sysSPLIT15)+tmpCommon.sysSPLIT1+
			document.getElementById("MultipleByTxt_ColumnSplitTxt").value.replace(/\,/g,tmpCommon.sysSPLIT15);
	}
	
	if(pPage==""){
		pPage=tmpCommon.sysPage;
	}
	var tmpURL=pPage+"?ActionType="+tmpCommon.sysNormal_MultipleByTxt+"&"+tmpCommon.sysNormal_MultipleByTxt+"="+pIDS+
		"&"+tmpCommon.sysNormal_MultipleByTxt_Columns+"="+pConfig;
	window.location=tmpURL;
	return 0;
}
netsControl.prototype.onNormal_MultipleByRow=function(pPage,pIDS,pConfig){
	var tmpElement1=document.getElementById(this.sysForm);
	var tmpSTR="";
	
	//-- ------ #Make url ------ --
	//-- #IDS --
	Coun0=0;
	while(document.getElementById("checkedBox"+Coun0)!=undefined){
		if(document.getElementById("checkedBox"+Coun0).checked){
			tmpSTR+=document.getElementById("checkedBox"+Coun0).value+tmpCommon.sysSPLIT2;
		}
		Coun0++;
	}
	if(pIDS==""){
		pIDS=tmpSTR;
	}
	if(pIDS=="" && document.getElementById("MultipleByRow_IDSTxt")!=undefined){
		pIDS=document.getElementById("MultipleByRow_IDSTxt").value;
	}
	//-- #Config --
	if(pConfig=="" && document.getElementById("MultipleByRow_ColumnsConfigTxt")!=undefined){
		pConfig=document.getElementById("MultipleByRow_ColumnsConfigTxt").value+tmpCommon.sysSPLIT1+"---"+tmpCommon.sysSPLIT1+"---";
	}
	
	if(pPage==""){
		pPage=tmpCommon.sysPage;
	}
	var tmpURL=pPage+"?ActionType="+tmpCommon.sysNormal_MultipleByRow+"&"+tmpCommon.sysNormal_MultipleByRow+"="+pIDS+
		"&"+tmpCommon.sysNormal_MultipleByRow_Columns+"="+pConfig;
	window.location=tmpURL;
	return 0;
}
netsControl.prototype.onNew_MultipleByRow=function(pElement){
	//-- ### --
	var Coun0=0;
	var tmpCONTENT="";
	tmpBox=document.getElementById(tmpCommon.sysNormal_MultipleByRow_Panel);
	tmpControls=document.getElementById(tmpCommon.sysNormal_MultipleByRow_Control).value;
	tmpAR_Controls=tmpControls.split(tmpCommon.sysSPLIT1);
	tmpIndex=0;
	//-- #ADD --
	tmpRow=pElement.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
	tmpBox.innerHTML+="<div>"+tmpRow.innerHTML+"</div>";
	tmpTable=tmpBox.childNodes[tmpBox.childNodes.length-1].childNodes[1];
	tmpTable.rows[tmpTable.rows.length-1].cells[1].childNodes[0].value="0";
	//-- #SET ID --
	this.onResetid_MultipleByRow();
	
	
	return 0;
}
netsControl.prototype.onDelete_MultipleByRow=function(pElement){
	//-- ### --
	var Coun0=0;
	var tmpCONTENT="";
	tmpBox=document.getElementById(tmpCommon.sysNormal_MultipleByRow_Panel);
	tmpControls=document.getElementById(tmpCommon.sysNormal_MultipleByRow_Control).value;
	tmpAR_Controls=tmpControls.split(tmpCommon.sysSPLIT1);
	tmpIndex=0;
	//-- #ADD --
	tmpRow=pElement.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
	tmpRow.innerHTML="";
	tmpRow.removeNode(true);
	//-- #SET ID --
	this.onResetid_MultipleByRow();
	
	
	return 0;
}
netsControl.prototype.onResetid_MultipleByRow=function(){
	//-- ### --
	var Coun0=0;
	var tmpCONTENT="";
	tmpBox=document.getElementById(tmpCommon.sysNormal_MultipleByRow_Panel);
	tmpControls=document.getElementById(tmpCommon.sysNormal_MultipleByRow_Control).value;
	tmpAR_Controls=tmpControls.split(tmpCommon.sysSPLIT1);
	tmpIndex=0;
	//-- ### --
	//-- #SET ID --
	Coun0=0;
	while(tmpBox.childNodes.length>Coun0){
		tmpIndex=tmpBox.childNodes[Coun0].childNodes[0].innerHTML;
		tmpBox.childNodes[Coun0].childNodes[0].innerHTML=Coun0;
		Coun1=0;
		while(tmpAR_Controls.length>Coun1 && tmpAR_Controls[Coun1]!=""){
			tmpElement=tmpCommon.netsElementById(tmpBox.childNodes[Coun0],tmpAR_Controls[Coun1]+"_"+tmpIndex+"Txt");
			if(tmpElement!=undefined){
				tmpElement.id=tmpElement.name=tmpAR_Controls[Coun1]+"_"+Coun0+"Txt";
			}
			
			Coun1++;
		}
		tmpElement=tmpCommon.netsElementById(tmpBox.childNodes[Coun0],"IDTxt_"+tmpIndex);
		if(tmpElement!=undefined){
			tmpElement.id=tmpElement.name="IDTxt_"+Coun0;
		}
		
		Coun0++;
	}
	
	return 0;
}
netsControl.prototype.onDelete=function(pID){
	if(!confirm("数据删除后将不能恢复，您确定删除本条数据吗?")){
		tmpCommon.setActionWithOut(2);
		return 1;
	}else{
		tmpCommon.setActionWithOut(1);
	}
	document.getElementById(tmpCommon.sysMainID).value=pID;
}
netsControl.prototype.onDelete_Multiple=function(){
	if(!confirm("数据删除后将不能恢复，您确定删除所选数据吗?")){
		tmpCommon.setActionWithOut(2);
		return 1;
	}else{
		tmpCommon.setActionWithOut(1);
	}
}
netsControl.prototype.onModify_PageLine=function(pID,pIndex){
	document.getElementById(tmpCommon.sysMainID).value=pID+tmpCommon.sysSPLIT2+pIndex;
}
netsControl.prototype.onModify_Page=function(){
	if(!confirm("本页面的数据修改都将被保存，您确定做此操作吗?")){
		tmpCommon.setActionWithOut(2);
		return 1;
	}else{
		tmpCommon.setActionWithOut(1);
	}
}
netsControl.prototype.onModify_Multiple=function(){

}
netsControl.prototype.onModify_MultipleByTxt=function(){

}
//-- #Childlist --
netsControl.prototype.Childlist_Load=function(pPAGE,pID,pROOTID){
	document.getElementById("childlistBox_"+pID).className="";
	//-- #SEARCH --
	var tmpFlag="ChildlistSearch";
	var tmpSTR=document.getElementById("SearchBox").value;
	var tmpAR0=tmpSTR.split(tmpCommon.sysSPLIT2);
	var tmpElement0="";
	
	var tmpSEARCHSTR="";
	var Coun0=0;
	while(tmpAR0.length-1>Coun0){
		tmpElement=document.getElementById(tmpAR0[Coun0]+"Txt"+tmpFlag);
		tmpSEARCHSTR+=tmpCommon.encodeURL(tmpElement.value);
		if(tmpAR0.length-2>Coun0){
			tmpSEARCHSTR+=tmpCommon.sysSPLIT1;
		}
		Coun0++;
	}
	//-- #SEND --
	var tmpURL=pPAGE+"?ActionType=Childlist_Childlist&Childlist_Childlist="+
		tmpCommon.encodeURL(pID,0)+tmpCommon.sysSPLIT1+
		tmpCommon.encodeURL(pROOTID,0)+
		"&Search0="+tmpSEARCHSTR;
	this.sAjax_0.sFlag="Childlist_Childlist";
	this.sAjax_0.sPanel="childlistBox_"+pID;
	this.sAjax_0.sendRequestSp(tmpURL,"netsControl_ChildlistLoad_callback()");
	//window.open(tmpURL,"_blank");

	return 0;
}
function netsControl_ChildlistLoad_callback(){
	var tmpFlag=tmpControl.sAjax_0.sFlag;
	var tmpPanel=document.getElementById(tmpControl.sAjax_0.sPanel);
	var tmpURL=tmpControl.sAjax_0.sURL;
	var tmpHttpRequests=tmpControl.sAjax_0.sHttpRequests;
	//alert(tmpHttpRequests.responseText);
	if(tmpHttpRequests.readyState==4){
		//alert(tmpHttpRequests.responseText);
		var tmpData=getDataByFlag(tmpHttpRequests.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			tmpPanel.innerHTML=tmpData;
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
		tmpPanel.innerHTML=tmpCommon.sysLoading_Ajax;
	}
}

netsControl.prototype.Childlist_Hidden=function(pID){
	document.getElementById("childlistBox_"+pID).className=tmpCommon.sysHidden;

	return 0;
}
netsControl.prototype.Childlist_AddChild=function(pPAGE,pID,pROOTID){
	document.getElementById("childlistNormalBox_"+pROOTID).className="";
	//-- #SEND --
	var tmpURL=pPAGE+"?ActionType=Childlist_Normal&Childlist_Normal="+tmpCommon.encodeURL(pID,0)+tmpCommon.sysSPLIT1+tmpCommon.encodeURL(pROOTID,0);
	this.sAjax_0.sFlag="Childlist_Normal";
	this.sAjax_0.sPanel="childlistNormalBox_"+pROOTID;
	this.sAjax_0.sendRequestSp(tmpURL,"netsControl_AddChild_callback()");
	//window.open(tmpURL,"_blank");

	return 0;
}
function netsControl_AddChild_callback(){
	var tmpFlag=tmpControl.sAjax_0.sFlag;
	var tmpPanel=document.getElementById(tmpControl.sAjax_0.sPanel);
	var tmpURL=tmpControl.sAjax_0.sURL;
	var tmpHttpRequests=tmpControl.sAjax_0.sHttpRequests;
	//alert(tmpHttpRequests.responseText);
	if(tmpHttpRequests.readyState==4){
		//alert(tmpHttpRequests.responseText);
		var tmpData=getDataByFlag(tmpHttpRequests.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			tmpPanel.innerHTML=tmpData;
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
		tmpPanel.innerHTML=tmpCommon.sysLoading_Ajax;
	}
}
netsControl.prototype.Childlist_EditboxHidden=function(pID){
	document.getElementById("childlistNormalBox_"+pID).className=tmpCommon.sysHidden;

	return 0;
}
netsControl.prototype.Childlist_EditboxSave=function(pPAGE,pID,pROOTID){
	document.getElementById("childlistBox_"+pROOTID).className="";
	//-- #SEND --
	var tmpURL=pPAGE+"?ActionType=Childlist_SAVE"+
		"&Childlist_SAVE="+tmpCommon.encodeURL(pROOTID,0)+tmpCommon.sysSPLIT1+tmpCommon.encodeURL(pROOTID,0)+
		"&Childlist_SAVE_Controls="+tmpCommon.encodeURL(document.getElementById("childlistNormalBox_Controls"+pROOTID).value,1);
	var tmpAR0=document.getElementById("childlistNormalBox_Controls"+pROOTID).value.split(tmpCommon.sysSPLIT1);
	var Coun0=0;
	while((tmpAR0.length-1)>Coun0){
		tmpURL+="&"+tmpAR0[Coun0]+"="+tmpCommon.encodeURL(document.getElementById(tmpAR0[Coun0]+"Txt_"+pROOTID).value,0);
		Coun0++;
	}
	
	this.sAjax_0.sFlag="Childlist_Childlist";
	this.sAjax_0.sPanel="childlistBox_"+pROOTID;
	this.sAjax_0.sendRequestSp(tmpURL,"netsControl_ChildlistLoad_callback()");
	//window.open(tmpURL,"_blank");

	return 0;
}



//-- ------ #Control ------ --
//-- #Platform map --
netsControl.prototype.platformMap_Show=function(pIndex){
	var Coun0=0;
	while(Coun0<24 && document.getElementById("platformMapBut_"+Coun0)!=undefined){
		tmpElement_0=document.getElementById("platformMapBut_"+Coun0);
		tmpElement_1=document.getElementById("platformMapBox_"+Coun0);
		if(tmpElement_0!=undefined){
			tmpElement_0.className="platformMap_TabNormal";
			tmpElement_0.childNodes[0].className="Link1 SBlue1";
			tmpElement_1.className=tmpCommon.sysHidden;
		}
		Coun0++;
	}
	tmpElement_0=document.getElementById("platformMapBut_"+pIndex);
	tmpElement_1=document.getElementById("platformMapBox_"+pIndex);
	tmpElement_0.className="platformMap_TabSelected";
	tmpElement_0.childNodes[0].className="Link2 FWhite1";
	tmpElement_1.className="";
	
	return 0;
}
netsControl.prototype.platformMap_P_Show=function(pIndex){
	var Coun0=0;
	while(Coun0<18){
		tmpElement_0=document.getElementById("platformMapBut_"+Coun0);
		tmpElement_1=document.getElementById("platformMapBox_"+Coun0);
		if(tmpElement_0!=undefined){
			tmpElement_0.className="platformMap_TabNormal";
			tmpElement_0.childNodes[0].className="Link1 SBlue1";
			tmpElement_1.className=tmpCommon.sysHidden;
		}
		Coun0++;
	}
	tmpElement_0=document.getElementById("platformMapBut_"+pIndex);
	tmpElement_1=document.getElementById("platformMapBox_"+pIndex);
	tmpElement_0.className="platformMap_TabSelected";
	tmpElement_0.childNodes[0].className="Link2 SBlue1 FStrong";
	tmpElement_1.className="";
	
	return 0;
}
//-- #Power menu --

netsControl.prototype.menuPower_ShowMenu=function(pName,pIndex){
	var Coun0=0;
	
	if(document.getElementById(pName+"_"+pIndex+"_Box").className==tmpCommon.sysHidden){
		Coun0=0;
		while(document.getElementById(pName+"_"+Coun0+"_Box")!=undefined){
			document.getElementById(pName+"_"+Coun0+"_Box").className=tmpCommon.sysHidden;
			document.getElementById(pName+"_"+Coun0+"_FlagButton").innerHTML="+";
			Coun0++;
		}
		
		document.getElementById(pName+"_"+pIndex+"_Box").className="MenuPower_6";
		document.getElementById(pName+"_"+pIndex+"_FlagButton").innerHTML="-";
	}else{
		document.getElementById(pName+"_"+pIndex+"_Box").className=tmpCommon.sysHidden;
		document.getElementById(pName+"_"+pIndex+"_FlagButton").innerHTML="+";
	}

	return 0;
}
netsControl.prototype.menuPower_Check=function(pName,pIndex0,pIndex1,pIndex2){
	var Coun0=0;
	var Coun1=0;
	var Coun2=0;
	while(document.getElementById(pName+"_"+pIndex0+"_"+pIndex1+"_"+Coun2)!=undefined){
		if(pIndex2==0 && Coun2>0){
			document.getElementById(pName+"_"+pIndex0+"_"+pIndex1+"_"+Coun2).checked=document.getElementById(pName+"_"+pIndex0+"_"+pIndex1+"_"+pIndex2).checked;
		}

		Coun2++;
	}
	if(pIndex2>0 && document.getElementById(pName+"_"+pIndex0+"_"+pIndex1+"_"+pIndex2).checked==true){
		document.getElementById(pName+"_"+pIndex0+"_"+pIndex1+"_"+0).checked=true;
	}
	
	this.menuPower_Summary(pName);
	return 0;
}
netsControl.prototype.menuPower_CheckAll=function(pName,pIndex0,pIndex1,pIndex2){
	var Coun0=0;
	var Coun1=0;
	var Coun2=0;
	var tmpTopflag=false;
	var tmpBoolean=false;
	while(document.getElementById(pName+"_"+Coun0)!=undefined){
		if(pIndex1<0 && pIndex2<0){
			tmpBoolean=document.getElementById(pName+"_"+Coun0).checked;
		}
		Coun1=0;
		Coun2=0;
		while(document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2)!=undefined){
			while(document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2)!=undefined){
				if(pIndex0==Coun0){
					document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2).checked=tmpBoolean;
				}
				Coun2++;
			}
			Coun2=0;
			Coun1++;
		}
		Coun0++;
	}
	
	this.menuPower_Summary(pName);
	return 0;
}
netsControl.prototype.menuPower_Summary=function(pName){
	var tmpCONTENT="";
	var Coun0=0;
	var Coun1=0;
	var Coun2=0;
	var tmpSTR="";
	while(document.getElementById(pName+"_"+Coun0)!=undefined){
		Coun1=0;
		Coun2=0;
		while(document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2)!=undefined){
			tmpSTR="";
			while(document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2)!=undefined){
				if(Coun2==0 && document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2).checked==true){
					tmpSTR=document.getElementById(pName+"_"+Coun0).value+tmpCommon.sysSPLIT1+document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2).value+tmpCommon.sysSPLIT1;
				}else if(document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2).checked==true){
					if(tmpSTR==""){
						tmpSTR=document.getElementById(pName+"_"+Coun0).value+tmpCommon.sysSPLIT1+document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+0).value+tmpCommon.sysSPLIT1;
					}
					tmpSTR+=document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2).value+tmpCommon.sysSPLIT1;
				}
				
				Coun2++;
			}
			if(tmpSTR!=""){
				tmpSTR+=tmpCommon.sysSPLIT2;
				tmpCONTENT+=tmpSTR;
			}
			Coun2=0;
			Coun1++;
		}
		Coun0++;
	}


	document.getElementById(pName).value=tmpCONTENT;
	return 0;
}


/*
netsControl.prototype.menuPower_ShowMenu=function(pName){
	var tmpElement_0=document.getElementById(pName+"_But");
	var tmpElement_1=document.getElementById(pName+"_Box");
	
	if(tmpElement_0.innerHTML==this.sMenuPower_ButText_0){
		tmpElement_0.innerHTML=this.sMenuPower_ButText_1;
		tmpElement_1.className=tmpCommon.sysHidden;
	}else{
		tmpElement_0.innerHTML=this.sMenuPower_ButText_0;
		tmpElement_1.className="MenuPower_0";
	}
}
netsControl.prototype.menuPower_Check=function(pName){
	var tmpElement_0=document.getElementById(pName);
	var tmpChecked=tmpElement_0.checked;
	
	Coun0=0;
	tmpElement_0=document.getElementById(pName+"_"+Coun0);
	while(tmpElement_0!=undefined){
		tmpElement_0.checked=tmpChecked;
		Coun1=0;
		tmpElement_0=document.getElementById(pName+"_"+Coun0+"_"+Coun1);
		while(tmpElement_0!=undefined){
			tmpElement_0.checked=tmpChecked;
			Coun2=0;
			tmpElement_0=document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2);
			while(tmpElement_0!=undefined){
				tmpElement_0.checked=tmpChecked;
				Coun2++;
				tmpElement_0=document.getElementById(pName+"_"+Coun0+"_"+Coun1+"_"+Coun2);
			}
			Coun1++;
			tmpElement_0=document.getElementById(pName+"_"+Coun0+"_"+Coun1);
		}
		Coun0++;
		tmpElement_0=document.getElementById(pName+"_"+Coun0);
	}
}
*/

//-- ------ #Choose box ------ --
//-- #Common --
netsControl.prototype.chooseCall=function(pParameter,pControl){
	this.sChooseControl=pControl;
	var tmpAR0=pParameter.split(tmpCommon.sysSPLIT2);
	if(tmpAR0.length<4){
		return 1;
	}
	
	if(tmpAR0[0]=="chooseSearch"){
		tmpTextChoose.Open(tmpAR0,pControl);
	}else if(tmpAR0[0]=="chooseDay"){
		tmpChooseDay.Open(tmpAR0,pControl);
	}else if(tmpAR0[0]=="chooseFolder"){
		tmpChooseFolder.Initial(tmpAR0,pControl);
	}else if(tmpAR0[0]=="chooseList"){
		//this.showExternalList(tmpAR0,pControl);
	}else{
		return 1;
	}
	return 0;
}

//-- ------ #Instanct ------ --
var tmpControl=new netsControl();



/*
-- ------ TextChoose ------ --
*/
function TextChoose(){}
//-- ------ #Parameters ------ --
TextChoose.prototype.sName="tmpTextChoose";
TextChoose.prototype.sControlName="tmpTextChoose";
TextChoose.prototype.sBox="_ChooseBox";
TextChoose.prototype.sContent="_ContentBox_A";
TextChoose.prototype.sFloatPosition=28;
TextChoose.prototype.sListTemplate=new Array();

//-- ------ #Methods ------ --
TextChoose.prototype.Open=function(pValues,pControl){
	var tmpAR0=pValues;
	document.getElementById(tmpAR0[1]+"_Index").value=-1;
	
	var tmpBox=document.getElementById(tmpAR0[1]+this.sBox);
	var tmpContent=document.getElementById(tmpAR0[1]+this.sContent);
	var tmpShow=document.getElementById(tmpAR0[1]+"Show");
	tmpBox.className="chooseBox";
	tmpBox.style.marginTop=this.sFloatPosition+tmpCommon.sysPx;
	var tmpURL=tmpAR0[3]+"?ActionType="+tmpAR0[2]+"&"+tmpAR0[2]+"="+tmpAR0[1]+tmpCommon.sysSPLIT1+"-1";
	tmpContent.src=tmpURL;
	tmpContent.className="chooseContent";
	
	tmpFrames.showBlack_ById(tmpAR0[1]+"_BgHidden","BgHidden",0);
	tmpFrames.hiddenAllElement("Select",0);
	return 0;
}
TextChoose.prototype.Open_Byrow=function(pControl){
	var tmpAR0=new Array(
		document.getElementById(this.sControlName+"_Patameter0").value,
		document.getElementById(this.sControlName+"_Patameter1").value,
		document.getElementById(this.sControlName+"_Patameter2").value,
		document.getElementById(this.sControlName+"_Patameter3").value);
	var tmpList=parent.document.getElementById(this.sControlName+"List");
	var Coun0=2;
	while(tmpList.rows.length>Coun0){
		if(tmpList.rows[Coun0]==pControl.parentNode.parentNode){
			document.getElementById(this.sControlName+"_Index").value=Coun0;
			Coun0=tmpList.rows.length+10;
		}else{
			Coun0++;
		}
	}
	
	var tmpBox=document.getElementById(tmpAR0[1]+this.sBox);
	var tmpContent=document.getElementById(tmpAR0[1]+this.sContent);
	var tmpShow=document.getElementById(tmpAR0[1]+"Show");
	tmpBox.className="chooseBox";
	tmpBox.style.marginTop=this.sFloatPosition+tmpCommon.sysPx;
	var tmpURL=tmpAR0[3]+"?ActionType="+tmpAR0[2]+"&"+tmpAR0[2]+"="+tmpAR0[1]+tmpCommon.sysSPLIT1+"-1";
	tmpContent.src=tmpURL;
	tmpContent.className="chooseContent";
	
	tmpFrames.showBlack_ById(this.sName+"_BgHidden","BgHidden",0);
	tmpFrames.hiddenAllElement("Select",0);
	return 0;
}
TextChoose.prototype.Close=function(pHead){
	document.getElementById(pHead+this.sBox).className="DHidden";
	if(document.getElementById(pHead+this.sContent).src!=undefined){
		document.getElementById(pHead+this.sContent).src="";
	}else{
		document.getElementById(pHead+this.sContent).innerHTML="";
	}
	document.getElementById(pHead+this.sContent).className=tmpCommon.sysHidden;
	document.getElementById(pHead+"_Index").value=-1;
	
	tmpFrames.showBlack_ById(pHead+"_BgHidden","BgHidden",1);
	tmpFrames.hiddenAllElement("Select",1);
}
TextChoose.prototype.Add=function(pID,pText,pHead){
	if(parent.document.getElementById(pHead+"_Type").value==0){
		this.Choosein(pID,pText,pHead);
	}else{
		this.Chooseins(pID,pText,pHead);
	}
}
TextChoose.prototype.Choosein=function(pID,pText,pHead){
	parent.document.getElementById(pHead+"Show").value=pText;
	parent.document.getElementById(pHead).value=pID;
}
TextChoose.prototype.Chooseins=function(pID,pText,pName){
	var tmpList=parent.document.getElementById(pName+"List");
	var tmpINT=parseInt(parent.document.getElementById(pName+"_Index").value);
	//-- ------ #Check ------ --
	var Coun0=2;
	while(tmpList.rows.length>Coun0){
		if(tmpList.rows[Coun0].cells[0].childNodes[0].innerHTML==pID && Coun0!=tmpINT){
			return 1;
		}else{
			Coun0++;
		}
	}
	//-- ------ #Modify ------ --
	if(tmpINT>=0){
		tmpList.rows[tmpINT].cells[0].childNodes[0].innerHTML=pID;
		tmpList.rows[tmpINT].cells[1].childNodes[0].value=pText;
		parent.tmpTextChoose.getChooseValue(pName);
		return 1;
	}
	
	//-- ------ #Add row ------ --
	tmpSTYLE="ListCell";
	if(tmpList.rows.length>2){
		if(tmpList.rows[2].className=="ListCell"){
			tmpSTYLE="ListCell0";
		}
	}
	tmpList.insertRow(2);
	tmpList.rows[2].className=tmpSTYLE;
	var Coun0=0;
	while(tmpList.rows[1].cells.length>Coun0){
		tmpList.rows[2].insertCell(Coun0);
		tmpSTR=tmpList.rows[1].cells[Coun0].innerHTML;
		tmpSTR=tmpSTR.replace(/\{Nets.ID}/g,pID);
		tmpSTR=tmpSTR.replace(/\{Nets.Text}/g,pText);
		tmpSTR=tmpSTR.replace(/\{Nets.Name}/g,pName);
		tmpSTR=tmpSTR.replace(/\{Nets.Style}/g,tmpSTYLE);
		tmpList.rows[2].cells[Coun0].innerHTML=tmpSTR;
		tmpList.rows[2].cells[Coun0].className=tmpList.rows[1].cells[Coun0].className;
		
		Coun0++;
	}
	//-- ------ #Reset value ------ --
	parent.tmpTextChoose.getChooseValue(pName);
	
	return 0;
}
TextChoose.prototype.Delete=function(pControl){
	var tmpList=parent.document.getElementById(this.sControlName+"List");
	var Coun0=2;
	while(tmpList.rows.length>Coun0){
		if(tmpList.rows[Coun0]==pControl.parentNode.parentNode){
			tmpList.deleteRow(Coun0);
			Coun0=tmpList.rows.length+10;
		}else{
			Coun0++;
		}
	}
	
	this.getChooseValue(this.sControlName);
	return 0;
}
TextChoose.prototype.DeleteChoose=function(pColumnsCount){
	var tmpList=parent.document.getElementById(this.sControlName+"List");
	var Coun0=2;
	while(tmpList.rows.length>Coun0){
		if(tmpList.rows[Coun0].cells[pColumnsCount].childNodes[0].checked){
			tmpList.deleteRow(Coun0);
		}else{
			Coun0++;
		}
	}
	
	this.getChooseValue(this.sControlName);
	return 0;
}
TextChoose.prototype.onRowChecked=function(pControl){
	if(pControl.checked){
		pControl.parentNode.parentNode.className=tmpControl.sRowCheckedStyle;
	}else{
		tmpSTR=pControl.parentNode.parentNode.cells[0].childNodes[1].value;
		pControl.parentNode.parentNode.className=tmpSTR;
	}
	
	return 0;
}
TextChoose.prototype.onCheckedALL=function(pColumnsCount){
	var tmpList=parent.document.getElementById(this.sControlName+"List");
	var Coun0=2;
	while(tmpList.rows.length>Coun0){
		if(document.getElementById(this.sControlName+"_ChooseAll").checked){
			tmpList.rows[Coun0].cells[pColumnsCount].childNodes[0].checked=true;
			tmpList.rows[Coun0].className=tmpControl.sRowCheckedStyle;
		}else{
			tmpList.rows[Coun0].cells[pColumnsCount].childNodes[0].checked=false;
			tmpSTR=tmpList.rows[Coun0].cells[0].childNodes[1].value;
			tmpList.rows[Coun0].className=tmpSTR;
		}
		Coun0++;
	}
	
	return 0;
}
TextChoose.prototype.onRowMouseover=function(pControl){
	pControl.className=tmpControl.sRowOverStyle;
	
	return 0;
}
TextChoose.prototype.onRowMouseout=function(pControl,pStyle){
	tmpSTR=pControl.cells[0].childNodes[1].value;
	if(pControl.cells[pControl.cells.length-2].childNodes[0].checked){
		pControl.className=tmpControl.sRowCheckedStyle;
	}else{
		pControl.className=tmpSTR;
	}
	
	return 0;
}
TextChoose.prototype.getChooseValue=function(pName){
	var tmpList=document.getElementById(pName+"List");
	var tmpCONTENT="";
	var Coun0=2;
	while(tmpList.rows.length>Coun0){
		var Coun1=0;
		while((tmpList.rows[Coun0].cells.length-2)>Coun1){
			if(Coun1==0){
				tmpCONTENT+=tmpList.rows[Coun0].cells[Coun1].childNodes[0].innerHTML+tmpCommon.sysSPLIT2;
			}else{
				tmpCONTENT+=tmpList.rows[Coun0].cells[Coun1].childNodes[0].value+tmpCommon.sysSPLIT2;
			}
			Coun1++;
		}
		tmpCONTENT+=tmpCommon.sysSPLIT5;
		Coun0++;
	}
	
	document.getElementById(pName).value=tmpCONTENT;
	return 0;
}


//-- ------ #Instanct ------ --
var tmpTextChoose=new TextChoose();


/*
-- ------ ZoneChoose ------ --
*/
function ZoneChoose(){}
//-- ------ #Parameters ------ --
ZoneChoose.prototype.sName="tmpZoneChoose";
ZoneChoose.prototype.sFormatAR=Array("Country","Province","City","Region","Street");
ZoneChoose.prototype.sFlag="nets_Zone";
ZoneChoose.prototype.sCallbackPage="";
ZoneChoose.prototype.sAjax_0=new netsSingleAjax();

//-- ------ #Methods ------ --
ZoneChoose.prototype.Initial=function(pControl,pFormat,pValue){
	var tmpSPLIT="_";
	var tmpElement;
	var tmpAR0=pFormat.split(sysSPLIT8);
	var tmpAR1=pValue.split(sysSPLIT8);
	//-- Visibility --
	if(tmpAR1.length==6){
		var tmpINT=0;
		for(Coun0=0;this.sFormatAR.length>Coun0;Coun0++){
			tmpElement=document.getElementById(pControl+tmpSPLIT+this.sFormatAR[Coun0]);
			if(tmpAR0[0]==this.sFormatAR[Coun0] || tmpINT>0){
				tmpValue=tmpAR1[tmpINT];
				this.sAjax_0.sFlag=sysZoneFlag;
				this.sAjax_0.sPanel=tmpElement.id;
				this.sAjax_0.sParameter=tmpValue;
				var tmpURL=this.sCallbackPage+"?Zone="+pControl+","+tmpValue+",1";//Zone:Control,Value,Type
				this.sAjax_0.sendRequestSp(tmpURL,"zoneChoose_Initial_callback()");
				//window.open(tmpURL,"_blank");
				tmpINT++;
			}else{
				tmpElement.className=tmpCommon.sysHidden;
			}
		}
	}
	//-- Null --
	if(tmpAR1.length!=6){
		document.getElementById(pControl+tmpSPLIT+this.sFormatAR[0]).options.add(new Option("中国","2",true,false));
	}
	
	return 0;
}
function zoneChoose_Initial_callback(){
	var tmpSPLIT="_";
	var tmpCoun0=0;
	while(zoneAjax.sIndex>tmpCoun0){
		var tmpURL=chooseAjax.sURL[tmpCoun0];
		var tmpPanel=document.getElementById(zoneAjax.sPanel[tmpCoun0]);
		var tmpHttpRequest=zoneAjax.sHttpRequests[tmpCoun0];
		//alert(tmpHttpRequest.responseText);
		if(tmpHttpRequest.readyState==4 && zoneAjax.sDone[tmpCoun0]==0){
			//alert(tmpHttpRequest.responseText);
			var tmpData=getDataByFlag(tmpHttpRequest.responseText,zoneAjax.sFlag[tmpCoun0]);
			if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
				//alert(tmpData);
				var tmpControlAR0=tmpPanel.id.split(tmpSPLIT);
				if(tmpControlAR0.length==2){
					//alert(tmpData);
					var tmpAR0=tmpData.split(sysSPLIT2);
					for(Coun1=0;tmpAR0.length>Coun1;Coun1++){
						var tmpAR1=tmpAR0[Coun1].split(sysSPLIT1);
						if(tmpAR1.length==3){
							if(tmpAR1[1]==zoneAjax.sParameter[tmpCoun0]){
								tmpPanel.options.add(new Option(tmpAR1[1],tmpAR1[0],true,true));
							}else{
								tmpPanel.options.add(new Option(tmpAR1[1],tmpAR1[0],true,false));
							}
						}
					}
				}
				tmpFrames.showLoading(1);
			}else{
				tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
				tmpFrames.showLoading(1);
			}
			zoneAjax.sDone[tmpCoun0]=1;
		}else{
			tmpFrames.showLoading(0);
		}
		tmpCoun0++;
	}
}
ZoneChoose.prototype.Choose=function(pControl,pFlag){
	var tmpINT=0;
	var tmpSPLIT="_";
	var tmpControl=pFlag;
	var tmpValue="";
	//-- Set --
	tmpINT=0;
	for(Coun0=0;this.sFormatAR.length>Coun0;Coun0++){
		if(pFlag==this.sFormatAR[Coun0]){
			tmpINT=Coun0+1;
		}
	}
	this.sAjax_0.sFlag[this.sAjax_0.sIndex]=sysZoneFlag;
	this.sAjax_0.sPanel[this.sAjax_0.sIndex]=pControl+tmpSPLIT+this.sFormatAR[tmpINT];
	tmpValue=document.getElementById(pControl+tmpSPLIT+pFlag).options[document.getElementById(pControl+tmpSPLIT+pFlag).selectedIndex].value;
	//-- Send --
	var tmpURL=this.sCallbackPage+"?Zone="+tmpControl+","+tmpValue+",0";//Zone:Control,Value,Type
	this.sAjax_0.sendRequestSp(tmpURL,"zoneChoose_choose_callback()");
	//window.open(tmpURL,"_blank");
}
function zoneChoose_choose_callback(){
	var tmpSPLIT="_";
	var tmpFlag=tmpZoneChoose.sAjax_0.sFlag;
	//var tmpPanel=document.getElementById(tmpZoneChoose.sAjax_0.sPanel);
	var tmpURL=tmpZoneChoose.sAjax_0.sURL;
	var tmpHttpRequests=tmpZoneChoose.sAjax_0.sHttpRequests;
	//alert(tmpHttpRequests.responseText);
	if(tmpHttpRequests.readyState==4){
		//alert(tmpHttpRequests.responseText);
		var tmpData=getDataByFlag(tmpHttpRequests.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			var tmpAR0=tmpZoneChoose.sAjax_0.sPanel.split(tmpSPLIT);
			if(tmpAR0.length==2){
				tmpZoneChoose.Rset(tmpAR0,tmpData);
			}
	    	tmpFrames.showLoading(1);
	    }else{
	    	//tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
		//tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	}
}
ZoneChoose.prototype.Rset=function(pControl,pData){
	var tmpSPLIT="_";
	var tmpSTR="";
	var tmpElement;
	var Coun0=0;
	//Get select
	var tmpINT=100;
	for(Coun0=0;this.sFormatAR.length>Coun0;Coun0++){
		if(pControl[1]==this.sFormatAR[Coun0]){
			tmpElement=document.getElementById(pControl[0]+tmpSPLIT+this.sFormatAR[Coun0]);
			tmpINT=Coun0;
			
			while(tmpElement.options.length>1){
				tmpElement.remove(1);
			}
			
			var tmpAR0=pData.split(tmpCommon.sysSPLIT2);
			for(Coun1=0;tmpAR0.length>Coun1;Coun1++){
				var tmpAR1=tmpAR0[Coun1].split(tmpCommon.sysSPLIT1);
				if(tmpAR1.length==3){
					tmpElement.options.add(new Option(tmpAR1[1],tmpAR1[0],true,false));
				}
			}
		}else if(Coun0>tmpINT){
			tmpElement=document.getElementById(pControl[0]+tmpSPLIT+this.sFormatAR[Coun0]);
			while(tmpElement.options.length>1){
				tmpElement.remove(1);
			}
		}
	}
	//Get input
	tmpSTR="";
	for(Coun0=0;this.sFormatAR.length>Coun0;Coun0++){
		var tmpElement=document.getElementById(pControl[0]+tmpSPLIT+this.sFormatAR[Coun0]);
		if(tmpElement!=undefined){
			tmpSTR+=tmpElement.options[tmpElement.selectedIndex].innerHTML+tmpCommon.sysSPLIT8;
		}
	}
	tmpElement=document.getElementById(pControl[0]);
	if(tmpElement!=undefined){
		tmpElement.value=tmpSTR;
	}
}

//-- ------ #Instanct ------ --
var tmpZoneChoose=new ZoneChoose();




/*
-- ------ ChooseDay ------ --
*/
function ChooseDay(){}
//-- ------ #Parameters ------ --
ChooseDay.prototype.sControlName="";
ChooseDay.prototype.sBox="_ChooseBox";
ChooseDay.prototype.sContent="_ContentBox_B";
ChooseDay.prototype.sAjax_0=new netsSingleAjax();
ChooseDay.prototype.sDay=new Array();
var tmpDay=new Array();

//-- ------ #Methods ------ --
ChooseDay.prototype.Open=function(pValues,pControl){
	var tmpAR0=pValues;
	this.sControlName=tmpAR0[1];
	this.sDay=new netsDay();
	tmpDay=new netsDay();

	this.sControlName=tmpAR0[1];
	this.sAjax_0.sFlag=tmpAR0[2];
	this.sAjax_0.sPanel=this.sControlName+this.sContent;
	var tmpURL=tmpAR0[3]+"&ID="+tmpAR0[1];
	this.sAjax_0.sendRequestSp(tmpURL,"ChooseDay_Open"+tmpAR0[1]+"_callback()");
	//window.open(tmpURL,"_blank");
	return 0;
}
function ChooseDay_Open_callback(){
	var tmpBox=document.getElementById(tmpChooseDay.sControlName+tmpChooseDay.sBox);
	var tmpURL=tmpChooseDay.sAjax_0.sURL;
	var tmpFlag=tmpChooseDay.sAjax_0.sFlag;
	var tmpContent=document.getElementById(tmpChooseDay.sControlName+tmpChooseDay.sContent);
	var tmpControl=document.getElementById(tmpChooseDay.sControlName);
	var tmpHttpRequest=tmpChooseDay.sAjax_0.sHttpRequests;
	//alert(sHttpRequest.responseText);
	if(tmpHttpRequest.readyState==4){
		//alert(sHttpRequest.responseText);
		var tmpData=getDataByFlag(tmpHttpRequest.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			tmpContent.className="";
			tmpContent.innerHTML=tmpData;
	    	var tmpDate=tmpCommon.formatDate(tmpControl.value);
	    	tmpDay.initial(tmpDate.getYear(),tmpDate.getMonth(),tmpDate.getDate(),tmpDate.getHours(),tmpDate.getMinutes(),tmpDate.getSeconds(),0);
	    	
	    	tmpFrames.showBlack_ById(this.sName+"_BgHidden","BgHidden",0);
	    	tmpFrames.hiddenAllElement("Select",0);
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpFrames.showChoose(0,tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL));
	    	tmpFrames.showLoading(1);
	    }
		tmpBox.className="chooseBox";
		tmpBox.style.marginTop=tmpTextChoose.sFloatPosition+tmpCommon.sysPx;
	}else{
		tmpFrames.showLoading(0);
	}
}

chooseDay=function(pYear,pMonth,pDay,pHour,pMin,pSecond,pValueTypeIndex){
	var tmpDate=new Date(pYear,pMonth,pDay,pHour,pMin,pSecond);
	var tmpControl=document.getElementById(tmpChooseDay.sControlName);
	var tmpControlShow=document.getElementById(tmpChooseDay.sControlName+"Show");

	if(pValueTypeIndex==0){
		tmpControl.value=pYear+"-"+pMonth+"-"+pDay+" "+pHour+":"+pMin+":"+pSecond;
	}else if(pValueTypeIndex==1){
		tmpControl.value=pYear+"-"+pMonth+"-"+pDay;
	}else if(pValueTypeIndex==2){
		tmpControl.value=pYear+"-"+pMonth;
	}else if(pValueTypeIndex==3){
		tmpControl.value==pMonth+"-"+pDay;
	}else if(pValueTypeIndex==4){
		tmpControl.value=pHour+":"+pMin+":"+pSecond;
	}else if(pValueTypeIndex==5){
		tmpControl.value=pHour+":"+pMin;
	}else if(pValueTypeIndex==6){
		tmpControl.value=pMin+":"+pSecond;
	}
	
	tmpControlShow.value=tmpControl.value;
	return 0;
}


//-- ------ #Instanct ------ --
var tmpChooseDay=new ChooseDay();



/*
-- ------ ChooseFolder ------ --
*/
function ChooseFolder(){}
//-- ------ #Parameters ------ --
ChooseFolder.prototype.sChildStyle="";
ChooseFolder.prototype.sAjax_0=new netsSingleAjax();

//-- ------ #Methods ------ --
ChooseFolder.prototype.Initial=function(pValues,pControl){
	var tmpAR0=pValues;
	
	this.sAjax_0.sFlag=tmpAR0[2];
	this.sAjax_0.sPanel="menuSortContent";
	var tmpURL=tmpAR0[3]+"?ActionType=External_Folder&External_Folder="+tmpAR0[4];
	this.sAjax_0.sendRequestSp(tmpURL,"ChooseFolder_Initial_callback()");
	//window.open(tmpUrl,"_blank");
	return 0;
}
function ChooseFolder_Initial_callback(){
	var tmpURL=tmpChooseFolder.sAjax_0.sURL;
	var tmpFlag=tmpChooseFolder.sAjax_0.sFlag;
	var tmpPanel=document.getElementById(tmpChooseFolder.sAjax_0.sPanel);
	var tmpHttpRequest=tmpChooseFolder.sAjax_0.sHttpRequests;
	//alert(sHttpRequest.responseText);
	if(tmpHttpRequest.readyState==4){
		//alert(sHttpRequest.responseText);
		var tmpData=getDataByFlag(tmpHttpRequest.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
	    	tmpPanel.innerHTML=tmpData;
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
	}
}
ChooseFolder.prototype.Open=function(pValues,pChildStyle){
	var tmpAR0=pValues;
	this.sChildStyle=pChildStyle;
	if(tmpAR0.length<4){
		return 1;
	}
	
	var tmpFolderImg=document.getElementById("chooseFolder_Img_"+tmpAR0[1]);
	if(tmpFolderImg.className=="folderImgClose0"){
		tmpFolderImg.className="folderImgOpen0";
		this.sAjax_0.sFlag=tmpAR0[2];
		this.sAjax_0.sPanel="chooseFolder_"+tmpAR0[1];
		var tmpURL=tmpAR0[3]+"?ActionType=External_Folder&External_Folder="+tmpAR0[4];
		this.sAjax_0.sendRequestSp(tmpURL,"loadChildFolderCallback()");
		//window.open(tmpUrl,"_blank");
	}else if(tmpFolderImg.className=="folderImgClose1"){
		tmpFolderImg.className="folderImgOpen1";
		this.sAjax_0.sFlag=tmpAR0[2];
		this.sAjax_0.sPanel="chooseFolder_"+tmpAR0[1];
		var tmpURL=tmpAR0[3]+"?ActionType=External_Folder&External_Folder="+tmpAR0[4];
		this.sAjax_0.sendRequestSp(tmpURL,"loadChildFolderCallback()");
		//window.open(tmpUrl,"_blank");
	}else if(tmpFolderImg.className=="folderImgOpen0"){
		tmpFolderImg.className="folderImgClose0";
		document.getElementById("chooseFolder_"+tmpAR0[1]).className="DClear";
	}else if(tmpFolderImg.className=="folderImgOpen1"){
		tmpFolderImg.className="folderImgClose1";
		document.getElementById("chooseFolder_"+tmpAR0[1]).className="DClear";
	}
	return 0;
}
function ChooseFolder_Open_callback(){
	var tmpURL=tmpChooseFolder.sAjax_0.sURL;
	var tmpFlag=tmpChooseFolder.sAjax_0.sFlag;
	var tmpPanel=document.getElementById(tmpChooseFolder.sAjax_0.sPanel);
	var tmpHttpRequest=tmpChooseFolder.sAjax_0.sHttpRequests;
	//alert(sHttpRequest.responseText);
	if(tmpHttpRequest.readyState==4){
		//alert(sHttpRequest.responseText);
		var tmpData=getDataByFlag(tmpHttpRequest.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
	    	tmpPanel.innerHTML=tmpData;
	    	if(tmpData.indexOf("#No")>=0){
	    		tmpPanel.className=tmpChooseFolder.sChildStyle;
	    	}else{
	    		tmpPanel.className="DClear";
	    	}
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
	}
}


//-- ------ #Instanct ------ --
var tmpChooseFolder=new ChooseFolder();



/*
-- ------ TextChoose ------ --
*/
function TextChooses_Checkbox(){}
//-- ------ #Parameters ------ --
TextChooses_Checkbox.prototype.sName="tmpTextChooses_Checkbox";
TextChooses_Checkbox.prototype.sPage="";
TextChooses_Checkbox.prototype.sFlag="External_TextChooses_Checkbox";
TextChooses_Checkbox.prototype.sID=-1;
TextChooses_Checkbox.prototype.sKeyword="";
TextChooses_Checkbox.prototype.sAjax_0=new netsSingleAjax();


//-- ------ #Methods ------ --
TextChooses_Checkbox.prototype.OpenChild=function(pID){
	var tmpFlag=this.sFlag;
	var tmpPanel=this.sName+"_Rowbox_"+pID;
	//-- ### --
	if(document.getElementById(tmpPanel).className==tmpCommon.sysHidden){
		document.getElementById(tmpPanel).className="TextChoosesCheckbox_11";
	}else{
		document.getElementById(tmpPanel).className=tmpCommon.sysHidden;
		return 1;
	}
	//-- ### --
	var tmpURL=tmpCommon.sysHome+this.sPage+"?ActionType="+this.sFlag+"&"+this.sFlag+"="+
		this.sName+tmpCommon.sysSPLIT1+
		0+tmpCommon.sysSPLIT1+
		tmpPanel+tmpCommon.sysSPLIT1+
		tmpFlag+tmpCommon.sysSPLIT1+
		pID+tmpCommon.sysSPLIT1+
		tmpCommon.encodeURL(this.sKeyword,0);
		
	this.sAjax_0.sFlag=tmpFlag;
	this.sAjax_0.sPanel=tmpPanel;
	this.sAjax_0.sendRequestSp(tmpURL,this.sName+"_OpenChild_Callback()");
	//window.open(tmpURL,"_blank");
	return 0;
}
function textChooses_Checkbox_OpenChild_Callback(){
	var tmpOBJECT=tmpTextChooses_Checkbox;
	var tmpURL=tmpOBJECT.sAjax_0.sURL;
	var tmpFlag=tmpOBJECT.sAjax_0.sFlag;
	var tmpPanel=document.getElementById(tmpOBJECT.sAjax_0.sPanel);
	var tmpHttpRequest=tmpOBJECT.sAjax_0.sHttpRequests;
	//alert(sHttpRequest.responseText);
	if(tmpHttpRequest.readyState==4){
		//alert(sHttpRequest.responseText);
		var tmpData=getDataByFlag(tmpHttpRequest.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
	    	tmpPanel.innerHTML=tmpData;
	    	
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
		tmpPanel.innerHTML=tmpCommon.sysLoading_Ajax;
	}
}

TextChooses_Checkbox.prototype.SearchCell=function(){
	var tmpFlag=this.sFlag;
	var tmpPanel=this.sName+"_Cellbox";
	
	var tmpURL=tmpCommon.sysHome+this.sPage+"?ActionType="+this.sFlag+"&"+this.sFlag+"="+
		this.sName+tmpCommon.sysSPLIT1+
		1+tmpCommon.sysSPLIT1+
		tmpPanel+tmpCommon.sysSPLIT1+
		tmpFlag+tmpCommon.sysSPLIT1+
		this.sID+tmpCommon.sysSPLIT1+
		tmpCommon.encodeURL(this.sKeyword,0);
		
	this.sAjax_0.sFlag=tmpFlag;
	this.sAjax_0.sPanel=tmpPanel;
	this.sAjax_0.sendRequestSp(tmpURL,this.sName+"_SearchCell_Callback()");
	//window.open(tmpURL,"_blank");
	return 0;
}
function textChooses_Checkbox_SearchCell_Callback(){
	var tmpOBJECT=tmpTextChooses_Checkbox;
	var tmpURL=tmpOBJECT.sAjax_0.sURL;
	var tmpFlag=tmpOBJECT.sAjax_0.sFlag;
	var tmpPanel=document.getElementById(tmpOBJECT.sAjax_0.sPanel);
	var tmpHttpRequest=tmpOBJECT.sAjax_0.sHttpRequests;
	//alert(sHttpRequest.responseText);
	if(tmpHttpRequest.readyState==4){
		//alert(sHttpRequest.responseText);
		var tmpData=getDataByFlag(tmpHttpRequest.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
	    	tmpPanel.innerHTML=tmpData;
	    	tmpOBJECT.OnRChooseALL();
	    	
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
		tmpPanel.innerHTML=tmpCommon.sysLoading_Ajax;
	}
}


TextChooses_Checkbox.prototype.OnChoose=function(pControl){
	var tmpValues=document.getElementById(this.sName).value;
	var tmpAR_Values=tmpValues.split(tmpCommon.sysSPLIT1);
	
	tmpValues="";
	Coun0=0;
	while(tmpAR_Values.length>Coun0){
		if(tmpAR_Values[Coun0]==pControl.value){
		}else if(tmpAR_Values[Coun0]!=""){
			tmpValues+=tmpAR_Values[Coun0]+tmpCommon.sysSPLIT1;
		}
		Coun0++;
	}
	if(pControl.checked){
		tmpValues+=pControl.value+tmpCommon.sysSPLIT1;
	}
	
	document.getElementById(this.sName).value=tmpValues;
	return 0;
}
TextChooses_Checkbox.prototype.OnRChooseALL=function(){
	var tmpValues=document.getElementById(this.sName).value;
	var tmpAR_Values=tmpValues.split(tmpCommon.sysSPLIT1);
	var tmpElement=document.getElementById(this.sName+"_Cells");
	var Coun0=0;
	var Coun1=0;
	while(tmpElement.childNodes.length>Coun0){
		Coun1=0;
		while(tmpAR_Values.length>Coun1){
			if(tmpElement.childNodes[Coun0].childNodes[0]!=undefined){
				if(tmpElement.childNodes[Coun0].childNodes[0].childNodes[0].value==tmpAR_Values[Coun1]){
					tmpElement.childNodes[Coun0].childNodes[0].childNodes[0].checked=true;
				}
			}
			Coun1++;
		}
		Coun0++;
	}
	
	return 0;
}



/*
-- ------ ChildChoose ------ --
*/
function ChildChoose(){}
//-- ------ #Parameters ------ --
ChildChoose.prototype.sName="tmpChildChoose";
ChildChoose.prototype.sFlag="External_ChildChoose";
ChildChoose.prototype.sAjax_0=new netsSingleAjax();
ChildChoose.prototype.sDefaultValue=-1;
ChildChoose.prototype.sDefaultText="未设置分类";
/*
<div id="{Nets.Name}_Row_{Nets.Index}"><ul class="ChildChoose_1">
<li class="ChildChoose_2"><img src="../../../Ui/m_nets/Img/Mana/19.jpg" /></li>
<li class="ChildChoose_3"><a id="{Nets.Name}_RowText_{Nets.Index}" href="#Here" class="Link2 FWhite1" onclick="{Nets.Name}_JS.onOpenbox({Nets.Index});">{Nets.Text}</a></li>
<li class="ChildChoose_5"><a href="#Here" class="Link1 FBlack3" onclick="{Nets.Name}_JS.onOpenbox({Nets.Index});">选取分类</a></li>
<li class="ChildChoose_4"><img src="../../../Ui/m_nets/Img/Mana/19.jpg" /></li>
<li class="DClear"></li></ul>
<div id="{Nets.Name}_Cellbox_{Nets.Index}" class="ChildChoose_6"></div>
</div>
*/
ChildChoose.prototype.sRowContent="<div id=\"{Nets.Name}_Row_{Nets.Index}\"><ul class=\"ChildChoose_1\"><li class=\"ChildChoose_2\"><img src=\"../../../Ui/m_nets/Img/Mana/19.jpg\" /></li><li class=\"ChildChoose_3\"><a id=\"{Nets.Name}_RowText_{Nets.Index}\" href=\"#Here\" class=\"Link2 FWhite1\" onclick=\"{Nets.Name}_JS.onOpenbox({Nets.Index});\">{Nets.Text}</a></li><li class=\"ChildChoose_5\"><a href=\"#Here\" class=\"Link1 FBlack3\" onclick=\"{Nets.Name}_JS.onOpenbox({Nets.Index});\">选取分类</a></li><li class=\"ChildChoose_4\"><img src=\"../../../Ui/m_nets/Img/Mana/19.jpg\" /></li><li class=\"DClear\"></li></ul><div id=\"{Nets.Name}_Cellbox_{Nets.Index}\" class=\"ChildChoose_6\"></div></div>";
ChildChoose_sAjax_0=new netsSingleAjax();

//-- ------ #Methods ------ --
ChildChoose.prototype.Initial=function(){}
	
//-- ------ #Instanct ------ --
var tmpChildChoose=new ChildChoose();


/*
-- ------ childChoose_Fixed ------ --
*/
function childChoose_Fixed(){}
//-- ------ #Parameters ------ --
childChoose_Fixed.prototype.sName="tmpChildChoose_Fixed";
childChoose_Fixed.prototype.sRequireURL="";
childChoose_Fixed.prototype.sDefaultValues=new Array();
childChoose_Fixed.prototype.sDefaultTexts=new Array();
childChoose_Fixed.prototype.sValues=new Array();
childChoose_Fixed.prototype.sTexts=new Array();

childChoose_Fixed.prototype.sFlag="External_ChildChoose";
childChoose_Fixed.prototype.sAjax_0=new netsSingleAjax();
childChoose_Fixed.prototype.sDefaultValue=-1;
childChoose_Fixed.prototype.sDefaultText="未设置分类";
childChoose_Fixed.prototype.sRowContent="<div id=\"{Nets.Name}_Row_{Nets.Index}\"><ul class=\"ChildChoose_1\"><li class=\"ChildChoose_2\"><img src=\"../../../Ui/m_nets/Img/Mana/19.jpg\" /></li><li class=\"ChildChoose_3\"><a id=\"{Nets.Name}_RowText_{Nets.Index}\" href=\"#Here\" class=\"Link2 FWhite1\" onclick=\"{Nets.Name}_JS.onOpenbox({Nets.Index});\">{Nets.Text}</a></li><li class=\"ChildChoose_5\"><a href=\"#Here\" class=\"Link1 FBlack3\" onclick=\"{Nets.Name}_JS.onOpenbox({Nets.Index});\">选取分类</a></li><li class=\"ChildChoose_4\"><img src=\"../../../Ui/m_nets/Img/Mana/19.jpg\" /></li><li class=\"DClear\"></li></ul><div id=\"{Nets.Name}_Cellbox_{Nets.Index}\" class=\"ChildChoose_6\"></div></div>";

//-- ------ #Methods ------ --

childChoose_Fixed.prototype.initial=function(pName,pRequireURL,pValues,pTexts){
	this.sName=pName;
	this.sRequireURL=pRequireURL;
	var Coun0=0;
	while(pValues.length>Coun0){
		this.sDefaultValues[Coun0]=pValues[Coun0];
		this.sValues[Coun0]=pValues[Coun0];
		this.sDefaultTexts[Coun0]=pTexts[Coun0];
		this.sTexts[Coun0]=pTexts[Coun0];
		Coun0++;
	}
}
childChoose_Fixed.prototype.onOpen=function(pIndex){
	var Coun0=0;
	var tmpINT=this.sValues.length;
	//-- Is open --
	if(document.getElementById(this.sName+"_Cellbox_"+pIndex).className=="ChildChoose_7"){
		document.getElementById(this.sName+"_Cellbox_"+pIndex).className="ChildChoose_6";
		document.getElementById(this.sName+"_Cellbox_"+pIndex).innerHTML="";
		return 0;
	}
	//-- Open --
	while(tmpINT>Coun0){
		document.getElementById(this.sName+"_Cellbox_"+Coun0).className="ChildChoose_6";
		document.getElementById(this.sName+"_Cellbox_"+Coun0).innerHTML="";
		Coun0++;
	}
	document.getElementById(this.sName+"_Cellbox_"+pIndex).className="ChildChoose_7";
	//-- Send --
	var tmpType=0;
	var tmpValue=this.sValues[pIndex];
	if(this.sValues[pIndex]==-1){
		tmpType=1;
		tmpValue=this.sValues[pIndex-1];
	}
	
	ChildChoose_sAjax_0.sFlag=this.sFlag;
	ChildChoose_sAjax_0.sPanel=this.sName+"_Cellbox_"+pIndex;
	var tmpURL=this.sRequireURL+"?ActionType="+this.sFlag+"&"+this.sFlag+"="+tmpType+tmpCommon.sysSPLIT1+this.sName+tmpCommon.sysSPLIT1+tmpValue+tmpCommon.sysSPLIT1+pIndex;//Type,Controlname,Valueid,Index
	ChildChoose_sAjax_0.sURL=tmpURL;
	ChildChoose_sAjax_0.sendRequestSp(tmpURL,"childChoose_Fixed_Callback()");
	//window.open(tmpURL,"_blank");
}
//-- #ChildChoose Callback --
function childChoose_Fixed_Callback(){
	var tmpFlag=ChildChoose_sAjax_0.sFlag;
	var tmpURL=ChildChoose_sAjax_0.sURL;
	var tmpPanel=document.getElementById(ChildChoose_sAjax_0.sPanel);
	var tmpHttpRequests=ChildChoose_sAjax_0.sHttpRequests;
	//alert(tmpHttpRequests.responseText);
	if(tmpHttpRequests.readyState==4){
		//alert(tmpHttpRequests.responseText);
		var tmpData=getDataByFlag(tmpHttpRequests.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			tmpPanel.innerHTML=tmpData;
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
	}
}
childChoose_Fixed.prototype.onChoose=function(pText,pValue,pIndex){
	//Set text and value
	this.sValues[pIndex]=pValue;
	this.sTexts[pIndex]=pText;
	//Reset child text and value
	var Coun0=0;
	while(this.sValues.length>Coun0){
		if(Coun0>pIndex){
			this.sValues[Coun0]=this.sDefaultValue;
			this.sTexts[Coun0]=this.sDefaultText;
		}
		Coun0++;
	}
	//Reset main value
	document.getElementById(this.sName).value="";
	Coun0=0;
	while(this.sValues.length>Coun0){
		document.getElementById(this.sName+"_RowText_"+Coun0).innerHTML=this.sTexts[Coun0];
		document.getElementById(this.sName).value+=this.sValues[Coun0]+tmpCommon.sysSPLIT1;
		Coun0++;
	}
}
childChoose_Fixed.prototype.Reset=function(){
	//Reset main value
	document.getElementById(this.sName).value="";
	Coun0=0;
	while(this.sDefaultValues.length>Coun0){
		this.sValues[Coun0]=this.sDefaultValues[Coun0];
		this.sTexts[Coun0]=this.sDefaultTexts[Coun0];
		document.getElementById(this.sName+"_RowText_"+Coun0).innerHTML=this.sDefaultTexts[Coun0];
		document.getElementById(this.sName).value+=this.sDefaultValues[Coun0]+tmpCommon.sysSPLIT1;
		Coun0++;
	}
}


/*
-- ------ childChooseX_Fixed ------ --
*/
function childChooseX_Fixed(){}
//-- ------ #Parameters ------ --
childChooseX_Fixed.prototype.sName="tmpChildChooseX_Fixed";
childChooseX_Fixed.prototype.sRequireURL="";
childChooseX_Fixed.prototype.sDefaultValues=new Array();
childChooseX_Fixed.prototype.sDefaultTexts=new Array();
childChooseX_Fixed.prototype.sValues=new Array();
childChooseX_Fixed.prototype.sTexts=new Array();

childChooseX_Fixed.prototype.sFlag="External_ChildChoose";
childChooseX_Fixed.prototype.sAjax_0=new netsSingleAjax();
childChooseX_Fixed.prototype.sDefaultValue=-1;
childChooseX_Fixed.prototype.sDefaultText="未设置分类";
/*
<a id=\"{Nets.Name}_RowText_{Nets.Index}\" href=\"#Here\" class=\"Link1 FBlue1\" onclick=\"{Nets.Name}_JS.onOpen({Nets.Index});\">{Nets.Text}</a>

<img src=\"../../../Ui/Common/Img/Control/childChoose_2.jpg\" />


*/
childChooseX_Fixed.prototype.sTemplate_0="<a id=\"{Nets.Name}_RowText_{Nets.Index}\" href=\"#Here\" class=\"Link1 FBlue1\" onclick=\"{Nets.Name}_JS.onOpen({Nets.Index});\">{Nets.Text}</a>";
childChooseX_Fixed.prototype.sTemplate_1="<img src=\"../../../Ui/Common/Img/Control/childChoose_2.jpg\" />";


//-- ------ #Methods ------ --

childChooseX_Fixed.prototype.initial=function(pName,pRequireURL,pValues,pTexts){
	this.sName=pName;
	this.sRequireURL=pRequireURL;
	var Coun0=0;
	while(pValues.length>Coun0){
		this.sDefaultValues[Coun0]=pValues[Coun0];
		this.sValues[Coun0]=pValues[Coun0];
		this.sDefaultTexts[Coun0]=pTexts[Coun0];
		this.sTexts[Coun0]=pTexts[Coun0];
		Coun0++;
	}
	
	return 0;
}
childChooseX_Fixed.prototype.onOpen=function(pIndex){
	var Coun0=0;
	var tmpINT=this.sValues.length;
	//-- Open --
	document.getElementById(this.sName+"_Cellsbox").className="ChildChooseX_CellsBox";
	//-- Send --
	var tmpType=0;
	var tmpValue=this.sValues[pIndex];
	if(this.sValues[pIndex]==-1){
		tmpType=1;
		tmpValue=this.sValues[pIndex-1];
	}
	
	ChildChoose_sAjax_0.sFlag=this.sFlag;
	ChildChoose_sAjax_0.sPanel=this.sName+"_Cellsbox";
	var tmpURL=this.sRequireURL+"?ActionType="+this.sFlag+"&"+this.sFlag+"="+tmpType+tmpCommon.sysSPLIT1+this.sName+tmpCommon.sysSPLIT1+tmpValue+tmpCommon.sysSPLIT1+pIndex;//Type,Controlname,Valueid,Index
	ChildChoose_sAjax_0.sURL=tmpURL;
	ChildChoose_sAjax_0.sendRequestSp(tmpURL,"childChooseX_Fixed_Callback()");
	//window.open(tmpURL,"_blank");
	
	return 0;
}
//-- #ChildChoose Callback --
function childChooseX_Fixed_Callback(){
	var tmpFlag=ChildChoose_sAjax_0.sFlag;
	var tmpURL=ChildChoose_sAjax_0.sURL;
	var tmpPanel=document.getElementById(ChildChoose_sAjax_0.sPanel);
	var tmpHttpRequests=ChildChoose_sAjax_0.sHttpRequests;
	//alert(tmpHttpRequests.responseText);
	if(tmpHttpRequests.readyState==4){
		//alert(tmpHttpRequests.responseText);
		var tmpData=getDataByFlag(tmpHttpRequests.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			tmpPanel.innerHTML=tmpData;
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
		tmpPanel.innerHTML=tmpCommon.sysLoading_Ajax;
	}
}
childChooseX_Fixed.prototype.onChoose=function(pText,pValue,pIndex){
	//Set text and value
	this.sValues[pIndex]=pValue;
	this.sTexts[pIndex]=pText;
	//Reset child text and value
	var Coun0=0;
	while(this.sValues.length>Coun0){
		if(Coun0>pIndex){
			this.sValues[Coun0]=this.sDefaultValue;
			this.sTexts[Coun0]=this.sDefaultText;
		}
		Coun0++;
	}
	//Reset main value
	tmpSTR="";
	Coun0=0;
	while(this.sValues.length>Coun0){
		document.getElementById(this.sName+"_RowText_"+Coun0).innerHTML=this.sTexts[Coun0];
		tmpSTR+=this.sValues[Coun0]+tmpCommon.sysSPLIT1;
		Coun0++;
	}
	document.getElementById(this.sName).value=tmpSTR;
	
	return 0;
}
childChooseX_Fixed.prototype.Reset=function(){
	//Reset main value
	document.getElementById(this.sName).value="";
	Coun0=0;
	while(this.sDefaultValues.length>Coun0){
		this.sValues[Coun0]=this.sDefaultValues[Coun0];
		this.sTexts[Coun0]=this.sDefaultTexts[Coun0];
		document.getElementById(this.sName+"_RowText_"+Coun0).innerHTML=this.sDefaultTexts[Coun0];
		document.getElementById(this.sName).value+=this.sDefaultValues[Coun0]+tmpCommon.sysSPLIT1;
		Coun0++;
	}
}



/*
-- ------ childChoose_Dynamic ------ --
*/
function childChoose_Dynamic(){}
//-- ------ #Parameters ------ --
childChoose_Dynamic.prototype.sName="tmpChildChoose_Dynamic";
childChoose_Dynamic.prototype.sRequireURL="";
childChoose_Dynamic.prototype.sDefaultValues=new Array();
childChoose_Dynamic.prototype.sDefaultTexts=new Array();
childChoose_Dynamic.prototype.sValues=new Array();
childChoose_Dynamic.prototype.sTexts=new Array();

childChoose_Dynamic.prototype.sFlag="External_ChildChoose";
childChoose_Dynamic.prototype.sAjax_0=new netsSingleAjax();
childChoose_Dynamic.prototype.sDefaultValue=-1;
childChoose_Dynamic.prototype.sDefaultText="未设置分类";
/*
<div id=\"{Nets.Name}_Row_{Nets.Index}\">
<ul class=\"ChildChoose_1\">
<li class=\"ChildChoose_2\"><img src=\"../../../Ui/m_nets/Img/Mana/19.jpg\" /></li>
<li class=\"ChildChoose_3\"><a id=\"{Nets.Name}_RowText_{Nets.Index}\" href=\"#Here\" class=\"Link2 FWhite1\" onclick=\"{Nets.Name}_JS.onOpen({Nets.Index});\">{Nets.Text}</a></li>
<li class=\"ChildChoose_5\"><a href=\"#Here\" class=\"Link1 FBlack3\" onclick=\"{Nets.Name}_JS.onOpen({Nets.Index});\">选取分类</a></li>
<li class=\"ChildChoose_4\"><img src=\"../../../Ui/m_nets/Img/Mana/19.jpg\" /></li>
<li class=\"DClear\"></li></ul><div id=\"{Nets.Name}_Cellbox_{Nets.Index}\" class=\"ChildChoose_6\"></div></div>


*/
childChoose_Dynamic.prototype.sRowContent="<div id=\"{Nets.Name}_Row_{Nets.Index}\"><ul class=\"ChildChoose_1\"><li class=\"ChildChoose_2\"><img src=\"../../../Ui/m_nets/Img/Mana/19.jpg\" /></li><li class=\"ChildChoose_3\"><a id=\"{Nets.Name}_RowText_{Nets.Index}\" href=\"#Here\" class=\"Link2 FWhite1\" onclick=\"{Nets.Name}_JS.onOpen({Nets.Index});\">{Nets.Text}</a></li><li class=\"ChildChoose_5\"><a href=\"#Here\" class=\"Link1 FBlack3\" onclick=\"{Nets.Name}_JS.onOpen({Nets.Index});\">选取分类</a></li><li class=\"ChildChoose_4\"><img src=\"../../../Ui/m_nets/Img/Mana/19.jpg\" /></li><li class=\"DClear\"></li></ul><div id=\"{Nets.Name}_Cellbox_{Nets.Index}\" class=\"ChildChoose_6\"></div></div>";

//-- ------ #Methods ------ --
childChoose_Dynamic.prototype.initial=function(pName,pRequireURL,pValues,pTexts){
	this.sName=pName;
	this.sRequireURL=pRequireURL;
	var Coun0=0;
	while(pValues.length>Coun0){
		this.sDefaultValues[Coun0]=pValues[Coun0];
		this.sValues[Coun0]=pValues[Coun0];
		this.sDefaultTexts[Coun0]=pTexts[Coun0];
		this.sTexts[Coun0]=pTexts[Coun0];
		Coun0++;
	}
}
childChoose_Dynamic.prototype.onOpen=function(pIndex){
	var Coun0=0;
	var tmpINT=this.sValues.length;
	//-- Is open --
	if(document.getElementById(this.sName+"_Cellbox_"+pIndex).className=="ChildChoose_7"){
		document.getElementById(this.sName+"_Cellbox_"+pIndex).className="ChildChoose_6";
		document.getElementById(this.sName+"_Cellbox_"+pIndex).innerHTML="";
		return 0;
	}
	//-- Open --
	while(tmpINT>Coun0){
		document.getElementById(this.sName+"_Cellbox_"+Coun0).className="ChildChoose_6";
		document.getElementById(this.sName+"_Cellbox_"+Coun0).innerHTML="";
		Coun0++;
	}
	document.getElementById(this.sName+"_Cellbox_"+pIndex).className="ChildChoose_7";
	//-- Send --
	var tmpType=2;
	var tmpValue=this.sValues[pIndex];
	if(this.sValues[pIndex]==-1){
		tmpType=3;
		tmpValue=this.sValues[pIndex-1];
	}
	
	ChildChoose_sAjax_0.sFlag=this.sFlag;
	ChildChoose_sAjax_0.sPanel=this.sName+"_Cellbox_"+pIndex;
	var tmpURL=this.sRequireURL+"?ActionType="+this.sFlag+"&"+this.sFlag+"="+tmpType+tmpCommon.sysSPLIT1+this.sName+tmpCommon.sysSPLIT1+tmpValue+tmpCommon.sysSPLIT1+pIndex;//Type,Controlname,Valueid,Index
	ChildChoose_sAjax_0.sendRequestSp(tmpURL,"childChoose_Dynamic_Callback()");
	//window.open(tmpURL,"_blank");
	
	return 0;
}
//-- #ChildChoose Callback --
function childChoose_Dynamic_Callback(){
	var tmpFlag=ChildChoose_sAjax_0.sFlag;
	var tmpURL=ChildChoose_sAjax_0.sURL;
	var tmpPanel=document.getElementById(ChildChoose_sAjax_0.sPanel);
	var tmpHttpRequests=ChildChoose_sAjax_0.sHttpRequests;
	//alert(tmpHttpRequests.responseText);
	if(tmpHttpRequests.readyState==4){
		//alert(tmpHttpRequests.responseText);
		var tmpData=getDataByFlag(tmpHttpRequests.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			tmpPanel.innerHTML=tmpData;
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
	}
}
childChoose_Dynamic.prototype.onChoose=function(pText,pValue,pIndex){
	//Set text and value
	this.sValues[pIndex]=pValue;
	this.sTexts[pIndex]=pText;
	//Reset UI and Data
	var tmpValues=new Array();
	var tmpTexts=new Array();
	var tmpContent="";
	var Coun0=0;
	while(pIndex>=Coun0){
		tmpSTR=this.sRowContent.replace(/{Nets.Name}/g,this.sName);
		tmpSTR=tmpSTR.replace(/{Nets.Index}/g,Coun0);
		tmpSTR=tmpSTR.replace(/{Nets.Text}/g,this.sTexts[Coun0]);
		tmpContent+=tmpSTR;
		tmpValues[Coun0]=this.sValues[Coun0];
		tmpTexts[Coun0]=this.sTexts[Coun0];
		Coun0++;
	}
	tmpSTR=this.sRowContent.replace(/{Nets.Name}/g,this.sName);
	tmpSTR=tmpSTR.replace(/{Nets.Index}/g,Coun0);
	tmpSTR=tmpSTR.replace(/{Nets.Text}/g,this.sDefaultText);
	tmpContent+=tmpSTR;
	tmpValues[Coun0]=this.sDefaultValue;
	tmpTexts[Coun0]=this.sDefaultText;

	document.getElementById(this.sName+"_Mainbox").innerHTML=tmpContent;
	this.sValues=tmpValues;
	this.sTexts=tmpTexts;
	//Reset main value
	document.getElementById(this.sName).value=this.sValues[this.sValues.length-2];
	
	return 0;
}
childChoose_Dynamic.prototype.Reset=function(){
	//Reset UI and Data
	this.sValues=new Array();
	this.sTexts=new Array();
	var tmpContent="";
	var Coun0=0;
	while(this.sDefaultValues.length-1>=Coun0){
		tmpSTR=this.sRowContent.replace(/{Nets.Name}/g,this.sName);
		tmpSTR=tmpSTR.replace(/{Nets.Index}/g,Coun0);
		tmpSTR=tmpSTR.replace(/{Nets.Text}/g,this.sDefaultTexts[Coun0]);
		tmpContent+=tmpSTR;
		this.sValues[Coun0]=this.sDefaultValues[Coun0];
		this.sTexts[Coun0]=this.sDefaultTexts[Coun0];
		Coun0++;
	}

	document.getElementById(this.sName+"_Mainbox").innerHTML=tmpContent;
	//Reset main value
	document.getElementById(this.sName).value=this.sDefaultValues[this.sDefaultValues.length-2];
}

/*
-- ------ childChooseX_Dynamic ------ --
*/
function childChooseX_Dynamic(){}
//-- ------ #Parameters ------ --
childChooseX_Dynamic.prototype.sName="tmpChildChooseX_Dynamic";
childChooseX_Dynamic.prototype.sRequireURL="";
childChooseX_Dynamic.prototype.sDefaultValues=new Array();
childChooseX_Dynamic.prototype.sDefaultTexts=new Array();
childChooseX_Dynamic.prototype.sValues=new Array();
childChooseX_Dynamic.prototype.sTexts=new Array();

childChooseX_Dynamic.prototype.sFlag="External_ChildChoose";
childChooseX_Dynamic.prototype.sAjax_0=new netsSingleAjax();
childChooseX_Dynamic.prototype.sDefaultValue=-1;
childChooseX_Dynamic.prototype.sDefaultText="未设置分类";
/*
<a id=\"{Nets.Name}_RowText_{Nets.Index}\" href=\"#Here\" class=\"Link1 FBlue1\" onclick=\"{Nets.Name}_JS.onOpen({Nets.Index});\">{Nets.Text}</a>

<img src=\"../../../Ui/Common/Img/Control/childChoose_2.jpg\" />


*/
childChooseX_Dynamic.prototype.sTemplate_0="<a id=\"{Nets.Name}_RowText_{Nets.Index}\" href=\"#Here\" class=\"Link1 FBlue1\" onclick=\"{Nets.Name}_JS.onOpen({Nets.Index});\">{Nets.Text}</a>";
childChooseX_Dynamic.prototype.sTemplate_1="<img src=\"../../../Ui/Common/Img/Control/childChoose_2.jpg\" />";


//-- ------ #Methods ------ --
childChooseX_Dynamic.prototype.initial=function(pName,pRequireURL,pValues,pTexts){
	this.sName=pName;
	this.sRequireURL=pRequireURL;
	var Coun0=0;
	while(pValues.length>Coun0){
		this.sDefaultValues[Coun0]=pValues[Coun0];
		this.sValues[Coun0]=pValues[Coun0];
		this.sDefaultTexts[Coun0]=pTexts[Coun0];
		this.sTexts[Coun0]=pTexts[Coun0];
		Coun0++;
	}
	
	return 0;
}
childChooseX_Dynamic.prototype.onOpen=function(pIndex){
	var Coun0=0;
	var tmpINT=this.sValues.length;
	//-- Open --
	document.getElementById(this.sName+"_Cellsbox").className="ChildChooseX_CellsBox";
	//-- Send --
	var tmpType=2;
	var tmpValue=this.sValues[pIndex];
	if(this.sValues[pIndex]==-1){
		tmpType=3;
		tmpValue=this.sValues[pIndex-1];
	}
	
	ChildChoose_sAjax_0.sFlag=this.sFlag;
	ChildChoose_sAjax_0.sPanel=this.sName+"_Cellsbox";
	var tmpURL=this.sRequireURL+"?ActionType="+this.sFlag+"&"+this.sFlag+"="+tmpType+tmpCommon.sysSPLIT1+this.sName+tmpCommon.sysSPLIT1+tmpValue+tmpCommon.sysSPLIT1+pIndex;//Type,Controlname,Valueid,Index
	ChildChoose_sAjax_0.sendRequestSp(tmpURL,"childChooseX_Dynamic_Callback()");
	//window.open(tmpURL,"_blank");
	
	return 0;
}
//-- #ChildChoose Callback --
function childChooseX_Dynamic_Callback(){
	var tmpFlag=ChildChoose_sAjax_0.sFlag;
	var tmpURL=ChildChoose_sAjax_0.sURL;
	var tmpPanel=document.getElementById(ChildChoose_sAjax_0.sPanel);
	var tmpHttpRequests=ChildChoose_sAjax_0.sHttpRequests;
	//alert(tmpHttpRequests.responseText);
	if(tmpHttpRequests.readyState==4){
		//alert(tmpHttpRequests.responseText);
		var tmpData=getDataByFlag(tmpHttpRequests.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			tmpPanel.innerHTML=tmpData;
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
		tmpPanel.innerHTML=tmpCommon.sysLoading_Ajax;
	}
}
childChooseX_Dynamic.prototype.onChoose=function(pText,pValue,pIndex){
	var tmpValues=new Array();
	var tmpTexts=new Array();
	//-- #Reset UI and Data --
	var Coun0=0;
	while(pIndex>Coun0){
		tmpValues[Coun0]=this.sValues[Coun0];
		tmpTexts[Coun0]=this.sTexts[Coun0];
		Coun0++;
	}
	tmpValues[Coun0]=pValue;
	tmpTexts[Coun0]=pText;
	Coun0++;
	tmpValues[Coun0]=this.sDefaultValue;
	tmpTexts[Coun0]=this.sDefaultText;
	//#Reset main value
	this.sValues=tmpValues;
	this.sTexts=tmpTexts;
	this.Reset(1);

	/*
	tmpSTR="";
	Coun0=0;
	while(this.sValues.length-1>=Coun0){
		tmpSTR+=this.sTexts[Coun0]+","+this.sValues[Coun0]+"...";
		Coun0++;
	}
	alert(tmpSTR);
	*/
	return 0;
}
childChooseX_Dynamic.prototype.Reset=function(pType){
	var tmpValues=new Array();
	var tmpTexts=new Array();
	if(pType==0){
		tmpValues=this.sDefaultValues;
		tmpTexts=this.sDefaultTexts;
	}else{
		tmpValues=this.sValues;
		tmpTexts=this.sTexts;
	}
	//-- #Clear cells --
	var tmpElement_0=document.getElementById(this.sName+"_Mainbox");
	var Coun0=1;
	while(tmpElement_0.rows[0].cells.length>Coun0){
		tmpElement_0.rows[0].deleteCell(Coun0);
	}
	//-- #Reset UI and Data --
	this.sValues=new Array();
	this.sTexts=new Array();
	var tmpContent="";
	var Coun0=0;
	while(tmpValues.length-1>=Coun0){
		tmpElement_0.rows[0].insertCell(tmpElement_0.rows[0].cells.length);
		tmpElement_0.rows[0].cells[tmpElement_0.rows[0].cells.length-1].className="ChildChoose_1";
		tmpSTR=this.sTemplate_0.replace(/{Nets.Name}/g,this.sName);
		tmpSTR=tmpSTR.replace(/{Nets.Index}/g,Coun0);
		tmpSTR=tmpSTR.replace(/{Nets.Text}/g,tmpTexts[Coun0]);
		tmpElement_0.rows[0].cells[tmpElement_0.rows[0].cells.length-1].innerHTML=tmpSTR;
		this.sValues[Coun0]=tmpValues[Coun0];
		this.sTexts[Coun0]=tmpTexts[Coun0];
		Coun0++;
	}
	//#End img
	tmpElement_0.rows[0].insertCell(tmpElement_0.rows[0].cells.length);
	tmpSTR=this.sTemplate_1.replace(/{Nets.Name}/g,this.sName);
	tmpElement_0.rows[0].cells[tmpElement_0.rows[0].cells.length-1].innerHTML=tmpSTR;
	//Reset main value
	if(pType==0){
		document.getElementById(this.sName+"_Cellsbox").className=tmpCommon.sysHidden;
		document.getElementById(this.sName+"_Cellsbox").innerHTML="";
	}
	document.getElementById(this.sName).value=tmpValues[tmpValues.length-2];

	return 0;
}


/*
-- ------ childChoose_Dropdown ------ --
*/
function childChoose_Dropdown(){}
//-- ------ #Parameters ------ --
childChoose_Dropdown.prototype.sName="tmpChildChoose_Dropdown";
childChoose_Dropdown.prototype.sRequireURL="";
childChoose_Dropdown.prototype.sIndex=0;
childChoose_Dropdown.prototype.sType=4;

childChoose_Dropdown.prototype.sBox="_OptionBox";
childChoose_Dropdown.prototype.sFlag="External_ChildChoose";
childChoose_Dropdown.prototype.sAjax_0=new netsSingleAjax();

//-- ------ #Methods ------ --
childChoose_Dropdown.prototype.onChange=function(pName,pRequireURL,pIndex,pControl){
	//--#Initial --
	this.sName=pName;
	this.sRequireURL=pRequireURL;
	this.sIndex=pIndex;
	var tmpValue=pControl.options[pControl.selectedIndex].value;
	document.getElementById(this.sName).value=tmpValue;
	//--#Remove child --
	var tmpBox=document.getElementById(this.sName+this.sBox);
	var Coun0=this.sIndex;
	while((tmpBox.rows[0].cells.length-1)>this.sIndex){
		tmpBox.rows[0].deleteCell(this.sIndex+1);
	}
	//--#Request --
	this.sAjax_0.sFlag=this.sFlag;
	this.sAjax_0.sPanel=this.sName+this.sBox;
	var tmpURL=this.sRequireURL+"?ActionType="+this.sFlag+"&"+this.sFlag+"="+this.sType+tmpCommon.sysSPLIT1+this.sName+tmpCommon.sysSPLIT1+tmpValue+tmpCommon.sysSPLIT1+pIndex;//Type,Controlname,Valueid,Index
	this.sAjax_0.sendRequestSp(tmpURL,"childChoose_Dropdown_callback_"+this.sName+"()");
	//window.open(tmpURL,"_blank");
	return 0;
}
function childChoose_Dropdown_callback(){
	var tmpOBJECT=tmpChildChoose_Dropdown;
	var tmpURL=tmpOBJECT.sAjax_0.sURL;
	var tmpFlag=tmpOBJECT.sAjax_0.sFlag;
	var tmpControl=document.getElementById(tmpOBJECT.sAjax_0.sPanel);
	var tmpHttpRequest=tmpOBJECT.sAjax_0.sHttpRequests;
	//alert(sHttpRequest.responseText);
	if(tmpHttpRequest.readyState==4){
		//alert(sHttpRequest.responseText);
		var tmpData=getDataByFlag(tmpHttpRequest.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			if(tmpData.length>32){
				tmpControl.rows[0].insertCell(tmpControl.rows[0].cells.length);
				tmpControl.rows[0].cells[tmpControl.rows[0].cells.length-1].innerHTML=tmpData;
				//document.getElementById(tmpOBJECT.sName).value=tmpControl.rows[0].cells[tmpControl.rows[0].cells.length-1].childNodes[0].options[0].value;
			}
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpSTR=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
	}
}

//-- ------ #Instanct ------ --
var tmpChildChoose_Dropdown=new childChoose_Dropdown();



/*
-- ------ DatetimeView ------ --
*/
function DatetimeView(){}
//-- ------ #Parameters ------ --
DatetimeView.prototype.sName="tmpDatetimeView";

DatetimeView.prototype.sAjax_0=new netsSingleAjax();
/*

<div id="{Nets.Name}_Box_{Nets.Index}" class="DatetimeView_12"><div class="DatetimeView_13"><a href="#Here" onclick="DatetimeView_Click(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" ondblclick="DatetimeView_DClick(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 DatetimeView_14">{Nets.Text}</a></div>
	<div class="DatetimeView_15"><a href="#Here" onclick="DatetimeView_View(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 FBlack4">查看</a> <a id="{Nets.Name}_Box_{Nets.Index}_Button" href="#Here" onclick="DatetimeView_Click(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 FBlack4">选中</a></div></div>

<div class="DatetimeView_16"><div class="DatetimeView_17">{Nets.Value}</div></div>

<div id="{Nets.Name}_Box_{Nets.Index}" class="DatetimeView_12_GR"><div class="DatetimeView_13_GR"><a href="#Here" class="Link1 DatetimeView_14_GR">{Nets.Text}</a></div></div>

<div id="{Nets.Name}_Box_{Nets.Index}" class="DatetimeView_12_M"><div class="DatetimeView_13_M"><a href="#Here" onclick="DatetimeView_Click_Small(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" ondblclick="DatetimeView_DClick(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 DatetimeView_14_M">{Nets.Text}</a></div>
	<div class="DatetimeView_15"><a href="#Here" onclick="DatetimeView_View(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 FBlack4">查看</a> <a id="{Nets.Name}_Box_{Nets.Index}_Button" href="#Here" onclick="DatetimeView_Click_Small(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 FBlack4">选中</a></div></div>





*/
DatetimeView.prototype.sTemplate_Year='<div id="{Nets.Name}_Box_{Nets.Index}" class="DatetimeView_12"><div class="DatetimeView_13"><a href="#Here" onclick="DatetimeView_Click(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" ondblclick="DatetimeView_DClick(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 DatetimeView_14">{Nets.Text}</a></div><div class="DatetimeView_15"><a href="#Here" onclick="DatetimeView_View(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 FBlack4">查看</a> <a id="{Nets.Name}_Box_{Nets.Index}_Button" href="#Here" onclick="DatetimeView_Click(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 FBlack4">选中</a></div></div>';
DatetimeView.prototype.sTemplate_Head='<div class="DatetimeView_16"><div class="DatetimeView_17">{Nets.Value}</div></div>';
DatetimeView.prototype.sTemplate_DayNon='<div id="{Nets.Name}_Box_{Nets.Index}" class="DatetimeView_12_GR"><div class="DatetimeView_13_GR"><a href="#Here" class="Link1 DatetimeView_14_GR">{Nets.Text}</a></div></div>';
DatetimeView.prototype.sTemplate_Day='<div id="{Nets.Name}_Box_{Nets.Index}" class="DatetimeView_12_M"><div class="DatetimeView_13_M"><a href="#Here" onclick="DatetimeView_Click_Small(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" ondblclick="DatetimeView_DClick(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 DatetimeView_14_M">{Nets.Text}</a></div><div class="DatetimeView_15"><a href="#Here" onclick="DatetimeView_View(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 FBlack4">查看</a> <a id="{Nets.Name}_Box_{Nets.Index}_Button" href="#Here" onclick="DatetimeView_Click_Small(\'{Nets.Name}\',{Nets.Index},{Nets.Value});" class="Link1 FBlack4">选中</a></div></div>';
DatetimeView.prototype.sTemplate_END='<li class="DClear"></li>';

//-- ------ #Methods ------ --
DatetimeView.prototype.showBox=function(pName){
	if(document.getElementById(pName+"_Box").className==tmpCommon.sysHidden){
		document.getElementById(pName+"_Box").className="DatetimeView_11";
	}else{
		document.getElementById(pName+"_Box").className=tmpCommon.sysHidden;
	}
	
	return 0;
}
DatetimeView.prototype.showDropdown=function(pName,pExtendName,pType){
	if(pType==0){
		document.getElementById(pName+pExtendName+"Box").className="DatetimeView_5";
	}else{
		document.getElementById(pName+pExtendName+"Box").className=tmpCommon.sysHidden;
	}
	
	return 0;
}
DatetimeView.prototype.chooseDropdown=function(pName,pExtendName,pValue){
	var Coun0=0;
	var tmpBox=document.getElementById(pName+pExtendName+"Box");
	if(pExtendName=="_ViewType"){
		while((tmpBox.childNodes.length-1)>Coun0){
			if(tmpBox.childNodes[Coun0].childNodes[0].innerHTML==pValue){
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FRed1 FStrong";
			}else{
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FBlack3";
			}
			Coun0++;
		}
		document.getElementById(pName+pExtendName).childNodes[1].innerHTML=pValue;
		
	}else if(pExtendName=="_ViewYear"){
		while((tmpBox.childNodes.length-1)>Coun0){
			if(tmpBox.childNodes[Coun0].childNodes[0].innerHTML==pValue+"年"){
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FRed1 FStrong";
			}else{
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FBlack3";
			}
			Coun0++;
		}
		document.getElementById(pName+pExtendName).childNodes[1].innerHTML=pValue+"年";
		
	}else if(pExtendName=="_ViewMonth"){
		while((tmpBox.childNodes.length-1)>Coun0){
			if(tmpBox.childNodes[Coun0].childNodes[0].innerHTML==pValue+"月"){
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FRed1 FStrong";
			}else{
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FBlack3";
			}
			Coun0++;
		}
		document.getElementById(pName+pExtendName).childNodes[1].innerHTML=pValue+"月";
		
	}else if(pExtendName=="_ViewDay"){
		while((tmpBox.childNodes.length-1)>Coun0){
			if(tmpBox.childNodes[Coun0].childNodes[0].innerHTML==pValue+"日"){
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FRed1 FStrong";
			}else{
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FBlack3";
			}
			Coun0++;
		}
		document.getElementById(pName+pExtendName).childNodes[1].innerHTML=pValue+"日";
		
	}else if(pExtendName=="_ViewHour"){
		while((tmpBox.childNodes.length-1)>Coun0){
			if(tmpBox.childNodes[Coun0].childNodes[0].innerHTML==pValue+"时"){
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FRed1 FStrong";
			}else{
				tmpBox.childNodes[Coun0].childNodes[0].className="Link1 FBlack3";
			}
			Coun0++;
		}
		document.getElementById(pName+pExtendName).childNodes[1].innerHTML=pValue+"时";
		
	}
	document.getElementById(pName+pExtendName+"Value").value=pValue;
	
	tmpType=document.getElementById(pName+"_ViewTypeValue").value;
	document.getElementById(pName+"_ViewYear").className=tmpCommon.sysHidden;
	document.getElementById(pName+"_ViewMonth").className=tmpCommon.sysHidden;
	document.getElementById(pName+"_ViewDay").className=tmpCommon.sysHidden;
	document.getElementById(pName+"_ViewHour").className=tmpCommon.sysHidden;
	if(tmpType=="年视图"){
		document.getElementById(pName+"_ViewYear").className="DatetimeView_3";
		this.setYearView(pName);
	}else if(tmpType=="月视图"){
		document.getElementById(pName+"_ViewYear").className="DatetimeView_3";
		document.getElementById(pName+"_ViewMonth").className="DatetimeView_3";
		this.setMonthView(pName);
	}else if(tmpType=="日视图"){
		document.getElementById(pName+"_ViewYear").className="DatetimeView_3";
		document.getElementById(pName+"_ViewMonth").className="DatetimeView_3";
		document.getElementById(pName+"_ViewDay").className="DatetimeView_3";
		this.setDayView(pName);
	}else if(tmpType=="小时视图"){
		document.getElementById(pName+"_ViewYear").className="DatetimeView_3";
		document.getElementById(pName+"_ViewMonth").className="DatetimeView_3";
		document.getElementById(pName+"_ViewDay").className="DatetimeView_3";
		document.getElementById(pName+"_ViewHour").className="DatetimeView_3";
		this.setHourView(pName);
	}
	return 0;
}

DatetimeView.prototype.setYearView=function(pName){
	var tmpContent="";
	var Coun0=0;
	while(Coun0<56){
		tmpSTR=this.sTemplate_Year.replace(/\{Nets.Name}/g,pName);
		tmpSTR=tmpSTR.replace(/\{Nets.Index}/g,Coun0);
		tmpSTR=tmpSTR.replace(/\{Nets.Value}/g,Coun0+1900);
		tmpSTR=tmpSTR.replace(/\{Nets.Text}/g,Coun0+1900);
		tmpContent+=tmpSTR;
		Coun0++;
	}
	
	tmpContent+=this.sTemplate_END;
	document.getElementById(pName+"_Box").innerHTML=tmpContent;
	return 0;
}
DatetimeView.prototype.setMonthView=function(pName){
	var tmpContent="";
	//#Head
	var tmpINT=document.getElementById(pName+"_ViewYearValue").value-3;
	var Coun0=0;
	while(Coun0<7){
		tmpINT_0=tmpINT+Coun0;
		tmpSTR=this.sTemplate_Head.replace(/\{Nets.Value}/g,tmpINT_0);
		tmpContent+=tmpSTR;
		Coun0++;
	}
	//#Data
	var Coun0=0;
	var Coun1=0;
	while(Coun0<84){
		if((Coun0+1)%7==1){
			Coun1++;
		}
		tmpSTR=this.sTemplate_Year.replace(/\{Nets.Name}/g,pName);
		tmpSTR=tmpSTR.replace(/\{Nets.Index}/g,Coun0);
		tmpSTR=tmpSTR.replace(/\{Nets.Value}/g,Coun1);
		tmpSTR=tmpSTR.replace(/\{Nets.Text}/g,(tmpINT+Coun0%7)+"-"+Coun1);
		tmpContent+=tmpSTR;
		Coun0++;
	}
	
	tmpContent+=this.sTemplate_END;
	document.getElementById(pName+"_Box").innerHTML=tmpContent;
	return 0;
}
DatetimeView.prototype.setDayView=function(pName){
	var Coun0=0;
	var tmpContent="";
	//#Head
	Coun0=0;
	tmpAR0=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
	while(Coun0<7){
		tmpSTR=this.sTemplate_Head.replace(/\{Nets.Value}/g,tmpAR0[Coun0]);
		tmpContent+=tmpSTR;
		Coun0++;
	}
	//#Non
	tmpDate=new Date(document.getElementById(pName+"_ViewYearValue").value,document.getElementById(pName+"_ViewMonthValue").value-1,1);
	tmpINT=tmpDate.getDay();
	Coun0=0;
	while(Coun0<tmpINT){
		tmpSTR=this.sTemplate_DayNon.replace(/\{Nets.Name}/g,pName);
		tmpSTR=tmpSTR.replace(/\{Nets.Text}/g,"");
		tmpContent+=tmpSTR;
		Coun0++;
	}
	//#Day
	Coun0=1;
	while(Coun0<35){
		tmpDate=new Date(document.getElementById(pName+"_ViewYearValue").value,document.getElementById(pName+"_ViewMonthValue").value-1,Coun0);
		if((document.getElementById(pName+"_ViewMonthValue").value-1)!=tmpDate.getMonth()){
			Coun0=35;
		}else{
			tmpSTR=this.sTemplate_Year.replace(/\{Nets.Name}/g,pName);
			tmpSTR=tmpSTR.replace(/\{Nets.Index}/g,Coun0);
			tmpSTR=tmpSTR.replace(/\{Nets.Value}/g,Coun0);
			tmpSTR=tmpSTR.replace(/\{Nets.Text}/g,tmpDate.getYear()+"-"+(tmpDate.getMonth()+1)+"-"+tmpDate.getDate());
			tmpContent+=tmpSTR;
		}
		Coun0++;
	}
	
	tmpContent+=this.sTemplate_END;
	document.getElementById(pName+"_Box").innerHTML=tmpContent;
	return 0;
}
DatetimeView.prototype.setHourView=function(pName){
	var Coun0=0;
	var tmpContent="";
	//#Head
	Coun0=0;
	while(Coun0<7){
		tmpDate=new Date(document.getElementById(pName+"_ViewYearValue").value,document.getElementById(pName+"_ViewMonthValue").value-1,document.getElementById(pName+"_ViewDayValue").value);

		tmpSTR=this.sTemplate_Head.replace(/\{Nets.Value}/g,tmpDate.getYear()+"-"+(tmpDate.getMonth()+1)+"-"+tmpDate.getDate());
		tmpContent+=tmpSTR;
		Coun0++;
	}
	//#Data
	var Coun0=0;
	var Coun1=-1;
	while(Coun0<168){
		if((Coun0+1)%7==1){
			tmpDate=new Date(document.getElementById(pName+"_ViewYearValue").value,document.getElementById(pName+"_ViewMonthValue").value-1,document.getElementById(pName+"_ViewDayValue").value);
			Coun1++;
		}
		tmpSTR=this.sTemplate_Day.replace(/\{Nets.Name}/g,pName);
		tmpSTR=tmpSTR.replace(/\{Nets.Index}/g,Coun0);
		tmpSTR=tmpSTR.replace(/\{Nets.Value}/g,Coun1);
		tmpSTR=tmpSTR.replace(/\{Nets.Text}/g,tmpDate.getYear()+"-"+(tmpDate.getMonth()+1)+"-"+tmpDate.getDate()+":"+Coun1);
		tmpContent+=tmpSTR;
		Coun0++;
	}
	
	
	tmpContent+=this.sTemplate_END;
	document.getElementById(pName+"_Box").innerHTML=tmpContent;
	return 0;
}

function DatetimeView_Click(pName,pIndex,pValue){
	if(document.getElementById(pName+"_Box_"+pIndex).className=="DatetimeView_12"){
		document.getElementById(pName+"_Box_"+pIndex).className="DatetimeView_12_G";
		document.getElementById(pName+"_Box_"+pIndex).childNodes[0].className="DatetimeView_13_G";
		document.getElementById(pName+"_Box_"+pIndex).childNodes[0].childNodes[0].className="Link1 DatetimeView_14_G";
		document.getElementById(pName+"_Box_"+pIndex+"_Button").innerHTML="取消选中";
	}else{
		document.getElementById(pName+"_Box_"+pIndex).className="DatetimeView_12";
		document.getElementById(pName+"_Box_"+pIndex).childNodes[0].className="DatetimeView_13";
		document.getElementById(pName+"_Box_"+pIndex).childNodes[0].childNodes[0].className="Link1 DatetimeView_14";
		document.getElementById(pName+"_Box_"+pIndex+"_Button").innerHTML="选中";
	}
	
}
function DatetimeView_Click_Small(pName,pIndex,pValue){
	if(document.getElementById(pName+"_Box_"+pIndex).className=="DatetimeView_12_M"){
		document.getElementById(pName+"_Box_"+pIndex).className="DatetimeView_12_M_G";
		document.getElementById(pName+"_Box_"+pIndex).childNodes[0].className="DatetimeView_13_M_G";
		document.getElementById(pName+"_Box_"+pIndex).childNodes[0].childNodes[0].className="Link1 DatetimeView_14_M_G";
		document.getElementById(pName+"_Box_"+pIndex+"_Button").innerHTML="取消选中";
	}else{
		document.getElementById(pName+"_Box_"+pIndex).className="DatetimeView_12_M";
		document.getElementById(pName+"_Box_"+pIndex).childNodes[0].className="DatetimeView_13_M";
		document.getElementById(pName+"_Box_"+pIndex).childNodes[0].childNodes[0].className="Link1 DatetimeView_14_M";
		document.getElementById(pName+"_Box_"+pIndex+"_Button").innerHTML="选中";
	}
	
}
function DatetimeView_DClick(pName,pIndex,pValue){
	
}
function DatetimeView_View(pName,pIndex,pValue){
	
}


//-- ------ #Instanct ------ --
var tmpDatetimeView=new DatetimeView();


/*
-- ------ CheckboxAR_DataColumns ------ --
*/
function CheckboxAR_DataColumns(){}
//-- ------ #Parameters ------ --
CheckboxAR_DataColumns.prototype.sName="tmpCheckboxAR_DataColumns";
CheckboxAR_DataColumns.prototype.sAjax_0=new netsSingleAjax();

//-- ------ #Methods ------ --
CheckboxAR_DataColumns.prototype.showBox=function(pName){
	if(document.getElementById(this.sName+"_Box").className==tmpCommon.sysHidden){
		document.getElementById(this.sName+"_Box").className="CheckboxAR_DataColumns_Columnsbox_0";
		document.getElementById(this.sName+"_ShowButton").innerHTML="- 收起选项";
	}else{
		document.getElementById(this.sName+"_Box").className=tmpCommon.sysHidden;
		document.getElementById(this.sName+"_ShowButton").innerHTML="+ 查看选项并通过选项来选取";
	}
	
	return 0;
}
CheckboxAR_DataColumns.prototype.selectColumns=function(pName){
	var tmpContent_Text="";
	var tmpContent_Column="";
	var Coun0=0;
	var tmpFlag=0;
	while(tmpFlag==0){
		if(document.getElementById(this.sName+Coun0+"_A")!=undefined){
			if(document.getElementById(this.sName+Coun0+"_A").checked){
				tmpContent_Text+=document.getElementById(this.sName+Coun0+"_A").value+tmpCommon.sysSPLIT2;
			}else if(document.getElementById(this.sName+Coun0+"_B").checked){
				tmpContent_Column+=document.getElementById(this.sName+Coun0+"_B").value+tmpCommon.sysSPLIT2;
			}
		}else{
			tmpFlag=1;
		}
		Coun0++;
	}
	
	document.getElementById(this.sName).value=tmpContent_Text+tmpCommon.sysSPLIT5+tmpContent_Column;
	return 0;
}

//-- ------ #Instanct ------ --
var tmpCheckboxAR_DataColumns=new CheckboxAR_DataColumns();



/*
-- ------ FromTo ------ --
*/
function FromTo(){}
//-- ------ #Parameters ------ --
FromTo.prototype.sName="tmpFromTo";

//-- ------ #Methods ------ --
FromTo.prototype.calaValue=function(pName){
	document.getElementById(pName).value=
		document.getElementById(pName+"_From").value+tmpCommon.sysSPLIT2+
		document.getElementById(pName+"_To").value;

	return 0;
}

//-- ------ #Instanct ------ --
var tmpFromTo=new FromTo();





/*
-- ------ Into ------ --
*/
function Into(){}
//-- ------ #Parameters ------ --
Into.prototype.sName="tmpInto";
Into.prototype.sAjax_0=new netsSingleAjax();

Into.prototype.sExText_AA=".NETSAA";
Into.prototype.sExText_AB=".NETSAB";
Into.prototype.sExText_BA=".NETSBA";
Into.prototype.sExText_BB=".NETSBB";

Into.prototype.sName_TabCount=2;
Into.prototype.sName_SearchDefaultText="请输入您要查询的名称...";
Into.prototype.sName_ChildCount=2;

Into.prototype.sURL_Name="";
Into.prototype.sURL_Date="";

Into.prototype.sDate_YearStart=1960;
Into.prototype.sDate_YearCount=80;
Into.prototype.sDate_MonthStart=1;
Into.prototype.sDate_MonthCount=12;
Into.prototype.sDate_SPLIT0="-";
Into.prototype.sDate_DefaultYear=2010;
Into.prototype.sDate_DefaultMonth=9;

//-- ------ #Methods ------ --
//-- #Name --
Into.prototype.ShowName=function(pName){
	this.CloseDate(pName);
	document.getElementById(pName+"_Name_Box").className="Into_Box_Name";
	this.OnSearchFocus_Name(pName,1);
	
	var Coun0=0;
	while(this.sName_TabCount>Coun0){
		document.getElementById(pName+"_Name_Child_"+Coun0).className=tmpCommon.sysHidden;
		document.getElementById(pName+"_Name_Child_"+Coun0+"_Button").innerHTML="展开>>";
		Coun0++;
	}
	tmpIndex=0;
	document.getElementById(pName+"_Name_Child_"+tmpIndex).className="Into_Choose";
	document.getElementById(pName+"_Name_Child_"+tmpIndex+"_Button").innerHTML="收起<<<";

	return 0;
}
Into.prototype.CloseName=function(pName){
	document.getElementById(pName+"_Name_Box").className=tmpCommon.sysHidden;

	return 0;
}
Into.prototype.OnTab_Name=function(pName,pIndex){
	//-- ------ ### ------ --
	var Coun0=0;
	while(this.sName_TabCount>Coun0){
		document.getElementById(pName+"_Name_Tab_"+Coun0).className="Into_Title_Cell";
		document.getElementById(pName+"_Name_Tab_"+Coun0+"_Link").className="Link1 FBlack3";
		Coun0++;
	}
	
	document.getElementById(pName+"_Name_Tab_"+pIndex).className="Into_Title_CellChoosed";
	document.getElementById(pName+"_Name_Tab_"+pIndex+"_Link").className="Link1 FBlack1";
	document.getElementById(pName+"_Name_Choose").className="Into_Choose";
	//-- ------ ### ------ --
	tmpParid=document.getElementById(pName+"_Name_Startid").value;
	if(pIndex>0){
		tmpINT=pIndex-1;
		tmpParid=document.getElementById(pName+"_Name_Tab_"+tmpINT+"_Value").value;
	}
	
	this.sAjax_0.sFlag="Data";
	this.sAjax_0.sPanel=pName+"_Name_Choose";
	var tmpURL=tmpCommon.sysRoot+this.sURL_Name+"?ActionType=DZonePar&DZonePar="+
		pName+tmpCommon.sysSPLIT1+
		tmpParid+tmpCommon.sysSPLIT1+
		pIndex;
	this.sAjax_0.sendRequestSp(tmpURL,"into_Zone_callback()");
	//window.open(tmpURL,"_blank");
	
	return 0;
}
function into_Zone_callback(){
	var tmpFlag=tmpInto.sAjax_0.sFlag;
	var tmpPanel=document.getElementById(tmpInto.sAjax_0.sPanel);
	var tmpURL=tmpInto.sAjax_0.sURL;
	var tmpHttpRequests=tmpInto.sAjax_0.sHttpRequests;
	//alert(tmpHttpRequests.responseText);
	if(tmpHttpRequests.readyState==4){
		//alert(tmpHttpRequests.responseText);
		var tmpData=getDataByFlag(tmpHttpRequests.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			tmpPanel.innerHTML=tmpData;
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
		tmpPanel.innerHTML=tmpCommon.sysLoading_Ajax;
	}
}
Into.prototype.OnChooseZone_Name=function(pName,pText,pValue,pIndex){
	document.getElementById(pName+"_Name_Tab_"+pIndex+"_Link").innerHTML=pText;
	document.getElementById(pName+"_Name_Tab_"+pIndex+"_Text").value=pText;
	document.getElementById(pName+"_Name_Tab_"+pIndex+"_Value").value=pValue;
	
	this.OnSearch_Condition(pName);
	return 0;
}
Into.prototype.OnSearch_Condition=function(pName){
	tmpSTR="";
	Coun0=0;
	while(this.sName_TabCount>Coun0){
		tmpSTR+=document.getElementById(pName+"_Name_Tab_"+Coun0+"_Value").value+tmpCommon.sysSPLIT2;
		Coun0++;
	}
	
	tmpSearchText=document.getElementById(pName+"_Name_Search").value;
	if(tmpSearchText==this.sName_SearchDefaultText){
		tmpSearchText="";
	}
	this.sAjax_0.sFlag="Data";
	this.sAjax_0.sPanel=pName+"_Name_Child_0";
	var tmpURL=tmpCommon.sysRoot+this.sURL_Data+"?ActionType=DUnitSearch&DUnitSearch="+
		pName+tmpCommon.sysSPLIT1+
		tmpCommon.encodeURL(tmpSearchText)+tmpCommon.sysSPLIT1+
		"-1"+tmpCommon.sysSPLIT1+
		tmpSTR+tmpCommon.sysSPLIT1+
		0;
	this.sAjax_0.sendRequestSp(tmpURL,"into_UnitSearch_callback()");
	//window.open(tmpURL,"_blank");
	
	
	return 0;
}
function into_UnitSearch_callback(){
	var tmpFlag=tmpInto.sAjax_0.sFlag;
	var tmpPanel=document.getElementById(tmpInto.sAjax_0.sPanel);
	var tmpURL=tmpInto.sAjax_0.sURL;
	var tmpHttpRequests=tmpInto.sAjax_0.sHttpRequests;
	//alert(tmpHttpRequests.responseText);
	if(tmpHttpRequests.readyState==4){
		//alert(tmpHttpRequests.responseText);
		var tmpData=getDataByFlag(tmpHttpRequests.responseText,tmpFlag);
		//alert(tmpData);
		if(tmpData.indexOf("sendRequest")>=0 && tmpData!="<!--sendRequest-->"){
			tmpPanel.innerHTML=tmpData;
	    	tmpFrames.showLoading(1);
	    }else{
	    	tmpPanel.innerHTML=tmpCommon.sysError_Ajax.replace(/\{Nets.Response}/g,tmpURL);
	    	tmpFrames.showLoading(1);
	    }
	}else{
		tmpFrames.showLoading(0);
		tmpPanel.innerHTML=tmpCommon.sysLoading_Ajax;
	}
}


Into.prototype.OnSearchFocus_Name=function(pName,pType){
	//-- ------ ### ------ --
	if(pType==0){
		document.getElementById(pName+"_Name_Search").className="Into_Title_Input_B";
		if(document.getElementById(pName+"_Name_Search").value==this.sName_SearchDefaultText){
			document.getElementById(pName+"_Name_Search").value="";
		}
	}else{
		document.getElementById(pName+"_Name_Search").className="Into_Title_Input_A";
		if(document.getElementById(pName+"_Name_Search").value==""){
			document.getElementById(pName+"_Name_Search").value=this.sName_SearchDefaultText;
		}
	}
	
	return 0;
}
Into.prototype.OnChoose_Name=function(pName,pText,pValue,pIndex){
	document.getElementById(pName+"_Name_Text_"+pIndex).value=pText;
	document.getElementById(pName+"_Name_Value_"+pIndex).value=pValue;
	document.getElementById(pName+"_Name_Child_"+pIndex+"_Label").innerHTML=pText;
	
	Coun0=0;
	tmpSTR="";
	while(this.sName_ChildCount>Coun0){
		if(Coun0!=0){
			tmpSTR+=tmpCommon.sysSPLIT1;
		}
		tmpSTR+=document.getElementById(pName+"_Name_Text_"+Coun0).value;
		Coun0++;
	}
	document.getElementById(pName+"_Name").value=tmpSTR;
	//-- #Child --
	tmpINT=pIndex+1;
	if(this.sName_ChildCount>tmpINT){
		this.sAjax_0.sFlag="Data";
		this.sAjax_0.sPanel=pName+"_Name_Child_"+tmpINT;
		var tmpURL=tmpCommon.sysRoot+this.sURL_Data+"?ActionType=DUnitSearch&DUnitSearch="+
			pName+tmpCommon.sysSPLIT1+
			""+tmpCommon.sysSPLIT1+
			document.getElementById(pName+"_Name_Value_"+pIndex).value+tmpCommon.sysSPLIT1+
			""+tmpCommon.sysSPLIT1+
			tmpINT;
		this.sAjax_0.sendRequestSp(tmpURL,"into_UnitSearch_callback()");
		//window.open(tmpURL,"_blank");
	}
	
	this.SpellValue(pName);
	return 0;
}
Into.prototype.OnChildBox_Show=function(pName,pIndex){
	if(document.getElementById(pName+"_Name_Child_"+pIndex).className==tmpCommon.sysHidden){
		document.getElementById(pName+"_Name_Child_"+pIndex).className="Into_Choose";
		document.getElementById(pName+"_Name_Child_"+pIndex+"_Button").innerHTML="收起<<<";
	}else{
		document.getElementById(pName+"_Name_Child_"+pIndex).className=tmpCommon.sysHidden;
		document.getElementById(pName+"_Name_Child_"+pIndex+"_Button").innerHTML="展开>>";
	}
	return 0;
}



//-- #Date --
Into.prototype.ShowDate=function(pName){
	this.CloseName(pName);
	document.getElementById(pName+"_Date_Box").className="Into_Box_Date";
	//-- ------ ### ------ --
	var tmpAR0=document.getElementById(pName+"_Date").value.split(this.sDate_SPLIT0);
	if(tmpAR0.length!=2){
		tmpAR0=new Array(this.sDate_DefaultYear,this.sDate_DefaultMonth);
	}
	this.OnChoosed_Date_Year(pName,tmpAR0[0]);
	this.OnChoosed_Date_Month(pName,tmpAR0[1]);

	return 0;
}
Into.prototype.CloseDate=function(pName){
	document.getElementById(pName+"_Date_Box").className=tmpCommon.sysHidden;

	return 0;
}
Into.prototype.OnChoosed_Date_Year=function(pName,pValue){
	//-- ------ ### ------ --
	var Coun0=0;
	while(this.sDate_YearCount>Coun0){
		if(document.getElementById(pName+"_Date_ChooseYear_"+Coun0).childNodes[0].innerHTML==pValue){
			document.getElementById(pName+"_Date_ChooseYear_"+Coun0).className="Into_Data_Choosed Into_Data_1";
			document.getElementById(pName+"_Date_Year").value=document.getElementById(pName+"_Date_ChooseYear_"+Coun0).childNodes[0].innerHTML;
		}else{
			document.getElementById(pName+"_Date_ChooseYear_"+Coun0).className="Into_Data_Normal Into_Data_1";
		}
		Coun0++;
	}
	
	this.SpellValue(pName);
	return 0;
}
Into.prototype.OnChoosed_Date_Month=function(pName,pValue){
	//-- ------ ### ------ --
	var Coun0=0;
	while(this.sDate_MonthCount>Coun0){
		if(document.getElementById(pName+"_Date_ChooseMonth_"+Coun0).childNodes[0].innerHTML==pValue){
			document.getElementById(pName+"_Date_ChooseMonth_"+Coun0).className="Into_Data_Choosed Into_Data_2";
			document.getElementById(pName+"_Date_Month").value=document.getElementById(pName+"_Date_ChooseMonth_"+Coun0).childNodes[0].innerHTML;
		}else{
			document.getElementById(pName+"_Date_ChooseMonth_"+Coun0).className="Into_Data_Normal Into_Data_2";
		}
		Coun0++;
	}
	
	this.SpellValue(pName);
	return 0;
}


Into.prototype.SpellValue=function(pName){
	tmpSTR="";
	//-- ------ #Name ------ --
	//-- ------ #Date ------ --
	document.getElementById(pName+"_Date").value=
		document.getElementById(pName+"_Date_Year").value+this.sDate_SPLIT0+
		document.getElementById(pName+"_Date_Month").value;
	//-- ------ #Value ------ --
	tmpVALUE="";
	//-- #Name --
	Coun0=0;
	while(this.sName_TabCount>Coun0){
		if(Coun0!=0){
			tmpVALUE+=tmpCommon.sysSPLIT2;
		}
		tmpVALUE+=document.getElementById(pName+"_Name_Tab_"+Coun0+"_Text").value+tmpCommon.sysSPLIT1+
			document.getElementById(pName+"_Name_Tab_"+Coun0+"_Value").value+this.sExText_AA;
		Coun0++;
	}
	tmpVALUE+=this.sExText_AB+tmpCommon.sysSPLIT3;
	//-- #Text --
	Coun0=0;
	while(this.sName_ChildCount>Coun0){
		if(Coun0!=0){
			tmpVALUE+=tmpCommon.sysSPLIT2;
		}
		tmpVALUE+=document.getElementById(pName+"_Name_Text_"+Coun0).value+tmpCommon.sysSPLIT1+
			document.getElementById(pName+"_Name_Value_"+Coun0).value+this.sExText_BA;
		Coun0++;
	}
	tmpVALUE+=this.sExText_BB+tmpCommon.sysSPLIT3;
	//-- #Date --
	tmpVALUE+=document.getElementById(pName+"_Date").value.replace(/\-/g,tmpCommon.sysSPLIT2);
	//-- #SPELL --
	document.getElementById(pName).value=tmpVALUE;
}

//-- ------ #Instanct ------ --
var tmpInto=new Into();


/*
-- ------ Scoring ------ --
*/
function Scoring(){}
//-- ------ #Parameters ------ --
Scoring.prototype.sName="tmpScoring";
Scoring.prototype.sCellCount=10;
Scoring.prototype.sImgPath="";


//-- ------ #Methods ------ --
Scoring.prototype.OnMouseover=function(pName,pIndex){
	if(document.getElementById(pName+"_Flag").value==1){
		return 1;
	}
	
	var Coun0=0;
	while(this.sCellCount>Coun0){
		if(pIndex>=Coun0){
			document.getElementById(pName+"_Img_"+Coun0).src=this.sImgPath+"Code_A.jpg";
		}else{
			document.getElementById(pName+"_Img_"+Coun0).src=this.sImgPath+"Code_B.jpg";
		}
		Coun0++;
	}
	document.getElementById(pName).value=pIndex;
	document.getElementById(pName+"_Code").innerHTML=pIndex+".0分";
	
	return 0;
}
Scoring.prototype.OnClick=function(pName,pIndex){
	/*
	if(document.getElementById(pName+"_Flag").value==1){
		return 1;
	}
	*/
	
	var Coun0=0;
	while(this.sCellCount>Coun0){
		if(pIndex>=Coun0){
			document.getElementById(pName+"_Img_"+Coun0).src=this.sImgPath+"Code_A.jpg";
		}else{
			document.getElementById(pName+"_Img_"+Coun0).src=this.sImgPath+"Code_B.jpg";
		}
		Coun0++;
	}
	document.getElementById(pName+"_Button").className="Scoring_Button";
	document.getElementById(pName+"_Flag").value=1;
	document.getElementById(pName).value=pIndex;
	
	return 0;
}
Scoring.prototype.OnReset=function(pName,pIndex){
	document.getElementById(pName+"_Button").className=tmpCommon.sysHidden;
	document.getElementById(pName+"_Flag").value=0;
	
	return 0;
}


//-- ------ #Instanct ------ --
var tmpScoring=new Scoring();



/*
-- ------ NDropdownAR ------ --
*/
function NDropdownAR(){}
//-- ------ #Parameters ------ --
NDropdownAR.prototype.sName="tmpNDropdownAR";
NDropdownAR.prototype.sImgCorePath="../../../";
NDropdownAR.prototype.sImgButtonShow="Ui/Common/Img/Control/NDropdownAR_1.jpg";
NDropdownAR.prototype.sImgButtonHidden="Ui/Common/Img/Control/NDropdownAR_0.jpg";

//-- ------ #Methods ------ --
NDropdownAR.prototype.OnShowOptions=function(){
	
	if(document.getElementById(this.sName+"_Options").className==tmpCommon.sysHidden){
		document.getElementById(this.sName+"_Outbox").className="NDropdown_1_Show";
		document.getElementById(this.sName+"_Options").className="NDropdown_4";
		document.getElementById(this.sName+"_Button").childNodes[0].childNodes[0].src=this.sImgCorePath+this.sImgButtonShow;
		document.getElementById(this.sName+"_Option_"+document.getElementById(this.sName+"_SelectIndex").value).focus();
		tmpFrames.showBlack_ById(this.sName+"_BgHidden","BgHidden",0);
		tmpFrames.hiddenAllElement("Select",0);
	}else{
		document.getElementById(this.sName+"_Outbox").className="NDropdown_1";
		document.getElementById(this.sName+"_Options").className=tmpCommon.sysHidden;
		document.getElementById(this.sName+"_Button").childNodes[0].childNodes[0].src=this.sImgCorePath+this.sImgButtonHidden;
		tmpFrames.showBlack_ById(this.sName+"_BgHidden","BgHidden",1);
		tmpFrames.hiddenAllElement("Select",1);
	}
	
	return 0;
}
NDropdownAR.prototype.OnSelect=function(pIndex,pText,pValue){
	document.getElementById(this.sName+"_SelectIndex").value=pIndex;
	document.getElementById(this.sName+"_LabelText").childNodes[0].innerHTML=pText;
	document.getElementById(this.sName+"_LabelText").childNodes[0].title=pText;
	document.getElementById(this.sName).value=pValue;
	//-- #Options --
	var Coun0=0;
	var tmpElement=document.getElementById(this.sName+"_Option_"+Coun0);
	while(tmpElement!=undefined){
		document.getElementById(this.sName+"_Option_"+Coun0).className="NDropdown_7_Normal";
		document.getElementById(this.sName+"_Option_"+Coun0+"_ClassName").value="NDropdown_7_Normal";
		
		Coun0++;
		tmpElement=document.getElementById(this.sName+"_Option_"+Coun0);
	}
	document.getElementById(this.sName+"_Option_"+pIndex).className="NDropdown_7_Selected";
	document.getElementById(this.sName+"_Option_"+pIndex+"_ClassName").value="NDropdown_7_Selected";
	
	return 0;
}

//-- ------ #Instanct ------ --
var tmpNDropdownAR=new NDropdownAR();


/*
-- ------ TextOptions ------ --
*/
function TextOptions(){}
//-- ------ #Parameters ------ --
TextOptions.prototype.sName="tmpTextOptions";
TextOptions.prototype.sSPLIT=",";

//-- ------ #Methods ------ --
//-- #Tab --
TextOptions.prototype.OnChoose=function(pValue){
	//-- ### --
	document.getElementById(this.sName).value+=pValue+this.sSPLIT;
	return 0;
}


/*
-- ------ TStyle ------ --
*/
function TStyle(){}
//-- ------ #Parameters ------ --
TStyle.prototype.sName="tmpTStyle";
TStyle.prototype.sSPLIT_0=";";
TStyle.prototype.sSPLIT_1=":";

TStyle.prototype.sA_Name="font-family";
TStyle.prototype.sB_Name="font-size";
TStyle.prototype.sC_Name="font-style";
TStyle.prototype.sD_Name="font-weight";
TStyle.prototype.sE_Name="text-decoration";
TStyle.prototype.sF_Name="color";
TStyle.prototype.sG_Name="background-color";
TStyle.prototype.sA_Value="";//宋体
TStyle.prototype.sB_Value="";//12px
TStyle.prototype.sC_Value="";//700
TStyle.prototype.sD_Value="";//italic
TStyle.prototype.sE_Value="";//underline
TStyle.prototype.sF_Value="";//#000000
TStyle.prototype.sG_Value="";//#FFFFFF
TStyle.prototype.sC_ImgPath="";


//-- ------ #Methods ------ --
//-- #Tab --
TStyle.prototype.OnShowbox=function(pFlag,pType){
	//-- ### --
	this.OnHiddenbox();
	//-- ### --
	if(pType==0){
		if(pFlag=="A" || pFlag=="B"){
			document.getElementById(this.sName+"_"+pFlag+"_Box").className="TStyle_TextBox";
		}else if(pFlag=="F" || pFlag=="G"){
			document.getElementById(this.sName+"_"+pFlag+"_Box").className="TStyle_ColorBox";
		}
	}else {
		document.getElementById(this.sName+"_"+pFlag+"_Box").className=tmpCommon.sysHidden;
	}
	
	tmpFrames.showBlack_ById(this.sName+"_BgHidden","BgHidden",0);
	tmpFrames.hiddenAllSelect(0);
	return 0;
}
TStyle.prototype.OnHiddenbox=function(){
	//-- ### --
	document.getElementById(this.sName+"_A_Box").className=tmpCommon.sysHidden;
	document.getElementById(this.sName+"_B_Box").className=tmpCommon.sysHidden;
	document.getElementById(this.sName+"_F_Box").className=tmpCommon.sysHidden;
	document.getElementById(this.sName+"_G_Box").className=tmpCommon.sysHidden;
	document.getElementById(this.sName+"_F_Text").childNodes[0].src=this.sC_ImgPath+"b_F.jpg";
	document.getElementById(this.sName+"_G_Text").childNodes[0].src=this.sC_ImgPath+"b_G.jpg";
	
	tmpFrames.showBlack_ById(this.sName+"_BgHidden","TStyle_Hidden",1);
	tmpFrames.hiddenAllSelect(1);
	return 0;
}
TStyle.prototype.OnClick=function(pFlag){
	//-- ### --
	var tmpSTR=document.getElementById(this.sName).value;
	tmpINT=this.FormatValue(tmpSTR);
	//-- ### --
	if(pFlag=="C" || pFlag=="D" || pFlag=="E"){
		tmpFlag=0;
		if(pFlag=="C" && this.sC_Value==""){
			tmpFlag=0;
			this.sC_Value="700";
		}else if(pFlag=="C"){
			tmpFlag=1;
			this.sC_Value="";
		}
		if(pFlag=="D" && this.sD_Value==""){
			tmpFlag=0;
			this.sD_Value="italic";
		}else if(pFlag=="D"){
			tmpFlag=1;
			this.sD_Value="";
		}
		if(pFlag=="E" && this.sE_Value==""){
			tmpFlag=0;
			this.sE_Value="underline";
		}else if(pFlag=="E"){
			tmpFlag=1;
			this.sE_Value="";
		}
		if(tmpFlag==1){
			document.getElementById(this.sName+"_"+pFlag+"_Text").childNodes[0].src=this.sC_ImgPath+"b_"+pFlag+".jpg";
		}else{
			document.getElementById(this.sName+"_"+pFlag+"_Text").childNodes[0].src=this.sC_ImgPath+"b_"+pFlag+"_L.jpg";
		}
	}else if(pFlag=="F" || pFlag=="G"){
		this.OnShowbox(pFlag,0);
		document.getElementById(this.sName+"_"+pFlag+"_Text").childNodes[0].src=this.sC_ImgPath+"b_"+pFlag+"_L.jpg";
	}else{
		this.OnShowbox(pFlag,0);
	}
	//-- ### --
	document.getElementById(this.sName).value=
		this.sA_Name+this.sSPLIT_0+this.sA_Value+this.sSPLIT_1+
		this.sB_Name+this.sSPLIT_0+this.sB_Value+this.sSPLIT_1+
		this.sC_Name+this.sSPLIT_0+this.sC_Value+this.sSPLIT_1+
		this.sD_Name+this.sSPLIT_0+this.sD_Value+this.sSPLIT_1+
		this.sE_Name+this.sSPLIT_0+this.sE_Value+this.sSPLIT_1+
		this.sF_Name+this.sSPLIT_0+this.sF_Value+this.sSPLIT_1+
		this.sG_Name+this.sSPLIT_0+this.sG_Value+this.sSPLIT_1;
	this.setSample();
	return 0;
}
TStyle.prototype.OnChoose=function(pFlag,pValue){
	//-- ### --
	var tmpSTR=document.getElementById(this.sName).value;
	tmpINT=this.FormatValue(tmpSTR);
	//-- ### --
	if(pFlag=="A" || pFlag=="B"){
		if(pFlag=="A"){
			this.sA_Value=pValue;
		}else if(pFlag=="B"){
			this.sB_Value=pValue;
		}
		document.getElementById(this.sName+"_"+pFlag+"_Text").innerHTML=pValue;
		this.OnHiddenbox();
	}else if(pFlag=="F" || pFlag=="G"){
		if(pFlag=="F"){
			this.sF_Value=pValue;
		}else if(pFlag=="G"){
			this.sG_Value=pValue;
		}
		this.OnHiddenbox();
	}
	//-- ### --
	document.getElementById(this.sName).value=
		this.sA_Name+this.sSPLIT_0+this.sA_Value+this.sSPLIT_1+
		this.sB_Name+this.sSPLIT_0+this.sB_Value+this.sSPLIT_1+
		this.sC_Name+this.sSPLIT_0+this.sC_Value+this.sSPLIT_1+
		this.sD_Name+this.sSPLIT_0+this.sD_Value+this.sSPLIT_1+
		this.sE_Name+this.sSPLIT_0+this.sE_Value+this.sSPLIT_1+
		this.sF_Name+this.sSPLIT_0+this.sF_Value+this.sSPLIT_1+
		this.sG_Name+this.sSPLIT_0+this.sG_Value+this.sSPLIT_1;
	this.setSample();
	return 0;
}
TStyle.prototype.OnSet=function(pValue){
	//-- ### --
	tmpINT=this.FormatValue(pValue);
	//-- ### --
	tmpSTR=this.sA_Value;
	if(tmpSTR==""){
		tmpSTR="字体";
	}
	document.getElementById(this.sName+"_A_Text").innerHTML=tmpSTR;
	tmpSTR=this.sB_Value;
	if(tmpSTR==""){
		tmpSTR="文字大小";
	}
	document.getElementById(this.sName+"_B_Text").innerHTML=tmpSTR;
	if(this.sC_Value=="700"){
		document.getElementById(this.sName+"_C_Text").childNodes[0].src=this.sC_ImgPath+"b_C_L.jpg";
	}else{
		document.getElementById(this.sName+"_C_Text").childNodes[0].src=this.sC_ImgPath+"b_C.jpg";
	}
	if(this.sD_Value=="italic"){
		document.getElementById(this.sName+"_D_Text").childNodes[0].src=this.sC_ImgPath+"b_D_L.jpg";
	}else{
		document.getElementById(this.sName+"_D_Text").childNodes[0].src=this.sC_ImgPath+"b_D.jpg";
	}
	if(this.sE_Value=="underline"){
		document.getElementById(this.sName+"_E_Text").childNodes[0].src=this.sC_ImgPath+"b_E_L.jpg";
	}else{
		document.getElementById(this.sName+"_E_Text").childNodes[0].src=this.sC_ImgPath+"b_E.jpg";
	}
	
	//-- ### --
	document.getElementById(this.sName).value=
		this.sA_Name+this.sSPLIT_0+this.sA_Value+this.sSPLIT_1+
		this.sB_Name+this.sSPLIT_0+this.sB_Value+this.sSPLIT_1+
		this.sC_Name+this.sSPLIT_0+this.sC_Value+this.sSPLIT_1+
		this.sD_Name+this.sSPLIT_0+this.sD_Value+this.sSPLIT_1+
		this.sE_Name+this.sSPLIT_0+this.sE_Value+this.sSPLIT_1+
		this.sF_Name+this.sSPLIT_0+this.sF_Value+this.sSPLIT_1+
		this.sG_Name+this.sSPLIT_0+this.sG_Value+this.sSPLIT_1;
	this.setSample();
	return 0;
}
TStyle.prototype.OnClear=function(){
	//-- ### --
	this.sA_Value="";
	this.sB_Value="";
	this.sC_Value="";
	this.sD_Value="";
	this.sE_Value="";
	this.sF_Value="";
	this.sG_Value="";
	//-- ### --
	document.getElementById(this.sName+"_A_Box").className=tmpCommon.sysHidden;
	document.getElementById(this.sName+"_B_Box").className=tmpCommon.sysHidden;
	document.getElementById(this.sName+"_F_Box").className=tmpCommon.sysHidden;
	document.getElementById(this.sName+"_G_Box").className=tmpCommon.sysHidden;
	document.getElementById(this.sName+"_A_Text").innerHTML="字体";;
	document.getElementById(this.sName+"_B_Text").innerHTML="文字大小";
	document.getElementById(this.sName+"_C_Text").childNodes[0].src=this.sC_ImgPath+"b_C.jpg";
	document.getElementById(this.sName+"_D_Text").childNodes[0].src=this.sC_ImgPath+"b_D.jpg";
	document.getElementById(this.sName+"_E_Text").childNodes[0].src=this.sC_ImgPath+"b_E.jpg";
	document.getElementById(this.sName+"_F_Text").childNodes[0].src=this.sC_ImgPath+"b_F.jpg";
	document.getElementById(this.sName+"_G_Text").childNodes[0].src=this.sC_ImgPath+"b_G.jpg";
	
	tmpFrames.showBlack_ById(this.sName+"_BgHidden","TStyle_Hidden",1);
	tmpFrames.hiddenAllSelect(1);

	//-- ### --
	document.getElementById(this.sName).value=
		this.sA_Name+this.sSPLIT_0+this.sA_Value+this.sSPLIT_1+
		this.sB_Name+this.sSPLIT_0+this.sB_Value+this.sSPLIT_1+
		this.sC_Name+this.sSPLIT_0+this.sC_Value+this.sSPLIT_1+
		this.sD_Name+this.sSPLIT_0+this.sD_Value+this.sSPLIT_1+
		this.sE_Name+this.sSPLIT_0+this.sE_Value+this.sSPLIT_1+
		this.sF_Name+this.sSPLIT_0+this.sF_Value+this.sSPLIT_1+
		this.sG_Name+this.sSPLIT_0+this.sG_Value+this.sSPLIT_1;
	this.setSample();
	return 0;
}
TStyle.prototype.setSample=function(){
	document.getElementById(this.sName+"_Sample").style.fontFamily=this.sA_Value;
	document.getElementById(this.sName+"_Sample").style.fontSize=this.sB_Value;
	document.getElementById(this.sName+"_Sample").style.fontWeight=this.sC_Value;
	document.getElementById(this.sName+"_Sample").style.fontStyle=this.sD_Value;
	if(this.sE_Value=="underline"){
		document.getElementById(this.sName+"_Sample").className="Link4 FBlack2";
	}
	document.getElementById(this.sName+"_Sample").style.color=this.sF_Value;
	document.getElementById(this.sName+"_Sample").style.backgroundColor=this.sG_Value;
	
	return 0;
}
TStyle.prototype.FormatValue=function(pValue){
	tmpAR0=pValue.split(this.sSPLIT_1);
	if(tmpAR0.length==8){
	}else{
		tmpAR0=new Array(
			this.sA_Name+this.sSPLIT_0+this.sA_Value,
			this.sB_Name+this.sSPLIT_0+this.sB_Value,
			this.sC_Name+this.sSPLIT_0+this.sC_Value,
			this.sD_Name+this.sSPLIT_0+this.sD_Value,
			this.sE_Name+this.sSPLIT_0+this.sE_Value,
			this.sF_Name+this.sSPLIT_0+this.sF_Value,
			this.sG_Name+this.sSPLIT_0+this.sG_Value,
			""
			);
	}
	tmpAR1=tmpAR0[0].split(this.sSPLIT_0);
	if(tmpAR1.length==2){
		this.sA_Value=tmpAR1[1];
	}
	tmpAR1=tmpAR0[1].split(this.sSPLIT_0);
	if(tmpAR1.length==2){
		this.sB_Value=tmpAR1[1];
	}
	tmpAR1=tmpAR0[2].split(this.sSPLIT_0);
	if(tmpAR1.length==2){
		this.sC_Value=tmpAR1[1];
	}
	tmpAR1=tmpAR0[3].split(this.sSPLIT_0);
	if(tmpAR1.length==2){
		this.sD_Value=tmpAR1[1];
	}
	tmpAR1=tmpAR0[4].split(this.sSPLIT_0);
	if(tmpAR1.length==2){
		this.sE_Value=tmpAR1[1];
	}
	tmpAR1=tmpAR0[5].split(this.sSPLIT_0);
	if(tmpAR1.length==2){
		this.sF_Value=tmpAR1[1];
	}
	tmpAR1=tmpAR0[6].split(this.sSPLIT_0);
	if(tmpAR1.length==2){
		this.sG_Value=tmpAR1[1];
	}
	
	return 0;
}


//-- ------ #Instanct ------ --
var tmpTStyle=new TStyle();



/*
-- ------ Source ------ --
*/
function Source(){}
//-- ------ #Parameters ------ --
Source.prototype.sName="tmpSource";
Source.prototype.sTabCount=2;
Source.prototype.sImglistTemplate="";
Source.prototype.sImgCorePath="";
Source.prototype.sImgRelativePath="../../../";
Source.prototype.sImgCustomPath="";

//-- ------ #Methods ------ --
Source.prototype.OnTabSlide=function(pIndex){
	var Coun0=0;
	while(this.sTabCount>Coun0){
		document.getElementById(this.sName+"_Button_"+Coun0).className="Source_7";
		document.getElementById(this.sName+"_Box_"+Coun0).className=tmpCommon.sysHidden;
		
		Coun0++;
	}
	
	document.getElementById(this.sName+"_Button_"+pIndex).className="Source_6";
	if(pIndex==0){
		document.getElementById(this.sName+"_Box_"+pIndex).className="Source_2";
	}else if(pIndex==1){
		document.getElementById(this.sName+"_Box_"+pIndex).className="Source_1";
	}
	return 0;
}
Source.prototype.OnTextChange=function(){
	var tmpListbox=document.getElementById(this.sName+"_ImgList");
	var tmpAR0=document.getElementById(this.sName).value.split(tmpCommon.sysSPLIT4);
	//-- #CLEAR --
	while(tmpListbox.rows.length>0){
		tmpListbox.deleteRow(0);
	}
	//-- #ADD --
	var Coun0=0;
	var CounImg=0;
	var CounRow=0;
	var CounCell=0;
	while(tmpAR0.length>Coun0){
		var tmpAR1=tmpAR0[Coun0].split(tmpCommon.sysSPLIT5);
		if(tmpAR1[0]!=""){
			tmpSRC=tmpAR1[0].replace(this.sImgCorePath,this.sImgCustomPath);
			tmpSRC=tmpAR1[0].replace(this.sImgRelativePath,this.sImgCustomPath);
			tmpSTR=this.sImglistTemplate.replace(/\{Nets.Index}/g,CounImg);
			tmpSTR=tmpSTR.replace(/\{Nets.Src}/g,tmpSRC);
			
			tmpExtendnameAR=tmpSRC.split(".");
			tmpExtendname=tmpExtendnameAR[tmpExtendnameAR.length-1].toUpperCase();
			Coun1=0;
			while(tmpCommon.sysFileicons.length>Coun1){
				if(tmpCommon.sysFileicons[Coun1][0]==tmpExtendname && tmpCommon.sysFileicons[Coun1][1]==""){
					tmpSTR=tmpSTR.replace(/\{Nets.ImgSrc}/g,tmpSRC);
				}else if(tmpCommon.sysFileicons[Coun1][0]==tmpExtendname && tmpCommon.sysFileicons[Coun1][1]!=""){
					tmpSTR=tmpSTR.replace(/\{Nets.ImgSrc}/g,this.sImgCorePath+tmpCommon.sysFileicons[Coun1][1]);
				}
				Coun1++;
			}
			if(CounImg%4==0){
				tmpListbox.insertRow(CounRow);
				CounCell=0;
			}
			tmpListbox.rows[CounRow].insertCell(CounCell);
			tmpListbox.rows[CounRow].cells[CounCell].innerHTML=tmpSTR;
			
			CounImg++;
			if(CounImg%4==0){
				CounRow++;
			}
			CounCell++;
		}
		Coun0++;
	}
	
	return 0;
}
Source.prototype.OnImgDelete=function(pIndex){
	
	//-- #SPELL --
	var tmpCONTENT="";
	var tmpAR0=document.getElementById(this.sName).value.split(tmpCommon.sysSPLIT4);
	var Coun0=0;
	var CounImg=0;
	while(tmpAR0.length>Coun0){
		var tmpAR1=tmpAR0[Coun0].split(tmpCommon.sysSPLIT5);
		if(tmpAR1[0]!=""){
			if(CounImg!=pIndex){
				if(CounImg>0){
					tmpCONTENT+=tmpCommon.sysSPLIT4;
				}
				tmpCONTENT+=tmpAR1[0];
				if(tmpAR1.length==2){
					tmpCONTENT+=tmpCommon.sysSPLIT5+tmpAR1[1];
				}
			}
			CounImg++;
		}
		Coun0++;
	}
	
	document.getElementById(this.sName).value=tmpCONTENT;
	this.OnTextChange();
	return 0;
}

//-- ------ #Instanct ------ --
var tmpSource=new Source();

/*
-- ------ SourceX ------ --
*/
function SourceX(){}
//-- ------ #Parameters ------ --
SourceX.prototype.sName="tmpSourceX";
SourceX.prototype.sTabCount=7;
SourceX.prototype.sTabIndex=-1;
SourceX.prototype.sTabLink=new Array();

//-- #Manage --
SourceX.prototype.sListtype=0;
SourceX.prototype.sManage_TabCount=7;
SourceX.prototype.sManage_TabIndex=-1;

//-- ------ #Methods ------ --
//-- #Tab --
SourceX.prototype.OnTabChange=function(pIndex){
	//-- ### --
	if(this.sTabIndex==pIndex){
		return 1;
	}
	//-- ### --
	var Coun0=0;
	while(this.sTabCount>Coun0){
		document.getElementById(this.sName+"_Tab_"+Coun0).className="SourceX_Tab_3";
		Coun0++;
	}
	
	document.getElementById(this.sName+"_Tab_"+pIndex).className="SourceX_Tab_2";
	document.getElementById(this.sName+"_Frame").src=this.sTabLink[pIndex]+"&CODE="+Math.random();
	this.sTabIndex=pIndex;
	return 0;
}
//-- #Single_Show --
SourceX.prototype.OnLoadTo_SingleShow_Read=function(){
	document.getElementById(this.sName+"_Img").src=parent.document.getElementById(this.sName).value;
	
	return 0;
}
//-- #Single_Edit --
SourceX.prototype.OnLoadTo_SingleEdit_Read=function(){
	document.getElementById(this.sName+"_EditTxt").value=parent.document.getElementById(this.sName).value;

	return 0;
}
SourceX.prototype.OnLoadTo_SingleEdit_Write=function(){
	parent.document.getElementById(this.sName).value=document.getElementById(this.sName+"_EditTxt").value;
	
	return 0;
}
//-- #Single_Normal --

//-- #Manage --
SourceX.prototype.OnLoadTo_Manage_TabChange=function(pFlag){
	//-- ### --
	if(this.sManage_TabIndex==pIndex){
		return 1;
	}
	//-- ### --
	var Coun0=0;
	while(this.sManage_TabCount>Coun0){
		document.getElementById(this.sName+"_ManageTab_"+Coun0).className="SourceX_Bar_3";
		document.getElementById(this.sName+"_ManageBox_"+Coun0).className=tmpCommon.sysHidden;
		Coun0++;
	}
	
	document.getElementById(this.sName+"_ManageTab_"+pIndex).className="SourceX_Bar_2";
	document.getElementById(this.sName+"_ManageBox_"+pIndex).className="SourceX_Bar_30";
	this.sManage_TabIndex=pIndex;
	return 0;
}
SourceX.prototype.OnLoadTo_Manage_Listtype=function(pFlag){
	if(pFlag=="Text"){
		document.getElementById(this.sName+"_ListImg_Button").className="SourceX_Bar_5";
		document.getElementById(this.sName+"_ListImg").className=tmpCommon.sysHidden;
		document.getElementById(this.sName+"_ListText_Button").className="SourceX_Bar_4";
		document.getElementById(this.sName+"_ListText").className="SourceX_Cell_1";
		this.sListtype=1;
	}else if(pFlag=="Img"){
		document.getElementById(this.sName+"_ListImg_Button").className="SourceX_Bar_4";
		document.getElementById(this.sName+"_ListImg").className="SourceX_Cell_1";
		document.getElementById(this.sName+"_ListText_Button").className="SourceX_Bar_5";
		document.getElementById(this.sName+"_ListText").className=tmpCommon.sysHidden;
		this.sListtype=0;
	}

	return 0;
}
SourceX.prototype.OnLoadTo_Manage_CellSelectImg=function(pElement){
	var tmpElement=pElement.parentNode.parentNode.parentNode.childNodes[0];
	if(tmpElement.value==0){
		tmpElement.value=1;
		pElement.parentNode.parentNode.className="SourceX_Cell_2_Blue";
		pElement.parentNode.parentNode.childNodes[1].className="SourceX_Cell_4_Blue";
	}else{
		tmpElement.value=0;
		pElement.parentNode.parentNode.className="SourceX_Cell_2";
		pElement.parentNode.parentNode.childNodes[1].className="SourceX_Cell_4";
	}
	
	return 0;
}
SourceX.prototype.OnLoadTo_Manage_CellSelectText=function(pElement){
	var tmpElement=pElement.parentNode.parentNode.childNodes[0].childNodes[0];
	if(tmpElement.value==0){
		tmpElement.value=1;
		pElement.parentNode.parentNode.className="SourceX_Cell_Selected";
	}else{
		tmpElement.value=0;
		pElement.parentNode.parentNode.className="SourceX_Cell_Normal";
	}
	
	
	return 0;
}



