function writePosition(text1,text2) {	
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' class='positionTable'><tr><td class='position'>");

	url_1="#";
	url_2="#"
	switch (text1){
		case "关于中电电气":
			var url_1="/Html/Ceeg/about.asp";
			break;
		case "产品介绍":
			var url_1="/Product/Productlist.asp?Commend=1";
			break;
		case "会员中心":
			var url_1="/Service/MemberCenter.asp";
			break;
		case "人才招聘":
			var url_1="/Career/Policy.asp";
			break;
		case "服务&方案":
			var url_1="/Html/Service/Acceptance.asp";
			break;
		case "支持&下载":
			var url_1="/Support/Data.asp";
			break;
		case "市场活动":
			var url_1="/html/Service/market.asp";
			break;
		default:
			//return;
	}

	switch (text2){
		case "新闻中心":
			var url_2="/Ceeg/about.asp";
			selectMenu("orderNews");
			break;
		case "产品介绍":
			var url_1="/Product/Productlist.asp?Commend=1";
			break;
		default:
			//return;
	}
	if (text2=="") {
		document.write("<a href='/index.asp'>网站首页</a> > <a href='"+url_1+"'>"+text1+ "</a>")
	}
	else {
		document.write("<a href='/index.asp'>网站首页</a> > <a href='"+url_1+"'>"+text1+ "</a> > "+text2)
	}
	
	document.write("</td></tr></table>")
	//document.title="欢迎光临中电电气集团网站"
	
}
function writeNavigator(description) {
document.write("<div class='toolBar'>");
	if (description=="back") {
		document.write("<a href='javascript:history.back()'>[ 返回 ]</a>");
	}
	else if (description=="top") {
		document.write("<a href='#'>[ 顶部 ]</a>");
	}
	else if (description=="backAndTop") {
		document.write("<a href='#'>[ 顶部 ]</a><a href='javascript:history.back()'>[ 返回 ]</a>");
	}
	else if (description=="backAndTop") {
		document.write("<a href='#'>[ 顶部 ]</a><a href='javascript:history.back()'>[ 返回 ]</a>");
	}
	else if (description=="closeAndTop") {
		document.write("<a href='#'>[ 顶部 ]</a><a href='javascript:self.close()'><img src='../images/btn_close.gif' width='50' height='11' border='0'></a>");
	}
document.write("</div>");	
}
function selectMenu(ID) {
	document.all(ID).style.display="";
	if (ID=="subCompany") {
		document.all("subCompany_title").className="menuContent_select";
	}
}


function fun_news_table(obj) {
	obj.border=0;
	obj.cellSpacing=2;
	obj.cellPadding=5;
	obj.align="center";
}

function table_style(obj) {
	obj.border=0;
	obj.cellSpacing=1;
	obj.cellPadding=2;
	obj.align="center";
}

function table_news(obj) {
	obj.border=0;
	obj.cellSpacing=1;
	obj.cellPadding=3;
	obj.align="center";
}
function fun_tableBorder(obj) {
	obj.border=0;
	obj.cellSpacing=4;
	obj.cellPadding=3;
	obj.align="center";
}

function fun_frame1_border(obj) {
	obj.border=0;
	obj.cellSpacing=1;
	obj.cellPadding=5;
	obj.align="center";
}


function fun_club_tableBorder(obj) {
	obj.border=0;
	obj.cellSpacing=1;
	obj.cellPadding=0;
	obj.align="center";
}

function fun_toolBar_table(obj) {
	obj.border=0;
	obj.cellSpacing=0;
	obj.cellPadding=0;
	obj.align="center";
}

function fun_ad_border(obj) {
	obj.border=0;
	obj.cellSpacing=1;
	obj.cellPadding=0;
	obj.align="center";
}

function fun_wordList_table(obj) {
	obj.border=0;
	obj.cellSpacing=5;
	obj.cellPadding=0;
	obj.align="center";
}
function fun_item_border(obj) {
	obj.border=0;
	obj.cellSpacing=0;
	obj.cellPadding=0;
	obj.align="center";
}
function fun_treeList_table(obj) {
	obj.border=0;
	obj.cellSpacing=0;
	obj.cellPadding=0;
	obj.align="";
}

function fun_product_table(obj) {
	obj.border=0;
	obj.cellSpacing=5;
	obj.cellPadding=0;
	obj.align="center";
}

function fun_table(obj) {
	obj.border=0;
	obj.cellSpacing=0;
	obj.cellPadding=0;
	obj.align="center";
}


function controlDisplay(obj) {
	var thisObj=document.all(obj)
	if (thisObj.style.display=="") {
		thisObj.style.display="none";
	}
	else {
		thisObj.style.display="";
	}
}

function openWin(strUrl,winName,width,height) {	
	x=(screen.availWidth-width)/2
	y=(screen.availHeight-height)/2
	window.open(strUrl,winName,"width="+width+",height="+height+",left="+x+",top="+y+",scrollbars=yes")	
}

function justOpenWin(strUrl) {	
	window.open(strUrl,'',"")	
}
function subCompanyList() {
	document.write ("<select name='select' onchange='location.href=this.value'>");
	document.write ("<option selected='selected'>--请选择集团下属公司--</option>");
	document.write ("<option value='/html/SubCompany/company8.asp' >&nbsp;&nbsp;中电电气南京光伏有限公司</option>");	
	document.write ("<option value='/html/SubCompany/company1.asp' >&nbsp;&nbsp;江苏华东微波仪器有限公司</option>");
	document.write ("<option value='/html/SubCompany/company2.asp' >&nbsp;&nbsp;江苏输配电设备有限公司</option>");
	document.write ("<option value='/html/SubCompany/company3.asp' >&nbsp;&nbsp;江苏中电变压器制造有限公司</option>");
	document.write ("<option value='/html/SubCompany/company5.asp' >&nbsp;&nbsp;中电电气沈阳研发中心</option>");
	document.write ("<option value='/html/SubCompany/company6.asp' >&nbsp;&nbsp;上海邦电设备制造有限公司</option>");
	document.write ("<option value='/html/SubCompany/company7.asp' >&nbsp;&nbsp;中电电气绝缘新材料有限公司</option>");
	document.write ("<option value='/html/SubCompany/company9.asp' >&nbsp;&nbsp;南京中电国际贸易有限公司</option>");
	document.write ("<option value='/html/SubCompany/company10.asp' >&nbsp;&nbsp;中电电气南京特种变压器有限公司</option>");
	document.write ("</select>");            
}
