hol = "";
mi = "";
zeindex=100;

function suhan_over(me) {
	if (document.getElementById(me).style.visibility=="hidden"){
	//	document.getElementById("gomb"+me).style.backgroundColor="#D9E2E1";
	}
}

function suhan_out(me) {
	if (document.getElementById(me).style.visibility=="hidden"){
	//	document.getElementById("gomb"+me).style.backgroundColor="#F6BE43";
	}
}

function search_ellenorzes() {
	if (document.form_keres.inputsearch.value.length < 3) {
		alert("Legalább 3 karaktert írj a kereső mezőbe!");
		return false;
	}
}

function EvalSound(soundobj) {
	document.getElementById(soundobj).setAttribute('src', 'c.mid'); 
  var thissound=document.getElementById(soundobj);
  thissound.Play();
}

function oke() {
	for (i=0; i<document.form1.elements.length; i++) {
 		if(document.form1.elements[i].type == "select-one" && document.form1.elements[i].value!="") {
			hol+=document.form1.elements[i].name+",";
			mi+=document.form1.elements[i].options[document.form1.elements[i].selectedIndex].value+",";
		}
	}
	document.form2.tomb_hol.value=hol;
	document.form2.tomb_mi.value=mi;
}

function formatoke() {
	var newf="";
	for (i=0; i<document.chordformatform.elements.length; i++) {
 		if(document.chordformatform.elements[i].type == "select-one" && document.chordformatform.elements[i].value!="") {
			newf+=","+document.chordformatform.elements[i].options[document.chordformatform.elements[i].selectedIndex].value;
		}
	}
	document.chordformatform.newformat.value=newf;
}

function mutat(me) {
		if (document.getElementById(me).style.visibility=="hidden"){

			document.getElementById(me).style.visibility="visible";
			document.getElementById("ch"+me).style.zIndex=++zeindex;
			document.getElementById(me).focus();
			document.getElementById("gomb"+me).style.backgroundColor="#0099FF";
		}
		else {
			if (document.getElementById(me).value=="")
				document.getElementById("gomb"+me).style.backgroundColor="#F6BE43";
			document.getElementById(me).style.visibility="hidden";
		}
}

function btover(me) {
	document.getElementById("gomb"+me).style.border="solid black 2";
}

function btout(me) {
	document.getElementById("gomb"+me).style.border="none";
}

function locatehref(){
	for (var i=0;i < document.links.length;i++) {
		whathref = document.links[i].href;
		if (whathref=="http://www.psgdomains.com/" || whathref=="http://extra.hu/top") {
			document.links[i].style.visibility="hidden";
//			alert(whathref);
		}
	}
	for (var j=0;j < document.links.length;j++) {
		whatimage = document.images[j].src;
		if (whatimage=="http://extra.hu/lib/webmaster/menu/white/docler.gif") {
			document.images[j].style.visibility="hidden";
			break;
		}
	}
	for (var j=0;j < document.links.length;j++) {
		whatimage = document.images[j].src;
		if (whatimage=="http://extra.hu/lib/webmaster/menu/white/kirzen.gif") {
			document.images[j].style.visibility="hidden";
			break;
		}
	}	
	for (var j=0;j < document.links.length;j++) {
		whatimage = document.images[j].src;
		if (whatimage=="http://extra.hu/lib/webmaster/menu/white/gmad.gif") {
			document.images[j].style.visibility="hidden";
			break;
		}
	}	
	for (var k=0;k < document.links.length;k++) {
		whatalt = document.images[k].alt;
		if (whatalt=="[X]") {
			document.images[k].style.visibility="hidden";
			break;
//			alert(whatalt);
		}
	}
	for (var l=0;l < document.links.length;l++) {
		whatalt = document.images[l].alt;
		if (whatalt=="videó chat") {
			document.images[l].style.visibility="hidden";
			break;
//			alert(whatalt);
		}
	}	
}
