function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
 if (restore) selObj.selectedIndex=0;
}
//header
function header(){	
	document.writeln("  <div id=\"header\">");
	document.writeln("    <div id=\"verSearch\">");
	document.writeln("      <div id=\"ver\">");
	document.writeln("		<select id=\"StranLink\" onchange=\"selectchange()\">");
	document.writeln("		      <option value=\"0\">Language<\/option>");
	document.writeln("			  <option value=\"1\" selected>简体中文<\/option>");
	document.writeln("		      <option value=\"2\">繁体中文<\/option>");
	document.writeln("		      <option value=\"3\">English<\/option>");
	document.writeln("		<\/select>");
	document.writeln("      <\/div>");
	document.writeln("     <form method=\"post\" action=\"\/wm\/search.asp\" class=\"topsearch\">");
	document.writeln("      <div class=\"searchBar\">搜索：");
	document.writeln("<input type=\"text\" name=\"keyword\" size=\"12\" class=\"topsearchInputbox\">");
	document.writeln("<input type=\"hidden\" name=\"Condition\" id=\"Condition\" value=\"title\">");
	document.writeln("<select name=\"Types\" class=\"types\"><option value=\"News\">新闻<\/option>&nbsp;&nbsp;<option value=\"DownLoad\">资料<\/option><option value=\"Mall\">产品<\/option><\/select>");		
	document.writeln("<\/div>");
	document.writeln("<div class=imgb><img src=\"\/wm\/Templets\/chinese\/images\/IconGo.jpg\" onclick=\"submit()\"><\/div>");
	document.writeln("      <\/div></form>");
	document.writeln("    <div id=\"logo\"><img src=\"\/wm\/Templets\/chinese\/images\/Logo.jpg\" \/><\/div>");
	document.writeln("  <\/div>");
	document.writeln("  <div id=\"SliceLine\">");
	document.writeln("    <div class=\"greyLine1\"><\/div>");
	document.writeln("    <div class=\"greyLine2\"><\/div>");
	document.writeln("    <div class=\"WhiteLine\"><\/div>");
	document.writeln("  <\/div>");
	document.writeln("  <div id=\"NavMenu\">");
	document.writeln("    <div class=\"Navlist\">");
	document.writeln("      <div id=\"Navlink\">");
	document.writeln("        <ul>");
	document.writeln("          <li id=\"home\"><a href=\"\/wm\/html\/cn\/\">首页<\/a><\/li>");
	document.writeln("          <li id=\"wireless\"><a href=\"\/wm\/html\/cn\/Wireless\/\" >无线通讯模块<\/a><\/li>");
	document.writeln("          <li id=\"application\"><a href=\"\/wm\/html\/cn\/Solution\" >系统产品方案<\/a><\/li>");
	document.writeln("          <li id=\"media\"><a href=\"\/wm\/html\/cn/news\" >媒体中心<\/a><\/li>");
	document.writeln("          <li id=\"support\"><a href=\"\/wm\/html\/cn\/service\/cnonline\/\" >服务支持<\/a><\/li>");
	document.writeln("        <\/ul>");
	document.writeln("      <\/div>");
	document.writeln("    <\/div>");
}
function header2(){	
	document.writeln("  <div id=\"header\">");
	document.writeln("    <div id=\"verSearch\">");
	document.writeln("      <div id=\"ver\">");
	document.writeln("		<select id=\"StranLink\" onchange=\"selectchange()\">");
	document.writeln("		      <option value=\"0\">Language<\/option>");
	document.writeln("			  <option value=\"1\" selected>简体中文<\/option>");
	document.writeln("		      <option value=\"2\">繁体中文<\/option>");
	document.writeln("		      <option value=\"3\">English<\/option>");
	document.writeln("		<\/select>");
	document.writeln("      <\/div>");
	document.writeln("     <form method=\"post\" action=\"\/wm\/search.asp\" class=\"topsearch\">");
	document.writeln("      <div class=\"searchBar\">搜索：");
	document.writeln("<input type=\"text\" name=\"keyword\" size=\"12\" class=\"topsearchInputbox\">");
	document.writeln("<input type=\"hidden\" name=\"Condition\" id=\"Condition\" value=\"title\">");
	document.writeln("<input type=\"hidden\" name=\"Types\" id=\"Types\" value=\"News\"><\/div>");
	document.writeln("<div class=imgb><img src=\"\/wm\/Templets\/chinese\/images\/IconGo.jpg\" onclick=\"submit()\"><\/div>");
	document.writeln("      <\/div></form>");
	document.writeln("    <div id=\"logo\"><img src=\"\/wm\/Templets\/chinese\/images\/Logo.jpg\" \/><\/div>");
	document.writeln("  <\/div>");
	document.writeln("  <div id=\"SliceLine\">");
	document.writeln("    <div class=\"greyLine1\"><\/div>");
	document.writeln("    <div class=\"greyLine2\"><\/div>");
	document.writeln("    <div class=\"WhiteLine\"><\/div>");
	document.writeln("  <\/div>");
	document.writeln("  <div id=\"NavMenu\">");
	document.writeln("    <div class=\"Navlist\">");
	document.writeln("      <div id=\"Navlink\">");
	document.writeln("        <ul>");
	document.writeln("          <li id=\"home\"><a href=\"\/wm\/html\/cn\/\">首页<\/a><\/li>");
	document.writeln("          <li id=\"wireless\"><a href=\"\/wm\/html\/cn\/Wireless\/\" >无线通讯模块<\/a><\/li>");
	document.writeln("          <li id=\"application\"><a href=\"\/wm\/html\/cn\/Solution\" >系统产品方案<\/a><\/li>");
	document.writeln("          <li id=\"media\"><a href=\"\/wm\/html\/cn\/news\" >媒体中心<\/a><\/li>");
	document.writeln("          <li id=\"support\"><a href=\"\/wm\/html\/cn\/service\/cnonline\/\" >服务支持<\/a><\/li>");
	document.writeln("        <\/ul>");
	document.writeln("      <\/div>");
	document.writeln("    <\/div>");
}
function headerindex(){	
	document.writeln("  <div id=\"header\">");
	document.writeln("    <div id=\"verSearch\">");
	document.writeln("      <div id=\"ver\">");
	document.writeln("		<select id=\"StranLink\" onchange=\"selectchange()\">");
	document.writeln("		      <option value=\"0\">Language<\/option>");
	document.writeln("			  <option value=\"1\" selected>简体中文<\/option>");
	document.writeln("		      <option value=\"2\">繁体中文<\/option>");
	document.writeln("		      <option value=\"3\">English<\/option>");
	document.writeln("		<\/select>");
	document.writeln("      <\/div>");
	//document.writeln("     <form method=\"post\" action=\"\/wm\/search.asp\" class=\"topsearch\">");
	//document.writeln("      <div class=\"searchBar\">搜索：");
	//document.writeln("<input type=\"text\" name=\"keyword\" size=\"12\" class=\"topsearchInputbox\">");
	//document.writeln("<input type=\"hidden\" name=\"Condition\" id=\"Condition\" value=\"title\">");
	//document.writeln("<select name=\"Types\" class=\"types\"><option value=\"News\">新闻<\/option>&nbsp;&nbsp;<option value=\"DownLoad\">资料<\/option><option value=\"Mall\">产品<\/option><\/select>");		
	//document.writeln("<\/div>");
	//document.writeln("<div class=imgb><img src=\"\/wm\/Templets\/chinese\/images\/IconGo.jpg\" onclick=\"submit()\"><\/div></form>");
	document.writeln("      <\/div>");
	document.writeln("    <div id=\"logo\"><img src=\"\/wm\/Templets\/chinese\/images\/Logo.jpg\" \/><\/div>");
	document.writeln("  <\/div>");
	document.writeln("  <div id=\"SliceLine\">");
	document.writeln("    <div class=\"greyLine1\"><\/div>");
	document.writeln("    <div class=\"greyLine2\"><\/div>");
	document.writeln("    <div class=\"WhiteLine\"><\/div>");
	document.writeln("  <\/div>");
	document.writeln("  <div id=\"NavMenu\">");
	document.writeln("    <div class=\"Navlist\">");
	document.writeln("      <div id=\"Navlink\">");
	document.writeln("        <ul>");
	document.writeln("          <li id=\"home\"><a href=\"\/wm\/html\/cn\/\">首页<\/a><\/li>");
	document.writeln("          <li id=\"wireless\"><a href=\"\/wm\/html\/cn\/Wireless\/\" >无线通讯模块<\/a><\/li>");
	document.writeln("          <li id=\"application\"><a href=\"\/wm\/html\/cn\/Solution\" >系统产品方案<\/a><\/li>");
	document.writeln("          <li id=\"media\"><a href=\"\/wm\/html\/cn/news\" >媒体中心<\/a><\/li>");
	document.writeln("          <li id=\"support\"><a href=\"\/wm\/html\/cn\/service\/cnonline\/\" >服务支持<\/a><\/li>");
	document.writeln("        <\/ul>");
	document.writeln("      <\/div>");
	document.writeln("    <\/div>");
}
//footer
function footer(){	
		document.writeln("<div id=\"footer\">");
		document.writeln("    <div class=\"footerPart\"> <a href=\"#\" onclick=\"MM_openBrWindow(\'\/wm\/html\/cn\/about\/16480862216482243443.html\',\'\',\'scrollbars=yes,width=617,height=400\')\">关于我们<\/a> | <a href=\"# \" onclick=\"MM_openBrWindow(\'\/wm\/html\/cn\/about\/09410871709414940173.html\',\'\',\'scrollbars=yes,width=617,height=400\')\">隐私政策<\/a> | <a href=\"#\" onclick=\"MM_openBrWindow(\'\/wm\/html\/cn\/ContactUs\/16420862216422762214.html\',\'\',\'scrollbars=yes,width=617,height=400\')\">联系我们<\/a> | <a href=\"http:\/\/www.sim.com\" target=\"_top\">晨讯科技<\/a><\/div> <div id=\"copyright\">&copy;晨讯科技集团 2008.<\/div>");
		document.writeln("  <\/div>");	
}
//Years News
function YearNewsN(){
	document.writeln("	    <div class=\"Subfilter\">年度新闻检索：");
	document.writeln("        <select name=\"menu1\" onchange=\"MM_jumpMenu(\'parent\',this,0)\">");
	document.writeln("        <option selected>请选择年度<\/option>");		
	document.writeln("        <option value=\"\/wm\/YearNews.asp?year=2006&type=news\">2006<\/option>");
	document.writeln("        <option value=\"\/wm\/YearNews.asp?year=2007&type=news\">2007<\/option>");
	document.writeln("        <option value=\"\/wm\/YearNews.asp?year=2008&type=news\">2008<\/option>");
	document.writeln("      <\/select><\/div>");
	document.writeln("	  <hr width=\"100%\">	")
}
function YearNewsM(){
	document.writeln("	    <div class=\"Subfilter\">年度新闻检索：");
	document.writeln("        <select name=\"menu1\" onchange=\"MM_jumpMenu(\'parent\',this,0)\">");
	document.writeln("        <option selected>请选择年度<\/option>");	
	document.writeln("        <option value=\"\/wm\/YearNews.asp?year=2006&type=market\">2006<\/option>");
	document.writeln("        <option value=\"\/wm\/YearNews.asp?year=2007&type=market\">2007<\/option>");
	document.writeln("        <option value=\"\/wm\/YearNews.asp?year=2008&type=market\">2008<\/option>");
	document.writeln("      <\/select><\/div>");
	document.writeln("	  <hr width=\"100%\">	")
}
function YearNewsP(){
	document.writeln("	    <div class=\"Subfilter\">年度新闻检索：");
	document.writeln("        <select name=\"menu1\" onchange=\"MM_jumpMenu(\'parent\',this,0)\">");
	document.writeln("        <option selected>请选择年度<\/option>");		
	document.writeln("        <option value=\"\/wm\/YearNews.asp?year=2006&type=pic\">2006<\/option>");
	document.writeln("        <option value=\"\/wm\/YearNews.asp?year=2007&type=pic\">2007<\/option>");
	document.writeln("        <option value=\"\/wm\/YearNews.asp?year=2008&type=pic\">2008<\/option>");
	document.writeln("      <\/select><\/div>");
	document.writeln("	  <hr width=\"100%\">	")
}

/***********************************************
* Dynamic Ajax Content- ?Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var loadedobjects=""
var rootdomain="http://"+window.location.hostname

function ajaxpage(url, containerid){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
page_request.open('GET', url, true)
page_request.send(null)
}

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}

function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", file);
}
else if (file.indexOf(".css")!=-1){ //If object is a css file
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", file);
}
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
}
}