//Array declaration

var m_array_course_exam;
var m_array_course_stream;
var m_array_stream_college;
var m_array_college_stream;  //new added
var m_row,m_col;

var m_str_None;
m_str_None = "------------------------------------------None------------------------------------------";




//Inserting data in a Array
function add_data_stream_college(row,col,m_str)
{
	m_array_college_stream[row][col]=m_str;	
}


//function populate_stream  change here start

function create_array_stream(row,col)
{
	m_array_college_stream=new Array(row);
	for(m_row=0;m_row<row;m_row++)
	{
		m_array_college_stream[m_row]=new Array(col);	
	}
}


function populate_college_stream(combo,filter_val,filter_col,col_val,col_txt)
{
 var nCount;
	var m_val;

	//--Counting no of record
	nCount=1;
	
	for(m_row=0;m_row<m_array_college_stream.length;m_row++)
	{
            
		m_val=m_array_college_stream[m_row][filter_col];

		if(m_val==filter_val)
		{
              
			nCount++;
		}
	}
	combo.length=0;
	combo.length=nCount;

	//--Populating filter value	
	nCount=0
	combo.options[nCount].value="0";
	combo.options[nCount].text="Select Stream";
	nCount++;
	for(m_row=0;m_row<m_array_college_stream.length;m_row++)
	{
		m_val=m_array_college_stream[m_row][filter_col];
		if(m_val==filter_val)
		{
			combo.options[nCount].value=m_array_college_stream[m_row][col_val];
			combo.options[nCount].text=m_array_college_stream[m_row][col_txt];
			nCount++;
		}
	}

}

//change end here 



