﻿/*
* fck编译器
* 
**/
/*var oFCKeditor = new FCKeditor('content');
function G(){
		var elements=new Array();
		 for(var i=0;i<arguments.length;i++)
		 {
		  var element=arguments[i];
		  if(typeof element=='string')element=document.getElementById(element);
		  if(arguments.length==1)return element;elements.push(element);
		 };
		 return elements;
		};
	  function fck(id){
	   var codee;
		codee =G(id).innerHTML;
		var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
		sBasePath = "javascript/FCKeditor/";
		oFCKeditor.BasePath = sBasePath ;
		oFCKeditor.ToolbarSet = 'Basic';
		oFCKeditor.Width = '80%' ;
		oFCKeditor.Height = 250 ;
		oFCKeditor.Value = codee;
		oFCKeditor.Create() ;
        }*/
/*
* 跳转
* 
**/
 function countDown(secs){ 
 if(--secs>0){
     setTimeout("countDown("+secs+")",1000); 
     }else{
   location.href="index.php"; 
     }
 }
  function countDown2(secs){ 
  if(--secs>0){
     setTimeout("countDown2("+secs+")",1000); 
     }else{
  history.go(-1); 
     }
 }
 
  function countDown3(secs,lo){ 
   if(--secs>0){
   	alert(1);
     setTimeout("countDown3("+secs+","+lo+")",1000); 
     }else{
    location.href=lo;
     }
 } 