function openWin(K, X, Y) {
	sed = window.open('kep.php?x='+X+'&y='+Y+'&k='+K, 'BBB', 'width='+X+',height='+Y+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0');
	sed.focus()
}

function megse(){
	document.getElementById("nev").value="";
	document.getElementById("email").value="";
	document.getElementById("uzenet").value="";
}

function kinyit(obj){
		document.getElementById(obj).style.display = "block";
	
}

function becsuk(obj){
	document.getElementById(obj).style.display = "none";
}

function genFlash(){
	//alert(flashVars);
	document.getElementById('dd').style.display = 'block';
	document.getElementById('dd').innerHTML = 
	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="picplayer">' +
	'<param name="allowScriptAccess" value="always" />' + 
	'<param name="swliveconnect" value="true">' +
	'<param name="movie" value="picplayer.swf?edadreeeeewe" />' + 
	'<param name="quality" value="high" />' + 
	'<param name="scale" value="noscale" />' + 
	'<param name="wmode" value="transparent" />' + 
	'<param name="bgcolor" value="#ffffff" />' + 
	'<param name="salign" value="lt" />' +
	'<param name="FlashVars" value="'+flashVars+'" />' +	

	'<embed ' +
		'src="picplayer.swf?dnene" ' +
		'quality="high" ' +
		'scale="noscale" ' +
		'salign="lt" ' +
		'wmode="transparent" ' +
		'bgcolor="#ffffff" ' +
		'width="100%" ' +
		'height="100%" ' +
		'name="picplayer" ' +
		'id="picplayer" ' +
		'align="middle" ' +
		'allowscriptaccess="always" ' +
		'type="application/x-shockwave-flash" ' +
		'swliveconnect="true" ' +
		'pluginspage="http://www.macromedia.com/go/getflashplayer"'+
		'FlashVars="'+flashVars+'" /> '+
	'</object> ';

}

	function movieIsLoaded (theMovie) {
	  // First make sure the movie's defined.
	  if (typeof(theMovie) != "undefined") {
	    // If it is, check how much of it is loaded.
	    return theMovie.PercentLoaded == 100;
	  } else {
	    // If the movie isn't defined, it's not loaded.
	    return false;
	  }
	}
	
	
	function thisMovie(movieName) {
	  // IE and Netscape refer to the movie object differently.
	  // This function returns the appropriate syntax depending on the browser.
	  if (navigator.appName.indexOf ("Microsoft") !=-1) {
			return window[movieName]
	  } else {
	    return document[movieName]
	  }
	}
	
	function setAll(my_str) {
		if (movieIsLoaded(thisMovie(movieName))) {
			thisMovie(movieName).SetVariable("jsWatchObject.msg","stop|"+my_str);
			thisMovie(movieName).SetVariable("jsWatchObject.msg","play|"+my_str);
		}
	}
