var url = window.location.href;
	if(url.indexOf("westsecu")>0){
		url = "http://www.west95582.com/jdw/index.html?classid=000200020001";
		window.location.href = url;
	}

var defaul_num = -1; //默认显示的div
var top_list = 0;    //top三级栏目的个数
//动态加载js
function CreateScript(url){
    var new_element;
    new_element=document.createElement("script");
    new_element.setAttribute("type","text/javascript");
    new_element.setAttribute("src",url);
    document.body.appendChild(new_element);
}
//上面两个参数是为头部使用的，在头部加载完之后要赋值
//给火狐添加事件
	(function (bool) {
		//兼容FF一些方法
			var html;
			
			if (bool) {
			
				html = window.HTMLElement.prototype;
				
				window.__defineGetter__("event", function () {
				//兼容Event对象
					var o = arguments.callee;
					
					do {
					
						if (o.arguments[0] instanceof Event) return o.arguments[0];
					
					} while (o = o.caller);
					
					return null;
				
				});
				
				Event.prototype.__defineGetter__("fromElement", function () {
					return this.relatedTarget;
				});
				
				html.contains = function (o) {
					do {
						if (o == this) return true;
					} while (o = o.parentNode);
					return false;
				};
				
			}
		 
		})(/Firefox/.test(window.navigator.userAgent));


var paramter = "classid=" + rewinjson.tool.CheckParam(request.QueryString('classid'),'');

var currentstr = window.location.href+""+"&f="+Math.random();  //类型转换
try{
	currentstr = currentstr.substring(currentstr.search("\\\?")+1,currentstr.length);
}catch(e){
	currentstr = "";
}
/*****
**下面是获取页面的头部  4种情况 
   1  普通页面两行
   2  普通页面一行
   3  详细页两行
   4  详细页一行
**
****/
//调用2行类型公共TOP
if(document.getElementById("rewinjson_top")){
	new rewinjson.rewinAjax("/jdw/public/top_1.jsp",
					new rewinjson.tool.parameter('style',currentstr,'',''),
					function (repText,divID){
						if(repText != null && repText.length > 0){
							repText = repText.trim();//去掉二头空格
							repText = repText.replaceAll("\r\n","");
							divID.innerHTML = repText;
							if(document.getElementById("top_cs")){
								eval(document.getElementById("top_cs").innerHTML);
							}
							
						}
						rewinjson.client.getlocation();
						if(request.QueryString("classid")=="0002000200020011"){
							window.location.href="#1";
						}
					},
					"GET",
					"rewinjson_top"
					);
}
//调用1行类型的头部
if(document.getElementById("rewinjson_2_top")){
	new rewinjson.rewinAjax("/jdw/public/top_2.jsp",
					new rewinjson.tool.parameter('style',currentstr,'',''),
					function (repText,divID){
						if(repText != null && repText.length > 0){
							repText = repText.trim();//去掉二头空格
							repText = repText.replaceAll("\r\n","");
							divID.innerHTML = repText;
							if(document.getElementById("top_cs")){
								eval(document.getElementById("top_cs").innerHTML);
							}
							
						}
						rewinjson.client.getlocation();
					},
					"GET",
					"rewinjson_2_top"
					);
}
if(document.getElementById("rewinjson_3_top")){
	new rewinjson.rewinAjax("/jdw/public/top_3.jsp",
					new rewinjson.tool.parameter('style',currentstr,'',''),
					function (repText,divID){
						if(repText != null && repText.length > 0){
							repText = repText.trim();//去掉二头空格
							repText = repText.replaceAll("\r\n","");
							divID.innerHTML = repText;
							if(document.getElementById("top_cs")){
								eval(document.getElementById("top_cs").innerHTML);
							}
							
						}
						rewinjson.client.getlocation();
					},
					"GET",
					"rewinjson_3_top"
					);
}
//投资者教育栏目头部
if(document.getElementById("rewinjson_tzzjy_top")){
	new rewinjson.rewinAjax("/jdw/public/top_tzzjy.jsp",
					new rewinjson.tool.parameter('style',currentstr,'',''),
					function (repText,divID){
						if(repText != null && repText.length > 0){
							repText = repText.trim();//去掉二头空格
							repText = repText.replaceAll("\r\n","");
							divID.innerHTML = repText;
							if(document.getElementById("top_cs")){
								eval(document.getElementById("top_cs").innerHTML);
							}
							
						}
						rewinjson.client.getlocation();
					},
					"GET",
					"rewinjson_tzzjy_top"
					);
}
var tempclassid = request.QueryString('classid');
//详细页两行
if(document.getElementById("rewinjson_top_detail")){
	if(tempclassid && tempclassid.indexOf("000200020011")==0){
		new rewinjson.rewinAjax("/jdw/public/top_tzzjy.jsp",
						new rewinjson.tool.parameter('style',currentstr,'',''),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
								if(document.getElementById("top_cs")){
									eval(document.getElementById("top_cs").innerHTML);
								}
								
							}
							rewinjson.client.getlocation();
						},
						"GET",
						"rewinjson_top_detail"
						);
	}else{
		new rewinjson.rewinAjax("/jdw/public/top_1_detail.jsp",
						new rewinjson.tool.parameter('style',currentstr,'',''),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
								if(document.getElementById("top_cs")){
									eval(document.getElementById("top_cs").innerHTML);
								}
								
							}
							rewinjson.client.getlocation();
						},
						"GET",
						"rewinjson_top_detail"
						);
	}
}

//详细页一行
if(document.getElementById("rewinjson_top_2_detail")){
	if(tempclassid && tempclassid.indexOf("000200020011")==0){
		
		new rewinjson.rewinAjax("/jdw/public/top_tzzjy.jsp",
						new rewinjson.tool.parameter('style',currentstr,'',''),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
								if(document.getElementById("top_cs")){
									eval(document.getElementById("top_cs").innerHTML);
								}
								
							}
							rewinjson.client.getlocation();
						},
						"GET",
						"rewinjson_top_2_detail"
						);
	}else{
		new rewinjson.rewinAjax("/jdw/public/top_2_detail.jsp",
					new rewinjson.tool.parameter('style',currentstr,'',''),
					function (repText,divID){
						if(repText != null && repText.length > 0){
							repText = repText.trim();//去掉二头空格
							repText = repText.replaceAll("\r\n","");
							divID.innerHTML = repText;
							if(document.getElementById("top_cs")){
								eval(document.getElementById("top_cs").innerHTML);
							}
							
						}
						rewinjson.client.getlocation();
					},
					"GET",
					"rewinjson_top_2_detail"
					);
	}
}
/****
	获取页面头部的数据结束  
*****/
//调用公共FOOT
if(document.getElementById("rewinjson_footer")){
			
		new rewinjson.rewinAjax("/jdw/public/footer.jsp",
						  new rewinjson.tool.parameter("style",currentstr,"",""),
						rewinjson.client.StyleText,
						"GET",
						"rewinjson_footer"
						);
}
if(document.getElementById("rewinjson_footer1")){
			
		new rewinjson.rewinAjax("/jdw/public/footer1.jsp",
						  new rewinjson.tool.parameter("style",currentstr,"",""),
						rewinjson.client.StyleText,
						"GET",
						"rewinjson_footer1"
						);
}
/*************************************
	头部菜单的切换动作
*************************************/
var time = null;
//头部菜单的切换
function top_div_qh(num){
	if(time){
		clearTimeout(time);
		time = null;
	}
	for(i=0;i<top_list;i++){
		document.getElementById("top_"+i+"_div").style.display="none";
	}
	if(document.getElementById("top_-1_div")){
		document.getElementById("top_-1_div").style.display="none";
	}

	document.getElementById("top_"+num+"_div").style.display="";
}

//还原页面头部最原始显示的层
function top_div_hy(dvBox){
		e = window.event;
   if(!dvBox.contains(e.toElement || e.fromElement))
   {
		for(i=0;i<top_list;i++){
		document.getElementById("top_"+i+"_div").style.display="none";
		}
		if(document.getElementById("top_-1_div")){
			document.getElementById("top_-1_div").style.display="none";
		}
		document.getElementById("top_"+defaul_num+"_div").style.display="";
   }
	
}
//直接还原
function top_div_hy_zj(){
		for(i=0;i<top_list;i++){
		document.getElementById("top_"+i+"_div").style.display="none";
		}
		if(document.getElementById("top_-1_div")){
			document.getElementById("top_-1_div").style.display="none";
		}
		document.getElementById("top_"+defaul_num+"_div").style.display="";
	
}
//移出上级层的时候延迟1秒还原
function clearn(){
	if(time){
		clearTimeout(time);
	}
	time = null;
	time = setTimeout("top_div_hy_zj()",500);
}

//鼠标进入
function cleart(){
	if(time){
		clearTimeout(time);
	}
	time = null;
}
//友情链接打开页面事件
function openHref(value){
	if(value!="#"){
		window.open(value);
	}
}
//左侧登录用到的函数

//交易用户切换
function jyqh(num,url){
	if(num>1){
		document.jjyh_login.zhlx.value = num;
		document.jjyh_login.action = url+"/jdw/user/login_jy.jsp?zhlx="+num;
		document.jjyh_login.submit();
		//window.location.href=url+"/jdw/user/login_jy.jsp?zhlx="+num;
	}else if(num == 1){
		window.location.href="/jdw/zcgl/zcgl_login.jsp?classid=0002000200080006";
	}
}
//用户登录
function login(){
	if(document.userlogin.zhlx.value=="-1"){
		alert("请选择您的账户类型!");
		return false;
	}
	if(parseInt(document.userlogin.zhlx.value)>1){
		alert("您是交易用户不能在此登录!");
		return false;
	}
	if(document.userlogin.yhzh.value==""){
		alert("请输入您的账号!");
		return false;
	}
	if(document.userlogin.pwd.value==""){
		alert("请输入您的密码!");
		return false;
	}
	if(document.userlogin.yzm.value==""){
		alert("请输入验证码!");
		return false;
	}
	//document.userlogin.url_form.value =window.location.href;
	document.userlogin.action = "/jdw/user/loginAction.jsp";
	document.userlogin.submit();

}
/******
	加载栏目的个个二级栏目banner位置广告图片  图片都是后台上传的
********/
if(document.getElementById("rewin_item_banner")){
			
		var itemClassid = rewinjson.tool.CheckParam(request.QueryString('classid'),'');
		if(itemClassid.length>16){
			itemClassid = itemClassid.substring(0,16);
		}
		if(document.getElementById("rewin_item_banner").src){
			document.getElementById("rewin_item_banner").src = "/download/itemImg/"+itemClassid+".jpg";
		}else{
			new rewinjson.rewinAjax("/jdw/public/ad.jsp",
						  new rewinjson.tool.parameter("style","type=10001&classid="+itemClassid,"",""),
						rewinjson.client.StyleText,
						"GET",
						"rewin_item_banner"
						);
		}
}
function test_qh(code,num){ //标签切换
	if(document.getElementById("hq0")){
		for(var i = 0;i<3;i++){
			document.getElementById("hq"+i).className= "";
			document.getElementById("hqtshow"+i).style.display = "none";
		}
		document.getElementById("hq"+num).className= "now";
		document.getElementById("hqtshow"+num).style.display = "";
	}
}
//LEFT会有多种样式具体情况再考虑
//客户服务栏目的left
if(document.getElementById("rewinjson_khfw_left")){
		
		
		new rewinjson.rewinAjax("/jdw/khfw/public/left.jsp",
						new rewinjson.tool.parameter("style",currentstr,"",""),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
							}
							rewinjson.client.getlocation();
						},
						"GET",
						"rewinjson_khfw_left"
						);
		
}
//客户服务栏目的right
if(document.getElementById("rewinjson_khfw_right")){
		new rewinjson.rewinAjax("/jdw/khfw/public/right.jsp",
						new rewinjson.tool.parameter("style",currentstr,"",""),
						rewinjson.client.StyleText,
						"GET",
						"rewinjson_khfw_right"
						);
		
}
//手机证券栏目的left
if(document.getElementById("rewinjson_sjzq_left")){
		
		
		new rewinjson.rewinAjax("/jdw/sjzq/public/sjzq_left.jsp",
						new rewinjson.tool.parameter("style",currentstr,"",""),
						rewinjson.client.StyleText,
						"GET",
						"rewinjson_sjzq_left"
						);
		//加载sjzq_left.js
		CreateScript("/jdw/js/public/sjzq_left.js");	
		
}
// 资讯中心栏目的left
if(document.getElementById("rewin_zxzx_left")){
		
		
		new rewinjson.rewinAjax("/jdw/zxzx/public/left.jsp",
						new rewinjson.tool.parameter("style",currentstr,"",""),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
							}
						},
						"GET",
						"rewin_zxzx_left"
						);
		
}

//资讯中心栏目的right
function changeTab(classid,num,count){
	for(var i=0;i<count;i++){
		document.getElementById("tab"+i).className="";
	}
	document.getElementById("tab"+num).className="on";
	if(document.getElementById("rewinjson_zxzx_right_sub")){
			new rewinjson.rewinAjax("/jdw/zxzx/public/right_sub.jsp",
							new rewinjson.tool.parameter("style","classid="+classid+"&subclassid="+request.QueryString("classid"),"",""),
							rewinjson.client.StyleText,
							"GET",
							"rewinjson_zxzx_right_sub"
							);
			
	}
}
function load_zxzx_right(classid,num,count){
	if(document.getElementById("rewinjson_zxzx_right")){
			new rewinjson.rewinAjax("/jdw/zxzx/public/right.jsp",
							new rewinjson.tool.parameter("style","","",""),
							function(repText,divID){
								if(repText != null && repText.length > 0){
									repText = repText.trim();//去掉二头空格
									repText = repText.replaceAll("\r\n","");
									divID.innerHTML = repText;
									
								}
								changeTab(classid,num,count);
							},
							"GET",
							"rewinjson_zxzx_right"
							);
	}
}

// 投资者教育栏目的left
if(document.getElementById("rewin_tzzjy_left")){
		
		
		new rewinjson.rewinAjax("/jdw/tzzjy/public/left.jsp",
						new rewinjson.tool.parameter("style",currentstr,"",""),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
							}
							rewinjson.client.getlocation();//加载完成后调用加载当前位置方法
						},
						"GET",
						"rewin_tzzjy_left"
						);
		//加载sjzq_left.js
		CreateScript("/jdw/js/public/tzzjy_left.js");
		
}
// 融资融券栏目的left
if(document.getElementById("rewin_rzrq_left")){
		
		
		new rewinjson.rewinAjax("/jdw/rzrq/public/left.jsp",
						new rewinjson.tool.parameter("style",currentstr,"",""),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
							}
							rewinjson.client.getlocation();//加载完成后调用加载当前位置方法
						},
						"GET",
						"rewin_rzrq_left"
						);
		
		//加载rzrq_left.js
		CreateScript("/jdw/js/public/rzrq_left.js");
}
// IB业务栏目的left
if(document.getElementById("rewinjson_ibyw_left")){
		
		
		new rewinjson.rewinAjax("/jdw/ibyw/public/left.jsp",
						new rewinjson.tool.parameter("style",currentstr,"",""),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
							}
							rewinjson.client.getlocation();//加载完成后调用加载当前位置方法
						},
						"GET",
						"rewinjson_ibyw_left"
						);
		
		CreateScript("/jdw/js/public/ibyw_left.js");
}
// 网上营业厅栏目的left
if(document.getElementById("rewin_wsyyt_left")){
		
		
		new rewinjson.rewinAjax("/jdw/wsyyt/public/left.jsp",
						new rewinjson.tool.parameter("style",currentstr+"&f="+Math.random(),"",""),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
							}
						},
						"GET",
						"rewin_wsyyt_left"
						);
		
}
//资产管理的left
if(document.getElementById("rewinjson_zcgl_left")){
		
		
		new rewinjson.rewinAjax("/jdw/zcgl/left.jsp",
						new rewinjson.tool.parameter("style",currentstr,"",""),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
							}

							rewinjson.client.getlocation();

							//净值图上方产品名称
							if(document.getElementById("cpname")){
								document.getElementById("cpname").innerHTML = document.getElementById("rewinshow_select").innerHTML;
							}

							//左侧下来
							if(document.getElementById("cpselect")){
								showjz(document.getElementById("cpselect").value);
							}

							//当前位置
							zcglcurrent();
						},
						"GET",
						"rewinjson_zcgl_left"
						);
		
}
//基金超市栏目的left
if(document.getElementById("rewinjson_jjcs_left")){
		
		
		new rewinjson.rewinAjax("/jdw/jjcs/jjcsleft.jsp",
						new rewinjson.tool.parameter("style",currentstr+"&"+paramter,"",""),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
							}
							rewinjson.client.getlocation();
						},
						"GET",
						"rewinjson_jjcs_left"
						);
		
}
//金鼎致富栏目的left
if(document.getElementById("rewinjson_jdzf_left")){
		
		
		new rewinjson.rewinAjax("/jdw/jdzf/public/left.jsp",
						new rewinjson.tool.parameter("style",currentstr,"",""),
						function (repText,divID){
							if(repText != null && repText.length > 0){
								repText = repText.trim();//去掉二头空格
								repText = repText.replaceAll("\r\n","");
								divID.innerHTML = repText;
							}
							rewinjson.client.getlocation();
							//向右侧头部填标题
							var location2Text = document.getElementById("location2_2temp").innerHTML;
							if(document.getElementById("location2_title")){
								document.getElementById("location2_title").innerHTML = location2Text;
							}
						},
						"GET",
						"rewinjson_jdzf_left"
						);
		//CreateScript("/jdw/js/public/jdzf_left.js");	//加载
		
}
function yxry_search(){
	var cxlx_left = document.getElementById("cxlx_left").value;
	var cxlx_left_nr = document.getElementById("cxlx_left_nr").value;
	
	if(cxlx_left_nr==""){
		alert("请输入您要查询的营销人员!");
	}else{
		if(cxlx_left==0){
			window.open("http://zg.sac.net.cn/upublicdetail?title_no="+cxlx_left_nr);
		}else{
			cxlx_left_nr = encodeURIComponent(cxlx_left_nr);
			window.open("/jdw/xhname.jsp?name="+cxlx_left_nr);
			//encodeURIComponent
		}
	}
}

function search_left(){
	var search_left = document.getElementById("search_left").value;
	if(search_left==""){
		alert("请输入您要搜索的内容!");
	}else{
		window.location.href="/jdw/public/search.html?keyword="+encodeURIComponent(search_left);
	}
}



//资产管理点击其他产品
function showhref(obj){
	
	var currentclassid = "";
	var cpid = "";
	var hrefstr = obj.href;
	var hreflocation = window.location.href;
	
	if(hreflocation.indexOf("0002000200080003") != -1){
		var startstr =  hrefstr.indexOf("currentclassid=");
	
		if(-1 != startstr){
			startstr = startstr+ "currentclassid".length+1;
			currentclassid = hrefstr.substring(startstr);
		}

		startstr = hrefstr.indexOf("cpid=");
		if(-1 != startstr){
			startstr = startstr+ "cpid".length+1;
			var endstr = hrefstr.indexOf("&",startstr);
			cpid = hrefstr.substring(startstr,endstr);
		}
		
		obj.href = "#this"
		
		
		if(hreflocation.indexOf("currentclassid") != -1){
			startstr = hreflocation.indexOf("currentclassid");
			hreflocation = hreflocation.substring(0,startstr-1);
		}
		
		window.location = hreflocation+"&currentclassid="+currentclassid+"&cpid="+cpid;
	}else{
		var startstr = hrefstr.indexOf("cpid=");
		if(-1 != startstr){
			startstr = startstr+ "cpid".length+1;
			var endstr = hrefstr.indexOf("&",startstr);
			cpid = hrefstr.substring(startstr,endstr);
		}

		var objs = document.getElementsByTagName("input");
		if(null != objs && objs.length>0){
			for(var i = 0;i<objs.length;i++){
				if(objs[i].type == "hidden" && objs[i].id.indexOf(cpid+"cpid00020002000800030001") != -1){
					currentclassid = document.getElementById(objs[i].id).value;
					break;
				}
			}
		}
		obj.href="#this";
		
		window.location = "/jdw/zcgl/zcglcontent.html?classid=00020002000800030001&currentclassid="+currentclassid+"&cpid="+cpid;
		
	}

	return false;
}

//资产管理
//value1  栏目classid, value2 产品下的栏目classid, value3 产品id
function gohref(value1,value2,value3){
	
	var hrefstr = window.location.href;
	var currentclassid = "";
	var cpid = "";

	var startstr = hrefstr.indexOf("cpid=");
	if(-1 != startstr){
		startstr = startstr+ "cpid".length+1;
		cpid = hrefstr.substring(startstr);
	}

	var objs = document.getElementsByTagName("input");
	if(null != objs && objs.length>0){
		for(var i = 0;i<objs.length;i++){
			if(objs[i].type == "hidden" && objs[i].id.indexOf("cpid"+value1) != -1){
				var str = objs[i].id;
				if(str.substring(0,str.indexOf("cpid")) == cpid){
					
					currentclassid = document.getElementById(objs[i].id).value;
					//alert(currentclassid);
					
				}
			}
		}
	}

	if("" != currentclassid){
		value2 = currentclassid;
		value3 = cpid;
	}
		
	var strlocal = "/jdw/zcgl/";
	if( "00020002000800030001" == value1){//产品简介
		strlocal += "zcglcontent.html?classid="+value1+"&currentclassid="+value2+"&cpid="+value3;
	}else if("00020002000800030007" == value1){ //文件下载
		strlocal += "zcgllist.html?classid="+value1+"&currentclassid="+value2+"&cpid="+value3;
	}else if("00020002000800030005" == value1){//定期报告
		strlocal += "zcgllist.html?classid="+value1+"&currentclassid="+value2+"&cpid="+value3;
	}else if("00020002000800030006" == value1){//产品公告
		strlocal += "zcgllist.html?classid="+value1+"&currentclassid="+value2+"&cpid="+value3;
	}else if("00020002000800030003" == value1){//费率明细
		strlocal += "zcglcontent.html?classid="+value1+"&currentclassid="+value2+"&cpid="+value3;
	}else if("00020002000800030002" == value1){//净值列表
		strlocal += "jzlist.html?classid="+value1+"&currentclassid="+value2+"&cpid="+value3;
	}else if("00020002000800030004" == value1){ //收益分配
		strlocal += "zcglcontent.html?classid="+value1+"&currentclassid="+value2+"&cpid="+value3;
	}

	window.location = strlocal;	
}
//资产管理左侧产品净值列表
function showjz(value){
	if(document.getElementById("rewinshowjz")){
		new rewinjson.rewinAjax("/jdw/zcgl/showjz.jsp",
				new rewinjson.tool.parameter("style","cpid="+value,"",""),
				rewinjson.client.StyleText,
				"GET",
				"rewinshowjz"
				);
	}
}

//资产管理当前位置
function zcglcurrent(){
	
	if(document.getElementById("rewinshow_select")){
		var show = "";
		var str = document.getElementById("rewinjson_current").innerHTML;
		if(null != str && "" != str){
			
			var inflag = str.lastIndexOf("&gt;");
			show = str.substring(0,inflag);
			show +=  "&gt; <a onclick = 'showhref(this)' href = '"+document.getElementById("rewinshow_select").href+"'>"+document.getElementById("rewinshow_select").innerHTML+"</a> ";
			show += str.substring(inflag);
			document.getElementById("rewinjson_current").innerHTML = show;
		}
	}
	
}


//访问统计分析用到的
function CreateScript_fx(){
	var url_wd =  document.referrer;
    var new_element;
    new_element=document.createElement("script");
    new_element.setAttribute("type","text/javascript");
    new_element.setAttribute("src","/jdw/filter/filter.jsp?RefererUrl="+url_wd);
	if(document.body){
		document.body.appendChild(new_element);
	}else{
		document.appendChild(new_element);
	}
}
 CreateScript_fx();




