

function Preview()
{
  var TestWin=open('','','');
  TestWin.document.open('text/html','replace');
  TestWin.document.write(code.value);
  TestWin.document.close();
}
function runEx(cod1)  {
	 cod=document.getElementById(cod1)
	  var code=cod.value;
	  if (code!=""){
		  var newwin=window.open('','','');  
		  newwin.opener = null 
		  newwin.document.write(code);  
		  newwin.document.close();
	}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function JM_cc(ob){
var obj=MM_findObj(ob); if (obj) { 
obj.select();js=obj.createTextRange();js.execCommand("Copy");}
}
function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

//Áí´æ´úÂë
function doSave(obj) {
	var winname = window.open('', '_blank', 'top=10000');
	winname.document.open('text/html', 'replace');
	winname.document.writeln(obj.value);
	winname.document.execCommand('saveas','','code.htm');
	winname.close();
}

function doZoom(n){document.getElementById("content_zw").style.fontSize=n+"px";}

function change_top(tnum){
	if(tnum){
		for(var i=1;i<3;i++){
			document.getElementById("bt_top_"+i).className="right_1";
			document.getElementById("div_top_"+i).style.display="none";
		}
		document.getElementById("bt_top_"+tnum).className="right_2";
		document.getElementById("div_top_"+tnum).style.display="";
	}
}
function change_top2(tnum){
	if(tnum){
		for(var i=3;i<5;i++){
			document.getElementById("bt_top_"+i).className="right_1";
			document.getElementById("div_top_"+i).style.display="none";
		}
		document.getElementById("bt_top_"+tnum).className="right_2";
		document.getElementById("div_top_"+tnum).style.display="";
	}
}
function change_top3(tnum){
	if(tnum){
		for(var i=5;i<7;i++){
			document.getElementById("bt_top_"+i).className="right_1";
			document.getElementById("div_top_"+i).style.display="none";
		}
		document.getElementById("bt_top_"+tnum).className="right_2";
		document.getElementById("div_top_"+tnum).style.display="";
	}
}



document.write("<script src='http://s74.cnzz.com/stat.php?id=232625&web_id=232625&show=pic' language='JavaScript' charset='gb2312'></script>")

