function displayElement(id) {
	document.getElementById(id).style.display='block';
}

function makeFormInElement(id,action) {
	document.getElementById(id).innerHTML = "<br /><form action=\"" + action + "\" method=\"post\">" +
	"<label for=\"email\">Zadajte Vašu emailovú adresu: </label>" +
	"<input id=\"email\" type=\"text\" name=\"mail\" /> " +
	"<input type=\"submit\" name=\"ok\" value=\"Ok\" class=\"subm\" />" +
	"</form>";
}

function makeFormInElement2(id) {
	document.getElementById(id).innerHTML = "<br /><form action=\".pripravujeme-pre-vas.php?p=nlp\" method=\"post\">" +
	"<label for=\"email\">Zadajte Vašu emailovú adresu: </label>" +
	"<input id=\"email\" type=\"text\" name=\"mail\" /> " +
	"<input type=\"submit\" name=\"ok\" value=\"Ok\" class=\"subm\" />" +
	"</form>";
}

function makeYouTube() {
	document.getElementById('text_in').innerHTML = "<h3>Derren Brown - \"Paying with Paper\"</h3><br class=\"cleaner\" />" +
	"<object width=\"425\" height=\"344\">" +
	"<param name=\"movie\" value=\"http://www.youtube.com/v/3Vz_YTNLn6w&hl=en&fs=1\"></param>" +
	"<param name=\"allowFullScreen\" value=\"true\"></param>" +
	"<embed style=\"margin:20px 50px;\" src=\"http://www.youtube.com/v/3Vz_YTNLn6w&hl=en&fs=1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed>" +
	"</object>";
}

function makeForm() {
	document.getElementById('text_in').innerHTML = "<h3>Námet na seminár</h3>" +
	"<form action=\"./pripravujeme-pre-vas.php\" method=\"post\">" +
	"<label for=\"email\">Email: </label><br />" +
	"<input type=\"text\" id=\"email\" name=\"email\" value=\"\" /><br />" +
	"<label for=\"text\">Text: </label><br />" +
	"<textarea id=\"text\" type=\"text\" name=\"text\" cols=\"60\" rows=\"10\"></textarea> " +
	"<input class=\"subm\" type=\"submit\" name=\"ok\" value=\"Ok\" />" +
	"</form>";
}

 function CreateBookmarkLink(url, title) {
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url, "");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite(url, title); 
	} else if(window.opera && window.print) { // Opera Hotlist
		return true; 
	}
 }
 
 function IsJavaScriptOn() {
 	print("<input type=\"hidden\" name=\"over\" value=\"74854\"");
 } 
