
function openPopup( url , name , xs, ys ){
	    window.open(url ,name,'location=no, directories=no,resizable=no, status=no, toolbar=no, menubar=no, width='+xs+' , height='+ys+', scrollbars=no')
} 

function openWIN( url , name , xs, ys ){
	window.open(url ,name,'location=no, directories=no,resizable=no, status=no, toolbar=no, menubar=no, width='+xs+' , height='+ys+', scrollbars=yes'); 
}

function AreYouOK(ms)
 {
  return confirm(ms)
 }

function CheckLogin(myform)
{
	if(myform.username.value=="")
	{
		alert('Pls fill in User.');
		myform.username.focus();
		return false;
	}
	if(myform.password.value=="")
	{
		alert('Pls fill in Password');
		myform.password.focus();
		return false;
	}
	return true;
}


function InsteadPic_Menu(Pid,Purl)
{
	Pid.src=Purl;
}


// Ò³Ãæ¶¥²¿
function Show_Head(MID){

	var i;
	var MMM = new Array()

	for (i=1; i<7; i++)
	{
	if (MID == i) { MMM[i] = "_on" ;}
	else { MMM[i] = "" ;}
	}

document.writeln("<table width=\"776\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("  <tr valign=\"top\"> ");
document.writeln("    <td width=\"9\"><img src=\"images/bg_top_left.gif\" width=\"9\" height=\"227\"></td>");
document.writeln("    <td width=\"758\">");
document.writeln("	  <table width=\"758\" height=\"58\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"images/top_bg.gif\">");
document.writeln("        <tr> ");
document.writeln("		  <td width=\"1\"><img src=\"images/top_left.gif\" width=\"1\" height=\"58\"></td>");
// document.writeln("          <td width=\"550\"><img src=\"images/title.gif\" width=\"226\" height=\"58\"></td>");

document.writeln("          <td width=\"550\">");
document.writeln("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH=\"500\" HEIGHT=\"58\">");
document.writeln(" <PARAM NAME=movie VALUE=\"images/title.swf\"> <PARAM NAME=quality VALUE=high><param name=wmode value=transparent>");
document.writeln(" <EMBED src=\"images/title.swf\" quality=high WIDTH=\"500\" HEIGHT=\"58\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED>");
document.writeln("</OBJECT>	");
document.writeln("          </td>");

document.writeln("		   <FORM METHOD=get ACTION='search.asp'>");
document.writeln("          <td width=\"206\"><img src=\"images/t_search.gif\" width=\"36\" height=\"13\" align=\"absmiddle\"> ");
document.writeln("            &nbsp;");
document.writeln("            <input name=\"keyword\" type=\"text\" size=\"14\">");
document.writeln("			&nbsp;");
document.writeln("            <INPUT TYPE='image' SRC='images/arrow_black_bg.gif' align=\"absmiddle\"></td>");
document.writeln("		   </form>");
document.writeln("          <td width=\"1\"><img src=\"images/top_right.gif\" width=\"1\" height=\"58\"></td>");
document.writeln("        </tr>");
document.writeln("      </table>");
document.writeln("      <table width=\"758\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("        <tr> ");
document.writeln("          <td width=\"71\"><a href=\"index.asp\"><img id=\"TopMenu01\" src=\"images/topmenu_1" + MMM[1] + ".gif\" width=\"71\" height=\"34\" border=\"0\" onMouseOut=\"InsteadPic_Menu(TopMenu01,'images/topmenu_1" + MMM[1] + ".gif')\" onMouseOver=\"InsteadPic_Menu(TopMenu01,'images/topmenu_1_on.gif')\"></a></td>");
document.writeln("          <td width=\"91\"><a href=\"aboutus.asp\"><img id=\"TopMenu02\" src=\"images/topmenu_2" + MMM[2] + ".gif\" width=\"91\" height=\"34\" border=\"0\" onMouseOut=\"InsteadPic_Menu(TopMenu02,'images/topmenu_2" + MMM[2] + ".gif')\" onMouseOver=\"InsteadPic_Menu(TopMenu02,'images/topmenu_2_on.gif')\"></a></td>");
document.writeln("          <td width=\"92\"><a href=\"newproduct.asp\"><img id=\"TopMenu03\" src=\"images/topmenu_3" + MMM[3] + ".gif\" width=\"92\" height=\"34\" border=\"0\" onMouseOut=\"InsteadPic_Menu(TopMenu03,'images/topmenu_3" + MMM[3] + ".gif')\" onMouseOver=\"InsteadPic_Menu(TopMenu03,'images/topmenu_3_on.gif')\"></a></td>");
document.writeln("          <td width=\"128\"><a href=\"inquiry_basket.asp\"><img id=\"TopMenu04\" src=\"images/topmenu_4" + MMM[4] + ".gif\" width=\"128\" height=\"34\" border=\"0\" onMouseOut=\"InsteadPic_Menu(TopMenu04,'images/topmenu_4" + MMM[4] + ".gif')\" onMouseOver=\"InsteadPic_Menu(TopMenu04,'images/topmenu_4_on.gif')\"></a></td>");
document.writeln("          <td width=\"104\"><a href=\"contactus.asp\"><img id=\"TopMenu05\" src=\"images/topmenu_5" + MMM[5] + ".gif\" width=\"104\" height=\"34\" border=\"0\" onMouseOut=\"InsteadPic_Menu(TopMenu05,'images/topmenu_5" + MMM[5] + ".gif')\" onMouseOver=\"InsteadPic_Menu(TopMenu05,'images/topmenu_5_on.gif')\"></a></td>");
document.writeln("          <td width=\"114\"><a href=\"membership.asp\"><img id=\"TopMenu06\" src=\"images/topmenu_6" + MMM[6] + ".gif\" width=\"114\" height=\"34\" border=\"0\" onMouseOut=\"InsteadPic_Menu(TopMenu06,'images/topmenu_6" + MMM[6] + ".gif')\" onMouseOver=\"InsteadPic_Menu(TopMenu06,'images/topmenu_6_on.gif')\"></a></td>");
document.writeln("          <td width=\"158\"><img src=\"images/topmenu_7.gif\" width=\"158\" height=\"34\"></td>");
document.writeln("        </tr>");
document.writeln("      </table>");
}
function Show_Login(){
document.writeln("      <table width=\"758\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"images/bg_green.gif\">");
document.writeln("        <tr> ");
document.writeln("          <td width=\"20\">&nbsp;</td>");
document.writeln("          <td width=\"328\"><font color=\"#FFFFFF\">User ");
document.writeln("            <input name=\"textfield2\" type=\"text\" size=\"10\">");
document.writeln("            Password ");
document.writeln("            <input name=\"textfield3\" type=\"text\" size=\"10\">");
document.writeln("            <img src=\"images/arrow_green_bg.gif\" width=\"16\" height=\"16\" align=\"absmiddle\"> ");
document.writeln("            </font></td>");
document.writeln("          <td width=\"410\"> ");
document.writeln("            <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">");
document.writeln("              <tr> ");
document.writeln("                <td height=\"10\"><img src=\"images/icon_reg.gif\" width=\"16\" height=\"14\" align=\"absmiddle\"> ");
document.writeln("                  <a href=\"reg.asp\"><font color=\"#FFFFFF\">User Register</font></a></td>");
document.writeln("              </tr>");
document.writeln("              <tr>");
document.writeln("                <td height=\"10\"><font color=\"#CCCCCC\" class=\"Text10px\">Registered ");
document.writeln("                  user can receive new products update and new product alert by email.</font></td>");
document.writeln("              </tr>");
document.writeln("            </table></td>");
document.writeln("        </tr>");
document.writeln("      </table>");
}
function Show_Banner()	{
document.writeln("      <table width=\"758\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("        <tr> ");
document.writeln("          <td width=\"279\" valign=\"top\" background=\"images/bg_black.gif\"> ");
document.writeln("            <table width=\"96%\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\">");
document.writeln("              <tr> ");
document.writeln("                <td height=\"25\" valign=\"top\"><font color=\"#CCCCCC\" class=\"105Vb\">Welcome ");
document.writeln("                  !</font></td>");
document.writeln("              </tr>");
document.writeln("              <tr>");
document.writeln("                <td><font color=\"#CCCCCC\" class=\"Text8pt\">Talentt Production Enterprise ");
document.writeln("                  Ltd.,<br>");
document.writeln("                  supplys latest gift, toys and consumer<br>");
document.writeln("                  electronic new products from China.</font></td>");
document.writeln("              </tr>");
document.writeln("            </table>");
document.writeln("          </td>");
document.writeln("          <td width=\"479\"><img src=\"images/product_p.gif\" width=\"479\" height=\"95\"></td>");
document.writeln("        </tr>");
document.writeln("      </table></td>");
document.writeln("    <td width=\"9\"><img src=\"images/bg_top_right.gif\" width=\"9\" height=\"227\"></td>");
document.writeln("  </tr>");
document.writeln("</table>");

}

// Ò³Ãæµ×²¿
function Show_Foot(){

document.writeln("<table width=\"776\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("  <tr> ");
document.writeln("    <td width=\"9\" background=\"images/bg_left.gif\"></td>");
document.writeln("    <td width=\"758\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("        <tr> ");
document.writeln("          <td height=\"1\" bgcolor=\"#FFFFFF\"></td>");
document.writeln("        </tr>");
document.writeln("        <tr> ");
document.writeln("          <td height=\"5\" bgcolor=\"#186818\"></td>");
document.writeln("        </tr>");
document.writeln("        <tr> ");
document.writeln("          <td height=\"1\" bgcolor=\"#FFFFFF\"></td>");
document.writeln("        </tr>");
document.writeln("        <tr>");
document.writeln("          <td height=\"28\" align=\"center\" bgcolor=\"#BEBEBE\"><strong><a href=\"index.asp\">Home</a> ");
document.writeln("            &nbsp;|&nbsp; <a href=\"aboutus.asp\">About Us</a> &nbsp;|&nbsp; <a href=\"contactus.asp\">Contact ");
document.writeln("            Us</a> &nbsp;|&nbsp; <a href=\"inquiry_basket.asp\">Inquiry Basket</a></strong></td>");
document.writeln("        </tr>");
document.writeln("      </table></td>");
document.writeln("    <td width=\"9\" background=\"images/bg_right.gif\"></td>");
document.writeln("  </tr>");
document.writeln("</table>");
document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("  <tr> ");
document.writeln("    <td height=\"5\" bgcolor=\"#D7D7D7\"></td>");
document.writeln("  </tr>");
document.writeln("  <tr> ");
document.writeln("    <td height=\"1\" bgcolor=\"#FFFFFF\"></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td height=\"50\" bgcolor=\"#999999\" align=center><font color=#FFFFFF class=Text8pt>Copyright &copy 2003--2009 Talentt Production Enterprise Ltd,All rights reserved.</font></td>");
document.writeln("  </tr>");
document.writeln("</table>");

}



