function print1(){
document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("");
document.writeln("  <tr>");
document.writeln("    <td align=\"center\" valign=\"top\"><table width=\"776\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("      <tr height=\"7\">");
document.writeln("        <td></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("          <tr>");
document.writeln("            <td width=\"20\"><img src=\"/img/en/img1.jpg\" width=\"20\" height=\"101\" /></td>");
document.writeln("            <td width=\"167\"><img src=\"/img/en/logo.jpg\" width=\"214\" height=\"101\" /></td>");
}

function print2(){
document.writeln("");
document.writeln("			<td valign=\"top\" background=\"/img/en/img3.jpg\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("              <tr height=\"5\">");
document.writeln("                <td></td>");
document.writeln("                <td></td>");
document.writeln("                <td></td>");
document.writeln("                <td></td>");
document.writeln("              </tr>");
document.writeln("              <tr>");
document.writeln("                <td width=\"10\" align=\"center\"><img src=\"/img/en/dot3.gif\" width=\"2\" height=\"2\" /></td>");
document.writeln("                <td width=\"50\" height=\"25\" align=\"left\" class=\"sitemap\"><a href=\"#\">");
document.writeln("				Sitemap</a> </td>");
document.writeln("                <td width=\"10\" align=\"center\"><img src=\"/img/en/dot3.gif\" width=\"2\" height=\"2\" /></td>");
document.writeln("                <td align=\"left\" class=\"sitemap\"><a href=\"/web/vn/\">Ti&#7871;ng Vi&#7879;t</a></td>");
document.writeln("              </tr>");
document.writeln("            </table></td>");
document.writeln("          </tr>");
document.writeln("        </table></td>");
document.writeln("      </tr>");
}

function print3(){

document.writeln(" <tr>");
document.writeln("        <td background=\"/img/en/bg_navbar.gif\" style=\"border:#bdc3c3 1px solid;\">");
document.writeln("        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("          <tr>");


//document.writeln("            <td width=\"2\"><img src=\"/img/en/mid.gif\" width=\"2\" height=\"25\" /></td>");
document.writeln("            <td width=\"61\" align=\"center\" class=\"navbar\"><a href=\"/web/en/\"></a> <a href=\"/web/en/\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image105','','/img/en/icon/home_over.jpg',0)\"><img src=\"/img/en/icon/home.jpg\" name=\"Image105\" height=\"25\" border=\"0\" id=\"Image105\" /></a></td>");
//document.writeln("            <td width=\"2\"><img src=\"/img/en/mid.gif\" width=\"2\" height=\"25\" /></td>");
document.writeln("            <td width=\"85\" align=\"center\" class=\"navbar\"><a href=\"/web/en/products/\"></a><a href=\"/web/en/products/\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image106','','/img/en/icon/product_over.jpg',0)\"><img src=\"/img/en/icon/product.jpg\" name=\"Image106\" height=\"25\" border=\"0\" id=\"Image106\" onmouseover=\"MM_showMenu(window.mm_menu_product_0,0,28,null,'Image106')\" onmouseout=\"MM_startTimeout();\" /></a></td>");
//document.writeln("            <td width=\"2\"><img src=\"/img/en/mid.gif\" width=\"2\" height=\"25\" /></td>");
document.writeln("            <td width=\"109\" align=\"center\" class=\"navbar\"><a href=\"/web/en/mobifunlive/\"></a> <a href=\"/web/en/mobifunlive/\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image107','','/img/en/icon/entertaiments_over.jpg',0)\"><img src=\"/img/en/icon/entertaiments.jpg\" name=\"Image107\" height=\"25\" border=\"0\" id=\"Image107\" onmouseover=\"MM_showMenu(window.mm_menu_fun_0,0,28,null,'Image107')\" onmouseout=\"MM_startTimeout();\" /></a></td>");
document.writeln("            <td width=\"61\" align=\"center\" class=\"navbar\"><a href=\"http://www.mobifonemedia.com.vn\"></a> <a href=\"http://www.mobifonemedia.com.vn\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image111','','/img/en/icon/media_over.jpg',0)\"><img src=\"/img/en/icon/media.jpg\" name=\"Image111\" height=\"25\" border=\"0\" id=\"Image111\" /></a></td>");
//document.writeln("            <td width=\"2\"><img src=\"/img/en/mid.gif\" width=\"2\" height=\"25\" /></td>");
document.writeln("            <td width=\"82\" align=\"center\" class=\"navbar\"><a href=\"/web/en/vas/\"></a> <a href=\"/web/en/vas/\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image108','','/img/en/icon/service_over.jpg',0)\"><img src=\"/img/en/icon/service.jpg\" name=\"Image108\" height=\"25\" border=\"0\" id=\"Image108\" onmouseover=\"MM_showMenu(window.mm_menu_service_0,0,28,null,'Image108')\" onmouseout=\"MM_startTimeout();\" /></a></td>");
//document.writeln("            <td width=\"2\"><img src=\"/img/en/mid.gif\" width=\"2\" height=\"25\" /></td>");
document.writeln("            <td width=\"86\" align=\"center\" class=\"navbar\"><a href=\"/web/en/home/\"></a> <a href=\"/web/en/home/\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image109','','/img/en/icon/mobifone_n_over.jpg',0)\"><img src=\"/img/en/icon/mobifone_n.jpg\" name=\"Image109\" height=\"25\" border=\"0\" id=\"Image109\" onmouseover=\"MM_showMenu(window.mm_menu_home_0,0,28,null,'Image109')\" onmouseout=\"MM_startTimeout();\" /></a></td>");
//document.writeln("            <td width=\"2\"><img src=\"/img/en/mid.gif\" width=\"2\" height=\"25\" /></td>");
document.writeln("            <td width=\"143\" align=\"center\" class=\"navbar\"><a href=\"/web/en/vas/\"></a> <a href=\"/web/en/vas/\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image110','','/img/en/icon/mymobifone_over.jpg',0)\"><img src=\"/img/en/icon/mymobifone.jpg\" name=\"Image110\" height=\"25\" border=\"0\" id=\"Image110\" onmouseover=\"MM_showMenu(window.mm_menu_vas_0,0,28,null,'Image110')\" onmouseout=\"MM_startTimeout();\" /></a></td>");
//document.writeln("            <td width=\"2\"><img src=\"/img/en/mid.gif\" width=\"2\" height=\"25\" /></td>");
document.writeln("            <td>");


document.writeln("            &nbsp;</td>");
document.writeln("          </tr>");
document.writeln("        </table></td>");
document.writeln("      </tr>");
document.writeln("      <tr height=\"3\"><td bgcolor=\"#E5E5E5\"><table align=\"center\">");
document.writeln("      <form name = \"searchForm\" action=\"http://www.google.com.vn/cse\" id=\"cse-search-box\" target=\"_blank\">            ");
document.writeln("      <tr><td><img src=\"http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif\" alt=\"Google\"></td>");
document.writeln("      <td><input class=\"txt\" type=\"text\" name=\"q\" size=\"70\"></td>");
document.writeln("      <td><input class=\"menu\" type=\"button\" value=\"MobiFone Portal\" onclick=\"return submitsearch(0);\" ></td><td><input class=\"menu\" type=\"button\" value=\"Web\" onclick=\"return submitsearch(1);\" ></td></tr>");
//document.writeln("      <input type=\"hidden\" name=\"ie\" value=\"UTF-8\" />");
document.writeln("      <input type=\"hidden\" name=\"ie\" value=\"windows-1252\" />");

//document.writeln("      <td width=\"5\" colspan=\"3\"><div id=\"idSearch\"></div></td>");
document.writeln("      <td width=\"5\" colspan=\"3\"><input type='hidden' name='cx'></td>");
document.writeln("      </form>  ");
document.writeln("      </table></td></tr>");
//document.writeln("      <tr height=\"3\"><td></td></tr>");
document.writeln("</table>");
document.writeln("<table width=\"776\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">     ");
document.writeln("      <tr>");
document.writeln("        <td valign=\"top\">");
}

function printLast(){
document.writeln("      <tr height=\"5\">");
document.writeln("        <td></td>");
document.writeln("      </tr>");
document.writeln("      <tr height=\"3\">");
document.writeln("        <td bgcolor=\"#d5d5d5\"></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td height=\"88\" style=\"border-bottom:#d5d5d5 1px solid;border-left:#d5d5d5 1px solid;border-right:#d5d5d5 1px solid;\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("          <tr>");
document.writeln("            <td width=\"25\">&nbsp;</td>");
document.writeln("            <td align=\"left\"><span class=\"login\">Coppyright of VMS company. ");
document.writeln("			<!--Developed by<a href='http://www.neo.com.vn' target='new'><img src='/img/en/neo.png' border=0></a> 2007.--><br>");
document.writeln("			Licence number: 105GP-BC by Ministry of Information and Communications ");
document.writeln("			issue date 26/4/2006.</span><br /> ");
document.writeln("              <span class=\"register\"><a href=\"/web/en/\">MobiFone Home page</a> | <a href=\"#\">");
document.writeln("			Conditions</a> |<a href=\"/web/en/feedback\"> Feedback</a> |<a href=\"#\"> ");
document.writeln("			Sitemap</a> | <a href=\"#\">Recruitment</a></span></td>");
document.writeln("            <td width=\"125\" align=\"center\"><a target=\"VRSN_Splash\" href=\"https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.MOBIFONE.COM.VN&lang=en\"><img oncontextmenu=\"return false;\" alt=\"Click to Verify - This site has chosen a VeriSign SSL Certificate to improve Web site security\" src=\"/img/en/design.gif\" border=\"0\"></a></td>");
document.writeln("          </tr>");
document.writeln("        </table></td>");
document.writeln("      </tr>");
document.writeln("      <tr height=\"10\">");
document.writeln("        <td></td>");
document.writeln("      </tr>");
document.writeln("    </table></td>");
document.writeln("  </tr>");
document.writeln("</table>");
document.writeln("</body>");
document.writeln("</html>");
}

function submitsearch(){
	frm = document.searchForm;
	if (frm.queryStringhome.value.length>0) {
		var filter  = /^([a-zA-Z0-9_])/;
		var rtn = filter.test(frm.queryStringhome.value);
		if (rtn == false) {
			alert("Query string is invalid!\n(Note: Do not enter special characters.)");
			frm.queryStringhome.focus();
		} else {
			frm.action="/web/en/search/web_search_process_home.jsp";	
			frm.submit();
		}							
	} else {
		alert("Query string is not empty!");
	}
	return true;
}
function Quicklaunch(frm) {
	frm.action = "/web/en/everything/"+ frm.quickLink.value +".jsp"
	frm.submit();
}
function clearTextHome() {
	frm = document.searchForm;
	frm.queryStringhome.value="";
}
