﻿function getIndexInfo(sName){
        var cert_option={ type : sName };
       jQuery.ajax({
            type:"POST",
            url:"company/getUserInfo.aspx",
            data:cert_option,
            success:function(msg){
                if(msg!=""){
                    if(sName=="person"){
                        jQuery('#pName').html(msg);
                    }
                    if(sName="company") {
                        jQuery('#cName').html(msg);
                    }
                }
            }
       });
    }
    
    function getInfo(sName){
        var cert_option={ type : sName };
       jQuery.ajax({
            type:"POST",
            url:"../company/getUserInfo.aspx",
            data:cert_option,
            success:function(msg){
                if(msg!=""){
                    if(sName=="person"){
                        jQuery('#pName').html(msg);
                    }
                    if(sName="company") {
                        jQuery('#cName').html(msg);
                    }
                }
            }
       });
    }
