document.write("<option selected='selected' value='none'>Select Operation</option>");
document.write("<optgroup label='mines'>");
document.write("<option value='main_1'>Rampura Agucha</option>");
document.write("<option value='main_2'>Sindesar Khurd</option>");
document.write("<option value='main_3'>Rajpura Dariba</option>");
document.write("<option value='main_4'>Zawar</option>");
document.write("</optgroup>");
document.write("<optgroup label='smelters'>");
document.write("<option value='main_5'>Chanderiya</option>");
document.write("<option value='main_6'>Debari</option>");
document.write("<option value='main_7'>Vizag</option>");
document.write("</optgroup>");
document.write("<optgroup label='power'>");
document.write("<option value='main_8'>Chanderiya</option>");
document.write("<option value='main_8'>Zawar</option>");
document.write("<option value='main_8'>Debari</option>");
document.write("<option value='main_8'>Samana Wind</option>");
document.write("<option value='main_8'>Gadag Wind</option>");
document.write("</optgroup>");
document.write("<optgroup label='research centre'>");
document.write("<option value='main_9'>Debari</option>");
document.write("</optgroup>");



function new_set(_id){
var get_id=document.getElementById(_id).value;
	if(get_id!="none"){
			var frst_num = get_id.indexOf('_');
			var last_num = get_id.length;
			var ac_num = get_id.substr(frst_num+1,last_num);
			var _w_n="wn"+ac_num;
			//the following script is for hiding layer contents and their laft nav
			for(var i=1; i<50; i++){
				var _w_n_="lyr"+i;
				if(document.getElementById(_w_n_)!=null){
					document.getElementById(_w_n_).style.visibility="hidden";
					}
				else{break;}
			}
			for(var i=1; i<50; i++){
				var _l_yr_="l_yr"+i;
				if(document.getElementById(_l_yr_)!=null){
					document.getElementById(_l_yr_).style.color='#666666';				
				}
				else{break;}
			}
			
			//the following script is for hiding layer contents and their laft nav
			for(var i=1; i<50; i++ ){
				var _main_="main_"+i;
				
				if(document.getElementById(_main_)!=null){
					document.getElementById(_main_).style.display='none';
				}
				else{break;}
		
			}

			document.getElementById(get_id).style.display='block';
			
			var BLyr_id = new Array('l_yr1','l_yr5','l_yr9','l_yr13','l_yr17','l_yr21','l_yr25','l_yr29','l_yr32' );
			for( x in BLyr_id ){
				document.getElementById(BLyr_id[x]).style.color='#055378';
				}

			init_dw_Scroll();
			
	}//end of if with value none
	var ttt=document.getElementById(_id).selectedIndex;
	
	for(var i=1; i<50; i++){
		var sel_ect="selct"+i;
		if(document.getElementById(sel_ect)!=null){
		document.getElementById(sel_ect).selectedIndex = ttt;
		
		}
		else{break;}
	}
}