<!--
	
	function clear_form_field (frm, fld, val) {
		eval ("var fval = document." + frm + "." + fld + ".value");
		if (fval == val) {
			eval ("document." + frm + "." + fld + ".value = ''");
		}
	}

	function map_on (idd) {
		all_off ('map');
		var on_map  = document.getElementById ('map_' + idd);
		var off_map = document.getElementById ('map');
		off_map.className = 'no_show';
		on_map.className  = 'show';
	}
	
	function all_off (who) {
		for (i = 1 ; i <= 41 ; i ++) {
			var off = document.getElementById (who + '_' + i);
			off.className = "no_show";
		}
	}
	
	function chg_img (img_name) {
		eval (document[img_name].src = new String("images/"+img_name+".gif"));
	}
	
	function chg_img_ov (img_name) {
		eval (document[img_name].src = new String("images/"+img_name+"_ov.gif"));
	}
	
	function chg_hover (a_name, w, r) {
		var g = document.getElementById (a_name);
		if (w == 1) {
			if (r == 1) {
				g.className = 'a_sec sec_hover';
			}
			else {
				g.className = 'a_sec a_sec_2 sec_hover';
			}
		}
		else {
			if (r == 1) {
				g.className = 'a_sec';
			}
			else {
				g.className = 'a_sec a_sec_2';
			}
		}
	}
	
	function chg_letters (w, l_one) {
		
		var arr_h = new Array (document.getElementById ('let_01'), document.getElementById ('let_02'), document.getElementById ('let_03'), document.getElementById ('let_04'), document.getElementById ('let_05'), document.getElementById ('let_06'));
		
		var arr_l = new Array ('&nbsp;','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z')
		
		//var l_one = document.ltr_form.letter_one.value;
		var x_one, val, i, j;
		
		if (w == 1) {	//	inapoi
			for (i=5 ; i>0 ; i--) {
				j = i - 1;
				arr_h[i].innerHTML = arr_h[j].innerHTML;
			}
			
			if (l_one == 0) {
				l_one = 26;
				val = '<a href="dictionar.php?item=' + arr_l[l_one] + '">' + arr_l[l_one] + '</a>';
			}
			else {
				l_one --;
				if (l_one == 0) {
					val = arr_l[l_one];
				}
				else {
					val = '<a href="dictionar.php?item=' + arr_l[l_one] + '">' + arr_l[l_one] + '</a>';
				}
			}
			document.ltr_form.letter_one.value = l_one;
			arr_h[0].innerHTML = val;
		}
		else {	//	inainte
			for (i=0 ; i<5 ; i++) {
				j = i + 1;
				arr_h[i].innerHTML = arr_h[j].innerHTML;
			}
			x_one = l_one;
			if (l_one == 21) {
				l_one ++;
				val = arr_l[0];
			}
			else {
				if (l_one == 26) {
					x_one = 5; 
					val = '<a href="dictionar.php?item=' + arr_l[x_one] + '">' + arr_l[x_one] + '</a>';
					l_one = 0;
				}
				else {
					if (l_one > 21) {
						if (l_one == 22) {x_one = 1;}
						if (l_one == 23) {x_one = 2;}
						if (l_one == 24) {x_one = 3;}
						if (l_one == 25) {x_one = 4;}
						val = '<a href="dictionar.php?item=' + arr_l[x_one] + '">' + arr_l[x_one] + '</a>';
						l_one ++;
					}
					else {
						l_one ++;
						x_one ++;
						x_one ++;
						x_one ++;
						x_one ++;
						x_one ++;
						x_one ++;
						val = '<a href="dictionar.php?item=' + arr_l[x_one] + '">' + arr_l[x_one] + '</a>';
					}
				}
			}
			document.ltr_form.letter_one.value = l_one;
			arr_h[5].innerHTML = val;
		}
	}
	
	function limit_char (limitField, limitCount, limitNum) {
		if (limitField.value.length > limitNum) {
			limitField.value = limitField.value.substring(0, limitNum);
		} else {
			limitCount.value = limitNum - limitField.value.length;
		}
	}
	
	function show_user (w) {
		var t1 = document.getElementById('tip_u1');
		var t2 = document.getElementById('tip_u2');
		if (w == 1) {
			t1.className='show';
			t2.className='no_show';
		}
		else {
			t1.className='no_show';
			t2.className='show';
		}
	}
	
// -->
