function BodyGaleryView(src, title)
{
	if ((src==null)||(src==""))
		return false;

	var pwb='<html>\r\n'+
		'<head><title>'+title+'</title></head>\r\n'+
		'<scr'+'ipt type="text/javascript" src="/_JS/custom.js"></scr'+'ipt>\r\n'+
		'<body leftMargin=0 topMargin=0  style="cursor:pointer; font-family:Verdana; font-size:14px;font-weight:bold;">\r\n'+
		'<div style="display:none;width:100%;padding-top:25px;text-align:center;" id="errTxt">THE PICTURE IS NOT AVAILABLE.</div>\r\n'+
		'<img src="'+src+'" onClick="window.close();" alt="" id=foto onload="popupResizeWin()" onerror="popupNotLoaded()">\r\n'+
		'<!-- (C)2007 Gemius SA - gemiusAudience  / Technika - Galerie -->\r\n'+
		'<script language="javascript" type="text/javascript"><!--\r\n'+
		'gemius_identifier = new String(\'16CVTau8JeG1gJKtWBTrYcWo7KQNlnh78OckeKNXb27.e7\');\r\n'+
		'gemius_href=new String(document.location);\r\n'+
		'if (document.referrer) { gemius_ref = new String(document.referrer); } else { gemius_ref = ""; }\r\n'+
		'if(typeof(Error)!=\'undefined\') eval("try { if (typeof(top.document.referrer)==\'string\') { gemius_ref = top.document.referrer } } catch(gemius_ex) {}");\r\n'+
		'iname = new String(\'id=\'+gemius_identifier+\';ref=\'+escape(gemius_ref.substring(0,299))+\';href=\'+escape(gemius_href.substring(0,299))+\';\');\r\n'+
		'document.write(\'<div style="position:absolute; left:-500px; top:-500px;"><iframe src="http://spir.hit.gemius.pl/gemiusaudience.html" name="\'+iname+\'" width="1" height="1" frameborder="0" scrolling="no"></iframe></div>\');\r\n'+
		'//-->\r\n'+
		'</script> \r\n'+
		'</body>\r\n'+
		'</html>\r\n';

	var _child=window.open("about:blank","","left=0,top=0,height=200,width=200,scrollbars=yes");
	_child.document.write(pwb);
}

function popupResizeWin()
{
	var foto=document.getElementById("foto");
      foto.style.width="800px";
	var iWidth=document.body.clientWidth;
	iWidth=foto.width-iWidth;
	window.resizeBy(iWidth,0); 
	
	var iHeight=document.body.clientHeight;
	iHeight=foto.height-iHeight;
	window.resizeBy(0,iHeight);
	
	window.moveTo(0,0);
}

function popupNotLoaded()
{
	document.getElementById("foto").style.display="none";
	document.getElementById("errTxt").style.display="block";
	window.resizeTo(350,40);
}

function newWin(url)
    {
		window.open(url, "newBox","width=600,height=400")
	}



// JavaScript Document

/*sfHover = function() {
	if (document.getElementById!=null){
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
*/



function showHidePro(id) {
	if(document.getElementById) {
		var obj = document.getElementById(id);
		if (obj.style.display == 'block') {
			 	obj.style.display='none';
		 	} else {
				obj.style.display='block';
		}
	}
}

function openWindow() {
	window.open("","ow",'toolbar=0,location=0,menubar=0,scrollbars=0,width=497,height=835,resizable=0,top=30,left=300');
} 

function openWindowPro(url,width,height)
    {
		window.open(url, "_blank","width=" + width + ",height=" + height + ",toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no,top=30,left=300")
	}


/*
function OverForm ()
{
    if (document.design.Wizard_name.value == "")
    {
        document.design.Wizard_name.focus();
        alert ("Nezadal(a) jste Vaše jméno");
        return false;
    }
    if (document.design.Wizard_surname.value == "")
    {
        document.design.Wizard_surname.focus();
        alert ("Nezadal(a) jste Vaše přijmení");
        return false;
    }
    if (document.design.Wizard_tel.value == "")
    {
        alert("Zadejte telefon");
        return false;
    }
    else
    {
        inpCell=document.design.Wizard_tel.value;
        tel=/^[0-9]{9,12}$/
        if (!tel.test(inpCell))
        {
            document.design.Wizard_tel.focus();
            alert ("Chybný formát telefonního čísla");
            return false;
        }
    }
    if (document.design.Wizard_email.value == "")
    {
        alert("Zadejte e-mail");
        return false;
    }
    else
   {
      inpMail=document.design.Wizard_email.value;
      mail=/^.+@.+\..{2,3}$/;
      if (!mail.test(inpMail))
      {
         document.design.Wizard_email.focus();
         alert ("Chybný formát e-mailu");
         return false;
      }
   }

    if (document.design.Wizard_company.value == "")
    {
        alert("Zadejte název společnosti");
        return false;
    }
    if (document.design.Wizard_city.value == "")
    {
        alert("Nezadali jste město");
        return false;
    }

  
}
*/

