//*********************************************************************************************     
 //公司规模  
 function getCompScaleIDs()     
 {     
    return new Array( '010','020','030','040','050','060','070','080');    
 }    
 function getCompScaleNames()    
 {    
    return new Array( '1-49人','50-99人','100-499人','500-999人','1000-2000人','2000-5000人','5000-10000人','10000人以上');    
 }
 function initCompScale(objName, id, label)
 {
    obj = document.getElementsByName(objName)[0];
    j = obj.options.length;    
    while( j-- )    
    {    
       obj.options[j] = null;    
    }    
    var aryIDs = getCompScaleIDs();    
    var aryNames = getCompScaleNames();  
    for( i=0 ; i<aryIDs.length ; i++ )    
    {    
       obj.options.add( new Option (aryNames[i],aryIDs[i]) );    
    } 
    if(id != null && label != null)
    {
        opt = new Option(label, id);
        try
        {
            obj.add(opt, obj.options[0]);
        }
        catch(ex)
        {
            obj.add(opt, 0);
        }
        obj.options[0].selected = true;
    }  
    
 }
 
 function GetCompScaleName(ind) 
 {
     var CompScaleIDs = getCompScaleIDs(ind);
     var CompScaleNames = getCompScaleNames(ind);
     for(i = 0; i < CompScaleIDs.length; i++)
     {
         if(CompScaleIDs[i] == ind)
         {
             return CompScaleNames[i];
         }
     }
     return null;
 }  