function confirm1(){
	if(confirm('Opravdu odeslat všem aktivním odběratelům?')){
		location.href='sendmenu.php?scope=all';
	}
	else
	{
		alert('Zrušeno');
	}
}
function sendtest(){
	//alert('Test mail!');
	adr=document.getElementById("testmail");
	adr=adr.value;
	location.href='sendmenu.php?scope=one&adr='+adr;	
}
function size(){
i=document.getElementById("centerframe").clientHeight-673;
if (i<1){i=0}
//alert(i);
//alert(document.getElementById("lf").height+'|'+document.getElementById("centerframe").clientHeight);
document.getElementById("lf").style.height=document.getElementById("lf").clientHeight+i;
document.getElementById("rf").style.height=document.getElementById("rf").clientHeight+i;
document.getElementById("lf").height=document.getElementById("lf").height+i;
document.getElementById("rf").height=document.getElementById("rf").height+i;
}
function initEdW(){
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		skin : "default", 
		editor_selector : "wtEdit",	
		entity_encoding : "raw",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,cut,copy,paste,pastetext,pasteword",
		theme_advanced_buttons2 : "sub,sup,|,bullist,numlist,|,outdent,indent,blockquote,|,formatselect,fontselect",
		theme_advanced_buttons3 : "undo,redo,|,link,unlink,|,insertdate,inserttime,|,forecolor,backcolor,|,image,",
		theme_advanced_buttons4 : "tablecontrols",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : false,
		height: "600",
		width:"540",

		// Example content CSS (should be your site CSS)
		content_css : "css/content.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",
		
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}		
				
	});
	//alert('Initialize....end');	
}

