function tlac () 
{
	window.print();
}

function bookmarksite(title, url)
{
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "");
	else
		window.sidebar.addPanel(title, url, "");
}

function NastavHomePage ()
{
	if (document.all) {
		document.body.style.behavior='url(#default#homepage)';
		document.body.setHomePage('http://www.asonor.cz/');
	}
}
function MM_openWindow(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
}
/*
function MM_openWindow(theURL,winName,width,height) { //v2.0
		width += 20;
		height += 50;
		newwindow1 = window.open(theURL,winName,'width='+width+', height='+height+', scrollbars=yes');
		if (window.focus) {newwindow1.focus()}
}
*/
function getElem(ename) {
				if (document.all) return document.all[ename];
				if (document.getElementById) return document.getElementById(ename);
			}
			function roleta_show() {
						var elem = getElem('waitbox');
						
							clickfirst = false;
							var ie6 = (document.all && !window.opera && !window.XMLHttpRequest) ? true : false;
							elem.style.zIndex='10';
							var height = 0;
							var width = 0;
							if (ie6) {
								var elements = document.body.getElementsByTagName('select');
								for (var i = 0; i < elements.length; i++) {
									elements[i].disabled='disabled';
								}
							} 
							if (!window.opera) {
								height = document.body.clientHeight;
							} else {
								height = document.documentElement.clientHeight;
							}
							elem.style.margin='0';
							elem.style.height=height+'px';
							
							elem.style.visibility='visible';
						
			}
			function roleta_hide() {
						var elem = getElem('waitbox');
						
							var ie6 = (document.all && !window.opera && !window.XMLHttpRequest) ? true : false;
							elem.style.zIndex='-999';
							var height = 0;
							var width = 0;
							if (ie6) {
								var elements = document.body.getElementsByTagName('select');
								for (var i = 0; i < elements.length; i++) {
									elements[i].disabled='disabled';
								}
							} 
							if (!window.opera) {
								height = document.body.clientHeight;
							} else {
								height = document.documentElement.clientHeight;
							}
							elem.style.margin='-1000px 0 0 0';
							elem.style.height=height+'px';
							elem.style.visibility='hidden';
						
			}


function showEmail_response(req)
{
	$('div_send_email_form').innerHTML = req.responseText;
	//document.getElementById('div_send_email_form').style.zIndex='15';
}

function showEmail_Form(req)
{	
	new Effect.Appear(document.getElementById('div_send_email_form'));
	
	$('div_send_email_form').innerHTML = req.responseText;
					
}
function hiddeEmail_Form()
{
	new Effect.Fade(document.getElementById('div_send_email_form'));
	roleta_hide();
}