// JavaScript Document
function GetObj(objName){
			if(document.getElementById){
				return eval('document.getElementById("' + objName + '")');
			}else if(document.layers){
				return eval("document.layers['" + objName +"']");
			}else{
				return eval('document.all.' + objName);
			}
		}
		function Tab01(index01,flag01){
			for(var i=0;i<9;i++){/* 最多支持9个标签 */
				if(GetObj("con0" + flag01 + "-" + i)&&GetObj("m0" + flag01 + "-"+i)){
					GetObj("con0" + flag01 + "-"+i).style.display = 'none';
					GetObj("m0" + flag01 + "-"+i).className = "";
				}
			}
			if(GetObj("con0" + flag01 + "-"+index01)&&GetObj("m0" + flag01 + "-"+index01)){
				GetObj("con0" + flag01 + "-"+index01).style.display = 'block';
				GetObj("m0" + flag01 + "-"+index01).className = "cur";
			}
		}
		
		function Tab02(index01,flag01){
			for(var i=0;i<9;i++){/* 最多支持9个标签 */
				if(GetObj("con0" + flag01 + "-" + i)&&GetObj("f0" + flag01 + "-"+i)){
					GetObj("con0" + flag01 + "-"+i).style.display = 'none';
					GetObj("f0" + flag01 + "-"+i).className = "";
				}
			}
			if(GetObj("con0" + flag01 + "-"+index01)&&GetObj("f0" + flag01 + "-"+index01)){
				GetObj("con0" + flag01 + "-"+index01).style.display = 'block';
				GetObj("f0" + flag01 + "-"+index01).className = "cur";
			}
		}
		
		function Tab03(index01,flag01){
			for(var i=0;i<9;i++){/* 最多支持9个标签 */
				if(GetObj("con0" + flag01 + "-" + i)&&GetObj("d0" + flag01 + "-"+i)){
					GetObj("con0" + flag01 + "-"+i).style.display = 'none';
					GetObj("d0" + flag01 + "-"+i).className = "";
				}
			}
			if(GetObj("con0" + flag01 + "-"+index01)&&GetObj("d0" + flag01 + "-"+index01)){
				GetObj("con0" + flag01 + "-"+index01).style.display = 'block';
				GetObj("d0" + flag01 + "-"+index01).className = "cur";
			}
		}
//
function DomainRegType(id,type)
{
  var domaninbig5=document.getElementById("big5");
  var domaningtype=document.getElementById("freehosttype");
  var domaninencode=document.getElementById("type_encode");
  domaningtype.value=id;
  if(id==1)
  {
	  domaninbig5.disabled=false;
	  domaninencode.disabled=true;
  }
  if(id==2)
  {
	  domaninbig5.disabled=true;
	  domaninencode.disabled=false;
  }

  var objs = document.domainform.getElementsByTagName("input");
  for(var i=0; i<objs.length; i++) 
  {
    if(objs[i].type.toLowerCase() == "checkbox")
	  {
		if(objs[i].alt==type || objs[i].alt==id)
		{
		   objs[i].disabled = false;
		}
		else
		{
			objs[i].disabled = true;
		}
	  }
  }
  
}
//
function flashad(){
var interval_time=5 ;
var focus_width=253
var focus_height=205
var text_height=22
var text_mtop = 2;
var text_lm = 10;
var textmargin = text_mtop+"|"+text_lm;
var textcolor = "#000000|0xFF0000";
var text_align= 'center'; 
var swf_height = focus_height+text_height+text_mtop; 
var text_size = 12;
var borderStyle="1|0x000000|0";
var pics='images/flashad/20110128.jpg|http://www.100te.cn/new/images/img/009.jpg|images/flashad/001.jpg|images/flashad/2.jpg|images/flashad/4.jpg'; 
var links='||||'; 
var texts='给力2011,空间活动大放送|海外主机空间上线|中秋国庆两节活动|国外空间全面上线|网站推广';
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
 document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/flashad/hot_new.swf"> <param name="quality" value="high"><param name="Wmode" value="transparent">');
 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'">');
 document.write('<embed src="images/flashad/hot_new.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&textmargin='+textmargin+'&textcolor='+textcolor+'&borderstyle='+borderStyle+'&text_align='+text_align+'&interval_time='+interval_time+'&textsize='+text_size+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
}
function hostflash(){
	imgUrl1="/images/flashad/host_lb_1.jpg";
imgtext1=""
imgLink1=escape("#","_blank");
imgUrl2="/images/flashad/host_lb_2.jpg";
imgtext2=""
imgLink2=escape("#","_blank");
 var focus_width=670
 var focus_height=220
 var text_height=0
 var swf_height = focus_height+text_height
 
 var pics=imgUrl1+"|"+imgUrl2
 var links=imgLink1+"|"+imgLink2
 var texts=imgtext1+"|"+imgtext2
 
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
 document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/images/flashad/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#Ffffff">');
 document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
 document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
 document.write('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
	}
