//bez menubaru
function otvor (theURL,wx,wy) {
mx = Math.round((screen.width-wx)/2);
tab = window.open(theURL,"tab","width="+wx+",height="+wy+",toolbar=no,directories=no,scrollbars=yes,location=no,resizable=yes,menubar=no,left="+mx+",top=10").focus();
}

//bez scrollbarov
function otvor2 (theURL,wx,wy) {
mx = Math.round((screen.width-wx)/2);
tab = window.open(theURL,"tab","width="+wx+",height="+wy+",toolbar=no,directories=no,scrollbars=no,location=no,resizable=yes,menubar=no,left="+mx+",top=10").focus();
}

function newAlert()
{
}
newAlert();

function otvor_mapku (pic,wx,wy) {
mx = Math.round((screen.width-wx)/2);
//tab = window.open(theURL,"tab","width="+wx+",height="+wy+",toolbar=no,directories=no,scrollbars=no,location=no,resizable=yes,menubar=no,left="+mx+",top=10").focus();
//message="<a href=\"#\" onclick=\"window.close()\"><img src="+pic+" border=0></a>";
message="<a href=\"#\" onclick=\"window.close()\">"+pic+"</a>";
 features ='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+wx+',height='+wy+' ';
 dlg = window.open ("","Dialog",features) 
 dlg.document.write ("<BODY>") 
 dlg.document.write ("<H2><CENTER>",message,"</CENTER></H2>") 
// dlg.document.write ("<H2><CENTER>",message,"</CENTER></H2>") 
// dlg.document.write ("<FORM><CENTER>") 
// dlg.document.write ("<INPUT type='button' value='OK' onClick = 'self.close()'>") 
// dlg.document.write ("</CENTER></FORM>") 

//mapka=window.open('','','width='+wx+',height='+wy+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no').focus();
}

function ml_okno() {
wokno=window.open('../index/ml_admin.php','','statusbar=yes,menubar=no,height=480,width=400');
wokno.focus();
}

function bgover (obj){
col='#f0f0f0';
obj.style.backgroundColor=col;
obj.focus();
}

function bgout (obj){
col='#ffffff';
obj.style.backgroundColor=col;
}

function bgblur (obj){
col='#ffffff';
obj.style.backgroundColor=col;
}

function show_photo(path,width,heigth){
	dx = Math.round((screen.width-width)/2);
	window.open('photos_show.php?path='+path,'showimg','width='+width+',height='+heigth+',toolbar=no,directories=no,scrollbars=no,location=no,left='+dx+',top=100').focus();
	
}