<!--
function JFcpsh(Icpsh,Fcpsh,Tcpsh,Ncpsh,Ocpsh,Scpsh,Vcpsh,Lcpsh){ 
if (Fcpsh==0){
	JAYCD[Icpsh] = new Array();
	JAYCD[Icpsh][0] = Tcpsh;
	JAYCD[Icpsh][1] = new Array();
	JAYCD[Icpsh][1] = SplitDemo(Scpsh,"||");
	JAYCD[Icpsh][2] = new Array();
	JAYCD[Icpsh][2] = SplitDemo(Scpsh,"||");
	JAYCD[Icpsh][3] = JFYCD(Icpsh,Lcpsh,1);
	JAYCD[Icpsh][4] = Ncpsh;
	JAYCD[Icpsh][5] = Lcpsh;
	}

if (Fcpsh==1){
	JAYCD[Icpsh] = new Array();
	JAYCD[Icpsh][0] = Tcpsh;
	JAYCD[Icpsh][1] = new Array();
	JAYCD[Icpsh][1] = SplitDemo(Scpsh,"||");
	JAYCD[Icpsh][2] = new Array();
	JAYCD[Icpsh][2] = SplitDemo(Vcpsh,"||");
	JAYCD[Icpsh][3] = JFYCD(Icpsh,Lcpsh,2);
	JAYCD[Icpsh][4] = Ncpsh;
	JAYCD[Icpsh][5] = Lcpsh;
	}

if (Fcpsh==2){
	JAYCD[Icpsh] = new Array();
	JAYCD[Icpsh][0] = Tcpsh;
	JAYCD[Icpsh][1] = new Array();
	JAYCD[Icpsh][1] = SplitDemo(Scpsh,"||");
	JAYCD[Icpsh][2] = new Array();
	JAYCD[Icpsh][2] = SplitDemo(Scpsh,"||");
	JAYCD[Icpsh][3] = JFYCD2(Icpsh,parseInt(Lcpsh));
	JAYCD[Icpsh][4] = Ncpsh;
	JAYCD[Icpsh][5] = Lcpsh;
	}

}

function JFYCD(NYCD,FNL,FYCD){
var FML=0;
var FHD="";
for(var k=0;k<JAYCD[NYCD][1].length;k++){
	if (FML==0){FHD = FHD + '<tr bgcolor="#FFFFFF">';}
	FHD = FHD + '<td height="20" align="center"><a style="cursor:hand" onclick="JFSF(\'' + JAYCD[NYCD][FYCD][k] + '\',\''+ JAYCD[NYCD][1][k] + '\',\'' + NYCD + '\')">' + JAYCD[NYCD][1][k] + '</a></td>';
	FML=FML+1;
	if (FML == FNL){FHD = FHD + '</tr>';FML=0;}
}
if ( FML > 0 ){FHD = FHD + '<td height="20" colspan="' + (FNL- FML)+ '">&nbsp;</td></tr>';}
return FHD;
}

function JFYCD2(NYCD,FNL){
var FML=0;
var FHD2="";
for(var k=0;k<JAYCD[NYCD][1].length/2;k++){
	if (FML==0){FHD2 = FHD2 + '<tr bgcolor="#FFFFFF">';}
	FHD2 = FHD2 + '<td height="20" align="center"><a style="cursor:hand" onclick="JFSS(\'' + k + '\',\'' + NYCD + '\')">' + JAYCD[NYCD][1][2*k] + '</a></td>';
	FML=FML+1;
	if (FML == FNL){FHD2 = FHD2 + '</tr>';FML=0;}
}
if ( FML > 0 ){FHD2 = FHD2 + '<td height="20" colspan="' + (FNL- FML)+ '">&nbsp;</td></tr>';}
return FHD2;
}

function JFSS(NYCD2,NYCD){
var FNL=parseInt(JAYCD[NYCD][5]);
 YCDNN=JAYCD[NYCD][5].indexOf("|");
 if ( YCDNN > 0 ) { FNLS=JAYCD[NYCD][5].substr(YCDNN+1,1) }
 else
 { FNLS=" " } 
var FML=0;
var FHDS='';
FHDS = FHDS + '<table width="630" border="0" cellspacing="0" cellpadding="0" bgcolor="#10C119">';
FHDS = FHDS + '<tr><td align="left" valign="middle" width="580" height="27"> &nbsp; &nbsp; &nbsp; <span style="color:#FFFFFF">请选择'+JAYCD[NYCD][0]+'</span></td><td align="left" valign="middle" width="50" height="20"><span><a onclick="javascript:hiddenLayer(YCD'+NYCD+')" style="color:#FFFFFF;cursor:hand;">[关闭]</a></span></td></tr>';
FHDS = FHDS + '<tr><td colspan="2" width="630" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="0" class="word">';
FHDS = FHDS + JAYCD[NYCD][3] + '</table></td></tr></table>';

FHDS = FHDS + '<table width="630" border="0" cellspacing="0" cellpadding="0" bgcolor="#10C119">';
FHDS = FHDS + '<tr><td align="left" valign="middle" width="580" height="27"> &nbsp; &nbsp; &nbsp; <span style="color:#FFFFFF">请继续选择'+JAYCD[NYCD][0]+'</span></td><td align="left" valign="middle" width="50" height="20"><span><a onclick="javascript:hiddenLayer(YCD'+NYCD+')" style="color:#FFFFFF;cursor:hand;">[关闭]</a></span></td></tr>';
FHDS = FHDS + '<tr><td colspan="2" width="630" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="0" class="word">';

var TJAYCD=new Array();
TJAYCD=SplitDemo(JAYCD[NYCD][1][2*NYCD2+1],"|");
for(var k=0;k<TJAYCD.length;k++){
	if (FML==0){FHDS = FHDS + '<tr bgcolor="#FFFFFF">';}
	FHDS = FHDS + '<td height="20" align="center"><a style="cursor:hand" onclick="JFSF(\'' + JAYCD[NYCD][1][2*NYCD2] + FNLS + TJAYCD[k] + '\',\''+ TJAYCD[k] + '\',\'' + NYCD + '\')">' + TJAYCD[k] + '</a></td>';
	FML=FML+1;
	if (FML == FNL){FHDS = FHDS + '</tr>';FML=0;}
}
if ( FML > 0 ){FHDS = FHDS + '<td height="20" colspan="' + (FNL- FML)+ '">&nbsp;</td></tr>';}

var dv = document.getElementById('YCD'+NYCD);
dv.innerHTML = FHDS + '</table></td></tr><tr><td colspan="2" height="4"></td></tr></table>';
DivSetVisible(dv);
}

function JFSF(NYCDV,NYCDS,NYCD){
	document.all(JAYCD[NYCD][4]).value = NYCDV;
	document.all(JAYCD[NYCD][4]+"A").value = NYCDS;
	document.all(JAYCD[NYCD][4]+"B").value = NYCDS;
	hiddenLayer("YCD"+NYCD);
}

function SplitDemo(s,sf){ 
	var ss;
	ss = s.split(sf);
	return(ss);}

function buildDiv(NYCD){
	var htmlDiv = '';
    	htmlDiv = '<div id="YCD'+NYCD+'" width="630" style="position:absolute;left:10px;top:-100px;visibility:hidden;z-index:100;filter:progid:DXImageTransform.Microsoft.DropShadow(Color=#94AD9B,OffX=5,OffY=3);">';
    	htmlDiv = htmlDiv + '<table width="630" border="0" cellspacing="0" cellpadding="0" bgcolor="#10C119">';
    	htmlDiv = htmlDiv + '<tr><td align="left" valign="middle" width="580" height="27"> &nbsp; &nbsp; &nbsp; <span style="color:#FFFFFF">请选择'+JAYCD[NYCD][0]+'</span></td><td align="left" valign="middle" width="50" height="20"><span><a onclick="javascript:hiddenLayer(YCD'+NYCD+')" style="color:#FFFFFF;cursor:hand;">[关闭]</a></span></td></tr>';
		htmlDiv = htmlDiv + '<tr><td colspan="2" width="630" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="0" class="word">';
    	
    	htmlDiv = htmlDiv + JAYCD[NYCD][3]
    	
    	
    	
    	htmlDiv = htmlDiv + '</table></td></tr><tr><td colspan="2" height="4"></td></tr></table>';
    	
    	htmlDiv = htmlDiv + '</div>';

    	document.write(htmlDiv);
}



function displayLayer(obj,layerID){
	hiddenLayer('YCD0','YCD1','YCD2','YCD3','YCD4','YCD5','YCD6');
	var dv = document.getElementById("YCD"+layerID);
	GetCenterXY_ForLayer(dv);
	DivSetVisible(dv);
}

function hiddenLayer(){
	var argArr = hiddenLayer.arguments;
	
	showElementAll();
	for(var i=0;i<argArr.length;i++){
		eval(argArr[i]).style.visibility = "hidden";
	}
}

//将悬浮层的位置定位在屏幕中央
function GetCenterXY_ForLayer(objdiv){
	x = document.body.scrollLeft;
	y = document.body.scrollTop;
	
	//获取屏幕宽度
	availWidth = parseInt(window.screen.availWidth);
	availHeight = parseInt(window.screen.availHeight);
	
	tblWidth = parseInt(objdiv.width);
	
		
	y = y + availHeight/8;
	x = (availWidth - tblWidth)/2;
	
	objdiv.style.top = y;
	objdiv.style.left = x;
}


function DivSetVisible(objDiv){
	hideElementAll();
	objDiv.style.visibility = "visible";
}


function HideElement(strElementTagName){
	try{
		for(i=0;i<window.document.all.tags(strElementTagName).length; i++){
			var objTemp = window.document.all.tags(strElementTagName)[i];
			objTemp.style.visibility = "hidden";
		}
	}catch(e){
		alert(e.message);
	}
}

function ShowElement(strElementTagName){
	try{
		for(i=0;i<window.document.all.tags(strElementTagName).length; i++){
			var objTemp = window.document.all.tags(strElementTagName)[i];
			objTemp.style.visibility = "visible";
		}
	}catch(e){
		alert(e.message);
	}
}

function hideElementAll(){
	HideElement("SELECT");
	HideElement("OBJECT");
	HideElement("IFRAME");
}

function showElementAll(){
	ShowElement("SELECT");
	ShowElement("OBJECT");
	ShowElement("IFRAME");
}
-->