$ksm->addParent("root", "company", "Company", NULL, true);
$ksm->addChild("company", "about", "About Us", 'javascript:add_tab("1.php","first")');
$ksm->addChild("company", "news", "Company News", 'javascript:add_tab("2.php","second")');
$ksm->addChild("company", "contact", "Contact us");
$ksm->addParent("root", "products", "Products");
$ksm->addChild("products", "koolajax", "KoolAjax");
$ksm->addChild("products", "kooltreeview", "KoolTreeView");
$ksm->addChild("products", "KoolSlideMenu", "KoolSlideMenu");
$ksm->addParent("root", "services", "Services");
$ksm->addChild("services", "outsourcing", "Out-sourcing");
$ksm->addChild("services", "freelancer", "Free-lancer");
$ksm->singleExpand = true;
$ksm->width = "200px";
$style_select = "bluearrow";
$ksm->styleFolder = $KoolControlsFolder . "KoolSlideMenu/styles/{$style_select}";
echo $ksm->render();
require $KoolControlsFolder . "/KoolAjax/koolajax.php";
$koolajax->scriptFolder = $KoolControlsFolder . "/KoolAjax";
echo $koolajax->Render();
require $KoolControlsFolder . "/KoolTabs/kooltabs.php";
$kts = new KoolTabs("kts");
$kts->scriptFolder = $KoolControlsFolder . "/KoolTabs";
$kts->styleFolder = "outlook";
$kts->addtab("root", "main_page", "Main Page");
echo $kts->Render();
?>

<div id ="pg"></div>

<script type="text/javascript">
    var buffer = {};
$ksm->addParent("root", "step2", "<span class='hid' id='wstep2' >第二步 : 用户基本资料 </span>");
$ksm->addPanel("step2", "Pstep2", Step_2());
$ksm->singleExpand = true;
$ksm->width = "100%";
$regisForm = new UpdatePanel("regisForm");
$regisForm->setLoading("../../KoolPHPSuite/KoolControls/KoolAjax/loading/1.gif", "white", 50);
//  $stepDone = ( isset( $_POST["task"] ) && $_POST[ "task" ] == "done" ) ? true : false  ;
$return = ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <link rel="icon" href="images/StuReg/favicon.ico" type="image/x-icon" />
                <link href="css/common.css" rel="stylesheet" type="text/css" />
                <link href="css/StuReg.css" rel="stylesheet" type="text/css" />
                <link rel="stylesheet" href="jquery-ui/development-bundle/themes/base/jquery.ui.all.css" />
                <script type="text/javascript" src="script/jquery.js"></script> 
                <script type="text/javascript" src="script/common.js"></script>
                <script type="text/javascript" src="script/StuReg.js"></script>
                ' . $ksm->render() . '<script type="text/javascript">
                            ksm.registerEvent("OnBeforeExpand",OnBeforeExpand_handle);
                    </script>

                    ';
$regisForm->cssclass = "cssRegisForm";
$regisForm->content = $return;
echo $koolajax->render();
echo $regisForm->render();
?>
<script src="jquery-ui/development-bundle/jquery-1.9.0.js"></script>
<script src="jquery-ui/development-bundle/ui/jquery.ui.core.js"></script>
<script src="jquery-ui/development-bundle/ui/jquery.ui.widget.js"></script>      
<script src="jquery-ui/development-bundle/ui/jquery.ui.datepicker.js"></script>
<script type="text/javascript">
    $("#datepicker").datepicker({