//Globálisan használt javascript függvények tárolója 2-es modulrendszerben létrehozva

function videolejatszo_DoFSCommand(command, args)
{
	if (command == "fullscreen") 
	{
 		document.getElementById('videolejatszo').fullscreen="true";
 	}
}


function x_glo_aktivalas_flash_video(s_fajlnev, i_szelesseg, i_magassag, b_transzparens)
{
	var s_transzparens1;
	var s_transzparens2;
	
	if (b_transzparens == true)
	{
		s_transzparens1 = '<param name="wmode" value="transparent">';
		s_transzparens2 =  'wmode="transparent"';
	}
	else
	{
		s_transzparens1 = '';
		s_transzparens2 = '';	
	}
	
	document.write('<object name="videolejatszo" id="videolejatszo1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+i_szelesseg+'" height="'+i_magassag+'">');
	document.write('<param name="movie" value="'+s_fajlnev+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="allowScriptAccess" value="always">');
	document.write('<param name="allowFullScreen" value="true">');
	document.write(s_transzparens1);
	document.write('<embed src="'+s_fajlnev+'" name="videolejatszo" id="videolejatszo" allowFullScreen="true" allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+i_szelesseg+'" height="'+i_magassag+'"'+s_transzparens2+' ></embed>');
	document.write('</object>');
}

function b_let_fajl_ellenorzes(s_szoveg)
{
	if (document.getElementById("fajl").value =="" ||
		document.getElementById("s_faj_cim").value =="" || 
		document.getElementById("i_faj_konyvtar_azo").value == "") 
	{
		alert(s_szoveg);
		return false;
	}
	else
	{
		document.getElementById("Submit").disabled='disabled';
		document.getElementById("megsem").disabled='disabled';
		document.getElementById("div1").style.display='block';
		return true;
	}
}

function b_let_konyvtar_ellenorzes(s_szoveg)
{
	if (document.getElementById("s_kon_cim").value =="") 
	{
		alert(s_szoveg);
		return false;
	}
	else
	{
		return true;
	}
}


