﻿var GradeArray ="幼儿,小一,小二,小三,小四,小五,小六,初一,初二,初三,高一,高二,高三,大一,大二,大三,大四,成人,其他".split (",");
var CourseArray = "语文,数学,英语,科学,物理,化学,生物,政治,历史,地理,心理,电脑,奥数,美术,钢琴,音乐,其他".split (",");
var LanguageArray = "汉语,英语,粤语,日语,法语,德语,俄语,方言,其他".split (",");
var CishiArray = "0.5,1,1.5,2,2.5,3,3.5,4,4.5,5,其他".split (",");
var CixinArray = "20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,其他".split (",");
var stuWeekTimes="1,2,3,4,5,6,7,8,9,10,11,12".split (",");

function set_select_options(select_name, array , selected_option )
{
    var select_num ;
	var i ;
	select_num=array.length+1;
	
	select_name.options.length = select_num ;
	select_name.selectedIndex = 0 ;
	for( i=1 ; i<select_num ; i++ )
	{
		select_name.options[i].value = array[(i-1)] ;
		select_name.options[i].text = array[(i-1)] ;
		
		if( array[(i-1)] == selected_option )
			select_name.selectedIndex = i ;	
	}
}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

    
   String.prototype.Trim = function() 
    { 
        return this.replace(/(^\s*)|(\s*$)/g, ""); //去掉左右空格
    }  
    function isNull(obj){
        if(obj.value.replace(/(^\s*)|(\s*$)/g, '').length<=0)
        {//为空
            return true;
        }
        else{//不为空
            return false;
        }
    }