	function hjry()
	{
			one.innerText='محرم';
			two.innerText='صفر';
			three.innerText='ربيع الأول';
			four.innerText='ربيع الاخر';
			five.innerText='جمادى الأولى';
			six.innerText='جمادى الأخيرة';
			seven.innerText='رجب';
			eight.innerText='شعبان';
			nine.innerText='رمضان';
			ten.innerText='شوال';
			eleven.innerText='ذو القعدة';
			twelve.innerText='ذو الحجة';
			document.form1.year_type.value='hjry_year';
			toggleT('num1','h');
			toggleT('num2','s');
			td2.style.backgroundColor = '#F37B07'; td1.style.backgroundColor = '#ECECEC'; hjry_font.color='#FFFFFF'; melady_font.color='#272727';
	}
		function melady()
	{				
			one.innerText='كانون2';
			two.innerText='شباط';
			three.innerText='اذار';
			four.innerText='نيسان';
			five.innerText='أيار';
			six.innerText='حزيران';
			seven.innerText='تموز';
			eight.innerText='اب';
			nine.innerText='أيلول';
			ten.innerText='تشرين1';
			eleven.innerText='تشرين2';
			twelve.innerText='كانون1';
			document.form1.year_type.value='melady_year';
			toggleT('num1','s');
			toggleT('num2','h');
			td1.style.backgroundColor = '#F37B07'; td2.style.backgroundColor = '#ECECEC'; melady_font.color='#FFFFFF'; hjry_font.color='#272727';
	}
	function en_hjry()
	{
			one.innerText='Muharram';
			two.innerText='Safar';
			three.innerText='Rabi Al-Awwal';
			four.innerText='Rabi Al-Akhar';
			five.innerText='Jumada Al-Awwal';
			six.innerText='Jumada Al-Akhirah';
			seven.innerText='Rajab';
			eight.innerText='Shaaban';
			nine.innerText='Ramadan';
			ten.innerText='Shawwal';
			eleven.innerText='Dhul-Qadah';
			twelve.innerText='Dhul-Hijjah';
			document.form1.year_type.value='hjry_year';
			toggleT('num1','h');
			toggleT('num2','s');
			td2.style.backgroundColor = '#F37B07'; td1.style.backgroundColor = '#ECECEC'; hjry_font.color='#FFFFFF'; melady_font.color='#272727';
	}
		function en_melady()
	{				
			one.innerText='January';
			two.innerText='February';
			three.innerText='March';
			four.innerText='April';
			five.innerText='May';
			six.innerText='June';
			seven.innerText='July';
			eight.innerText='August';
			nine.innerText='September';
			ten.innerText='October';
			eleven.innerText='November';
			twelve.innerText='December';
			document.form1.year_type.value='melady_year';
			toggleT('num1','s');
			toggleT('num2','h');
			td1.style.backgroundColor = '#F37B07'; td2.style.backgroundColor = '#ECECEC'; melady_font.color='#FFFFFF'; hjry_font.color='#272727';
	}
	function color(selected){
			selected.color='#F37B07';
	}
	function unset_color(){
			
			c1.color='#000000';c2.color='#000000';c3.color='#000000';c4.color='#000000';
			c5.color='#000000';c6.color='#000000';c7.color='#000000';c8.color='#000000';
			c9.color='#000000';c10.color='#000000';c11.color='#000000';c12.color='#000000';
	}
	function subm(num){
			
			document.form1.month_num.value=num;
			document.form1.submit();
	}
	function choose_melady_year(){
			document.form1.month_num.value='all_melady_months';
			document.form1.year_type.value='melady_year';
			document.form1.submit();
	}
	function choose_hjry_year(){
			document.form1.month_num.value='all_hjry_months';
			document.form1.year_type.value='hjry_year';
			document.form1.submit();
	}
	
	function toggleT(_w,_h) {
			if (document.all) { // is IE
					if (_h=='s') eval("document.all."+_w+".style.display='block';");
					if (_h=='h') eval("document.all."+_w+".style.display='none';");
			} 
			else { // is NS? 
					if (_h=='s') eval("document.layers['"+_w+"'].visibility='show';");
					if (_h=='h') eval("document.layers['"+_w+"'].visibility='hide';");
			}
	}