
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 InsteadPic_Menu(Pid,Purl)
{
	Pid.src=Purl;
}

function ShowDiv(divName)
{
	document.all(divName).style.visibility='visible';
}
function HideDiv(divName)
{
	document.all(divName).style.visibility='hidden';
}

/* 弹出窗口显示图片 */
function jShowPhoto(url) {
	if (!url)
		url = "show_photo.html";
    else
        url = "show_photo.html#" + url;
	window.open(url, 'ShowPhoto', 'width=150, height=50, resizable=no, scrollbars=no, top=0');
}

// 页面顶部  DirID(0.根目录，1.二级目录)
function Show_Head(MID){

	//var Dirchr = "";
	//if (DirID == 1) { Dirchr = "../" ; }
	//else { Dirchr = "" ; }

	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=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("  <tr>");
document.writeln("    <td width=\"250\"><img src=\"images/head_pic_01.gif\" width=\"250\" height=\"101\"></td>");
document.writeln("    <td width=\"510\"><img src=\"images/head_pic_02.gif\" width=\"510\" height=\"101\"></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td colspan=\"2\"><img src=\"images/head_pic_03.gif\" width=\"760\" height=\"50\" border=\"0\" usemap=\"#Map_Menu\"></td>");
document.writeln("  </tr>");
document.writeln("</table>");
document.writeln("<map name=\"Map_Menu\">");
document.writeln("  <area shape=\"rect\" coords=\"517,2,620,20\" href=\"download.htm\">");
document.writeln("  <area shape=\"rect\" coords=\"379,2,489,20\" href=\"contacts.htm\">");
document.writeln("  <area shape=\"rect\" coords=\"31,6,94,24\" href=\"index.htm\">");
document.writeln("  <area shape=\"rect\" coords=\"255,2,354,20\" href=\"aboutus.htm\">");
document.writeln("</map>");
document.writeln("<br>");

}

// 页面底部
function Show_Foot(){

document.writeln("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"images/foot_bg_01.gif\">");
document.writeln("  <tr>");
document.writeln("    <td width=\"229\" height=\"5\"></td>");
document.writeln("    <td width=\"470\"></td>");
document.writeln("    <td width=\"61\"></td>");
document.writeln("  </tr>");
document.writeln("  <tr valign=\"top\">");
document.writeln("    <td height=\"90\"><table width=\"88%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("      <tr>");
document.writeln("        <td height=\"15\"></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td class=\"Text7pt\">Copyright 2004 S.H.T. Electronic<br>");
document.writeln("          Technology Co., Ltd.</td>");
document.writeln("      </tr>");
document.writeln("    </table></td>");
document.writeln("    <td width=\"470\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#000000\">");
document.writeln("      <tr>");
document.writeln("        <td height=\"85\" valign=\"top\" bgcolor=\"#BFD3DF\"><table width=\"95%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("          <tr>");
document.writeln("            <td height=\"15\"></td>");
document.writeln("          </tr>");
document.writeln("          <tr>");
document.writeln("            <td height=\"25\" valign=\"top\" class=\"Text7pt\"><strong><a href=\"index.htm\" class=\"a1\">Home</a><img src=\"images/clarity_pic.gif\" width=\"12\" height=\"1\">|<img src=\"images/clarity_pic.gif\" width=\"12\" height=\"1\"><a href=\"aboutus.htm\" class=\"a1\">About Us</a><img src=\"images/clarity_pic.gif\" width=\"12\" height=\"1\">|<img src=\"images/clarity_pic.gif\" width=\"12\" height=\"1\"><a href=\"contacts.htm\" class=\"a1\">Contact Us</a><img src=\"images/clarity_pic.gif\" width=\"12\" height=\"1\">|<img src=\"images/clarity_pic.gif\" width=\"12\" height=\"1\"><a href=\"download.htm\" class=\"a1\">Download</a></strong></td>");
document.writeln("          </tr>");
document.writeln("          <tr>");
document.writeln("            <td class=\"Text7pt\">Tel: 86-755-82358132/852-81012165 <img src=\"images/clarity_pic.gif\" width=\"10\" height=\"1\"> Fax : 86-755-82358134/852-26776057<br>");
document.writeln("              E-mail: <a href=\"mailto:sales@rfproducts.com.cn\">sales@rfproducts.com.cn</a></td>");
document.writeln("          </tr>");
document.writeln("        </table></td>");
document.writeln("      </tr>");
document.writeln("    </table></td>");
document.writeln("    <td width=\"61\">&nbsp;</td>");
document.writeln("  </tr>");
document.writeln("</table>");
document.writeln("<br>");

}

// 页面左部
function Show_Left(){

document.writeln("	<table width=\"205\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"2\">");
document.writeln("      <tr>");
document.writeln("        <td><img src=\"images/left_products_title.gif\" width=\"205\" height=\"22\"></td>");
document.writeln("      </tr>");
//document.writeln("      <tr>");
//document.writeln("        <td><a href=\"video_color_corrector.htm\"><img src=\"images/left_products_06.gif\" width=\"205\" height=\"23\" border=\"0\"></a></td>");
//document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td><a href=\"power_inverter.htm\"><img src=\"images/left_products_07.gif\" width=\"205\" height=\"23\" border=\"0\"></a></td>");
document.writeln("      </tr>");

document.writeln("      <tr>");
document.writeln("        <td><a href=\"tv_tuner.htm\"><img src=\"images/left_products_03.gif\" width=\"205\" height=\"23\" border=\"0\"></a></td>");
document.writeln("      </tr>");
//document.writeln("      <tr>");
//document.writeln("        <td><a href=\"wireless_security_monitor.htm\"><img src=\"images/left_products_04.gif\" width=\"205\" height=\"23\" border=\"0\"></a></td>");
//document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td><a href=\"tv_card.htm\"><img src=\"images/left_products_05.gif\" width=\"205\" height=\"23\" border=\"0\"></a></td>");
document.writeln("      </tr>");

document.writeln("      <tr>");
document.writeln("        <td><a href=\"rf_modulator.htm\"><img src=\"images/left_products_02.gif\" width=\"205\" height=\"23\" border=\"0\"></a></td>");
document.writeln("      </tr>");

document.writeln("      <tr>");
document.writeln("        <td><a href=\"digital_video_stabilizer.htm\"><img src=\"images/left_products_01.gif\" width=\"205\" height=\"23\" border=\"0\"></a></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td><a href=\"electric_hair_clippe.htm\"><img src=\"images/left_products_08.gif\" width=\"205\" height=\"23\" border=\"0\"></a></td>");
document.writeln("      </tr>");
document.writeln("    </table>");
document.writeln("    <br><br>");
document.writeln("	<table width=\"205\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"2\">");
document.writeln("      <tr>");
document.writeln("        <td align=center><a href=\"http://stores.ebay.com/M2C-Sales-Online\" target=\"_blank\"><img src=\"images/m2c_sales_online.gif\" border=\"0\"></a><br><a href='http://stores.ebay.com/M2C-Sales-Online' target='_blank'>Buy sample here</a></td>");
document.writeln("      </tr>");
document.writeln("    </table>");

}