﻿// JavaScript Document
function writeHead(rootPath){
document.writeln("	<div class=\"index_topbg\">");
document.writeln("	<div class=\"main_div\">");
document.writeln("		<!-- 头部 -->    ");
document.writeln("    	<div class=\"index_top floatleft\">");
document.writeln("        	<ul class=\"logo floatleft\"><a href=\"http:\/\/www.189.cn\/\"><img src=\"\/image\/common\/logo.gif\" \/><\/a><\/ul>");
document.writeln("            <ul class=\"city_change floatleft\">");
document.writeln("            	<h5>总站<\/h5>");
document.writeln("                <h6>China<\/h6>");
document.writeln("                <div  class=\"city_changep\" id=\"city_btn\"  onmouseover=\"this.style.color=\'#ff6600\';\" onmouseout=\"this.style.color=\'#666666\';\">");
document.writeln("                [切换省份]");
document.writeln("                ");
document.writeln("                    <div id=\"city\" >");
document.writeln("                        <h3>请选择您想要切换到的城市/省份：<\/h3>");
document.writeln("<IFRAME height=\"147px\" src=\"\/tymh\/web\/inlay\/SSOprovince.jsp\" frameBorder=\"0\" width=\"274px\"  allowtransparency=\"true\" scrolling=no style=\"background-color:transparent\"><\/IFRAME> ");
document.writeln("                    <\/div>               ");
document.writeln("                <\/div>");
document.writeln("             <\/ul>");
document.writeln("<IFRAME height=\"57px\" src=\"\/tymh\/web\/cms\/index_top_status_bar.jsp\" frameBorder=\"0\" width=\"690px\"  allowtransparency=\"true\" scrolling=no style=\"background-color:transparent\"><\/IFRAME> ");
document.writeln("        <\/div>");
document.writeln("        <div class=\"clear\"><\/div>");
document.writeln("        ");
document.writeln("        <!-- 导航-->");
document.writeln("        <div class=\"nav\">");
document.writeln("        	<div class=\"nav_content\">");
document.writeln("            	<ul>");
document.writeln("                	<li id=\"home\"><span><a href=\"\/\">首页<\/a><\/span><\/li>");
document.writeln("                    <li id=\"mall\"><span><a href=\"\/mall\/\">天翼卖场<\/a><div class=\"nav_sale\"><\/div><\/span><\/li>");
document.writeln("                    <li id=\"business\"><span><a href=\"\/business\/\">业务介绍<\/a><\/span><\/li>");
document.writeln("                    <li id=\"service\"><span><a href=\"\/tymh\/selfLink.do?method=init\">自助服务<\/a><\/span><\/li>");
document.writeln("                    <li id=\"club\"><span><a href=\"\/club\/\">积分俱乐部<\/a><\/span><\/li>");
document.writeln("                    <li id=\"support\"><span class=\"nav_contentspan\"><a href=\"\/support\/\">帮助与支持<\/a><\/span><\/li>");
document.writeln("                <\/ul>");
document.writeln("            <\/div>");
document.writeln("            ");
document.writeln("            <div class=\"nav_quick\">");
document.writeln("            	<ul class=\"quick_nav floatleft\">");
document.writeln("                 		<a><img src=\"\/image\/common\/quick_navbtn.gif\" \/><\/a>");
document.writeln("                 <\/ul>");
document.writeln("                ");
document.writeln("                <ul class=\"nav_search floatleft\">");
document.writeln("                	<li>");
document.writeln("                	   <form onsubmit=\"clearVal();\"  method=\"GET\" action=\"http:\/\/www.189.cn\/JSearch\/s?wd=189&x=33&y=16\" >");
document.writeln("                    	<input id=\"wd\" name=\"wd\" type=\"text\" class=\"nav_search_inp\" value=\"您可以搜索产品\/活动\/问题等\" onclick=\"this.value=\'\'\"  \/>");
document.writeln("                        <input type=\"submit\" value=\"\" class=\"nav_search_btn\" \/>");
document.writeln("                	   <\/form>");
document.writeln("                    <\/li>");
document.writeln("                <\/ul>");
document.writeln("                ");
document.writeln("		<ul class=\"nav_hot  floatleft\">");
document.writeln("           <span>热门搜索：<\/span><a href=\"\/client\/\">掌上营业厅<\/a><a href=\"\/tymh\/web\/tianyiMall\/shopping_mall_terminal_detail.jsp?id=5cddfc9dae193add3a7da043c77b2e83&suite=suite\">XT882<\/a>");
document.writeln("        <\/ul>               ");
document.writeln("");
                
document.writeln("      <iframe id='shoppingCatIframe' name='shoppingCatIframe' src=\"\/tymh/shopping/cart.do\" width=\"0\" height=\"0\" scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\"><\/iframe>");
document.writeln("                <ul class=\"nav_car floatright\">");
document.writeln("                	<li>");
document.writeln("                    	购物车<span id='shoppingCatNum'><\/span>件");
document.writeln("                        <div class=\"nav_car_sanjiao\" id=\"car\"><\/div>");
document.writeln("                         <input type=\"button\" class=\"nav_car_btn\"  onclick='javascript:document.location.href=\"\/tymh/shoppingGoodslist.do?method=queryGoods\"' \/> ");
document.writeln("                    <\/li>");
document.writeln("                    <div class=\"nav_car_po\" id='shoppingCatList'>");
document.writeln("                    <\/div> ");                      
document.writeln("                <\/ul>");


document.writeln("        <\/div>            ");
document.writeln("        <\/div>");
document.writeln("    <\/div>");
document.writeln("<\/div>            ");
}
function clearVal(){
		var v = document.getElementById("wd").value.toLowerCase();
		if(v=='prl'){
			document.getElementById("wd").value="";
		}
	}
