function addTab(f,a,c,h,g){if(h=="7401"){openDataCenter();return}if(h){bookMarkFun(h)}var b=$("#menu-tabs");if(b.tabs("exists",f)){b.tabs("select",f);if(!g){refreshTab({tabTitle:f,url:a})}else{if(h=="4101"){myCirFrame.autoSearchInfo()}if(h=="4201"){myRrdFrame.autoSearchInfo()}}}else{var d="";if(a){var e="";if(h=="4101"){e='name="myCirFrame"'}if(h=="4201"){e='name="myRrdFrame"'}d="'}else{d="未实现"}b.tabs("add",{id:h,title:f,closable:true,content:d,iconCls:"e-icon fa fa-"+c,})}}function refreshTab(a){var d=null;if(!a){d=$("#menu-tabs").tabs("getSelected");a={}}else{d=a.tabTitle?$("#menu-tabs").tabs("getTab",a.tabTitle):$("#menu-tabs").tabs("getSelected")}if(d&&d.find("iframe").length>0){var b=d.find("iframe")[0];var c=a.url?a.url:b.src;b.contentWindow.location.href=c}}function closeTab(g,f){var b=$(g).data("tabTitle");var d=$("#menu-tabs");if(f==="close"){d.tabs("close",b);return}if(f==="refresh"){refreshTab({tabTitle:b});return}var a=d.tabs("tabs");var e=[];$.each(a,function(){var h=$(this).panel("options");if(h.closable&&h.title!=b&&f==="Other"){e.push(h.title)}else{if(h.closable&&f==="All"){e.push(h.title)}}});for(var c=0;c