
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


function openWIN(URL, w, h)
{
	var news=window.open(URL, '', 'width='+w+', height='+h+', resizable=yes,scrollbars=yes');
	news.focus();
}

//提示确认框
function AreYouOK(ms)
 {
  return confirm(ms)
 }


//LOGO及按钮
function top()
{
<!--
document.writeln("<table width=\"100%\" height=\"71\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("                  <tr>");
document.writeln("                    <td width=\"150\"><img src=\"images/yoboo_logo.gif\"></td>");
document.writeln("                    <td align=\"right\"><table width=\"90%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                        <tr>");
document.writeln("                          <td><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                            <tr>");
document.writeln("                              <td width=\"15\"><img src=\"images/button_left.gif\" width=\"11\" height=\"31\"></td>");
document.writeln("                              <td valign=\"bottom\"><a href=\"index.html\" onMouseOver=\"MM_swapImage('Image1','','images/button_01_on.gif',0)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"images/button_01.gif\" name=\"Image1\" width=\"85\" height=\"34\" border=\"0\" id=\"Image1\"></a></td>");
document.writeln("                            </tr>");
document.writeln("                          </table></td>");
document.writeln("                          <td><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                            <tr>");
document.writeln("                              <td width=\"15\"><img src=\"images/button_left.gif\" width=\"11\" height=\"31\"></td>");
document.writeln("                              <td valign=\"bottom\"><a href=\"aboutus.html\" onMouseOver=\"MM_swapImage('Image2','','images/button_02_on.gif',0)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"images/button_02.gif\" name=\"Image2\" width=\"85\" height=\"34\" border=\"0\" id=\"Image2\"></a></td>");
document.writeln("                            </tr>");
document.writeln("                          </table></td>");
document.writeln("                          <td><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                            <tr>");
document.writeln("                              <td width=\"15\"><img src=\"images/button_left.gif\" width=\"11\" height=\"31\"></td>");
document.writeln("                              <td valign=\"bottom\"><a href=\"joinus.html\" onMouseOver=\"MM_swapImage('Image3','','images/button_03_on.gif',0)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"images/button_03.gif\" name=\"Image3\" width=\"58\" height=\"34\" border=\"0\" id=\"Image3\"></a></td>");
document.writeln("                            </tr>");
document.writeln("                          </table></td>");
document.writeln("                          <td><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                            <tr>");
document.writeln("                              <td width=\"15\"><img src=\"images/button_left.gif\" width=\"11\" height=\"31\"></td>");
document.writeln("                              <td valign=\"bottom\"><a href=\"contacts.html\" onMouseOver=\"MM_swapImage('Image4','','images/button_04_on.gif',0)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"images/button_04.gif\" name=\"Image4\" width=\"58\" height=\"34\" border=\"0\" id=\"Image4\"></a></td>");
document.writeln("                            </tr>");
document.writeln("                          </table></td>");
document.writeln("                        </tr>");
document.writeln("                    </table></td>");
document.writeln("                  </tr>");
document.writeln("                  <tr bgcolor=\"#000000\">");
document.writeln("                    <td height=\"1\"></td>");
document.writeln("                    <td height=\"1\" align=\"right\"></td>");
document.writeln("                  </tr>");
document.writeln("              </table>");
//-->
}


//LOGO及按钮
function top2()
{
<!--
document.writeln("<table width=\"100%\" height=\"71\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("                  <tr>");
document.writeln("                    <td width=\"150\"><img src=\"images/yoboo_logo.gif\"></td>");
document.writeln("                    <td align=\"right\"><table width=\"90%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                        <tr>");
document.writeln("                          <td><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                            <tr>");
document.writeln("                              <td width=\"15\"><img src=\"images/button_left.gif\" width=\"11\" height=\"31\"></td>");
document.writeln("                              <td valign=\"bottom\"><a href=\"index.html\" onMouseOver=\"MM_swapImage('Image1','','images/button_01_on.gif',0)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"images/button_01.gif\" name=\"Image1\" width=\"85\" height=\"34\" border=\"0\" id=\"Image1\"></a></td>");
document.writeln("                            </tr>");
document.writeln("                          </table></td>");
document.writeln("                          <td><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                            <tr>");
document.writeln("                              <td width=\"15\"><img src=\"images/button_left.gif\" width=\"11\" height=\"31\"></td>");
document.writeln("                              <td valign=\"bottom\"><a href=\"aboutus.html\" onMouseOver=\"MM_swapImage('Image2','','images/button_02_on.gif',0)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"images/button_02.gif\" name=\"Image2\" width=\"85\" height=\"34\" border=\"0\" id=\"Image2\"></a></td>");
document.writeln("                            </tr>");
document.writeln("                          </table></td>");
document.writeln("                          <td><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                            <tr>");
document.writeln("                              <td width=\"15\"><img src=\"images/button_left.gif\" width=\"11\" height=\"31\"></td>");
document.writeln("                              <td valign=\"bottom\"><a href=\"joinus.html\" onMouseOver=\"MM_swapImage('Image3','','images/button_03_on.gif',0)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"images/button_03.gif\" name=\"Image3\" width=\"58\" height=\"34\" border=\"0\" id=\"Image3\"></a></td>");
document.writeln("                            </tr>");
document.writeln("                          </table></td>");
document.writeln("                          <td><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("                            <tr>");
document.writeln("                              <td width=\"15\"><img src=\"images/button_left.gif\" width=\"11\" height=\"31\"></td>");
document.writeln("                              <td valign=\"bottom\"><a href=\"contacts.html\" onMouseOver=\"MM_swapImage('Image4','','images/button_04_on.gif',0)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"images/button_04.gif\" name=\"Image4\" width=\"58\" height=\"34\" border=\"0\" id=\"Image4\"></a></td>");
document.writeln("                            </tr>");
document.writeln("                          </table></td>");
document.writeln("                        </tr>");
document.writeln("                    </table></td>");
document.writeln("                  </tr>");
document.writeln("                  <tr bgcolor=\"#000000\">");
document.writeln("                    <td height=\"1\"></td>");
document.writeln("                    <td height=\"1\" align=\"right\"></td>");
document.writeln("                  </tr>");
document.writeln("              </table>");
//-->
}



function copyright()
{
<!--
document.writeln("<table width=\"100%\"  border=\"0\" cellpadding=\"5\" cellspacing=\"0\" bgcolor=\"#BA0700\">");
document.writeln("                <tr>");
document.writeln("                  <td height=\"1\" bgcolor=\"#969696\"></td>");
document.writeln("                </tr>");
document.writeln("                <tr>");
document.writeln("                  <td align=\"center\" class=\"white_12px_en\">Copyright 2004-2005 &copy; <strong>www.yoboo.cn</strong>, All rights reservered.</td>");
document.writeln("                </tr>");
document.writeln("              </table>");
//-->
}

		/**************************************** not use
	function changeDisplay(srcId,decId,leftDivCount) {			
			show "more" part content of one mudle to another mudle,
			and not display the old mudle
			zhao feirong 2005.03.06
		
		if (decId == null || decId.length == 0) decId = "moreinfo";
		
		var objDec = document.getElementById(decId);
		var objSrc = document.getElementById(srcId);
		var objSrcMore = document.getElementById(srcId+"more");
		var objSrcNotMore = document.getElementById(srcId+"notmore");
		var left = "leftdiv",i;
		
		if (objDec != null && objSrc != null && objSrcMore != null && objSrcMore != null) {
			for (i = 0; i < leftDivCount; i++) {
				document.getElementById(left + i + "notmore").style.display="block";
				document.getElementById(left + i + "more").style.display="none";
			}
			objSrcMore.style.display = "block";
			objSrcNotMore.style.display = "none";
			objDec.innerHTML = objSrc.innerHTML; 
			//objSrc.style.display = "none";
		}
	}
		*******************************************/
	function showMore(templateName,widthPercent,isMore,infoNo,pageNo,newWin) {
		/*****
		window.open("more.jsp@templatename=" + templateName + 
					"&widthPercent=" + widthPercent + "&more=" + isMore 
					+ "&infono=" + infoNo + "&currentpageno=" + pageNo)
					//,"moreinfo","left=0,top=0,width=500,height=500");
		*************/
		formmore.templatename.value=templateName;
		formmore.widthPercent.value=widthPercent;
		formmore.more.value=isMore;
		formmore.infono.value=infoNo;
		formmore.currentpageno.value=pageNo;
		if (newWin == "yes") formmore.target="_blank";
		formmore.submit();
	}
	
	function setWindowMax() {
		//window.moveTo(0,0) ;
		//window.resizeTo(screen.width,screen.height);
		self.resizeTo(screen.availWidth+8,screen.availHeight+8);
		self.moveTo(-4,-4);
		
	}
