infoin=new String(location.href);
end=infoin.lastIndexOf('/')+1;
var path =new String(infoin.substring(0,end));

function newWin(page,winName,w,h,scrollb,resize) { 
var win=null; 
centerWidth = (screen.width) ? (screen.width-w)/2 : 0; 
centerHeight = (screen.height) ? (screen.height-h)/2 : 0; 
config = 
'height='+h+',width='+w+',top='+centerHeight+',left='+centerWidth+',scrollbars='+scrollb+',resizable='+resize+'' 
win = window.open(path+page,winName,config); 
} 

function newImageWin(page,winName,w,h,scrollb,resize) { 
var win=null; 
centerWidth = (screen.availWidth) ? (screen.availWidth-w)/2 : 0; 
centerHeight = (screen.availHeight) ? (screen.availHeight-h)/2 : 0; 
config = 
'height='+h+',width='+w+',top='+centerHeight+',left='+centerWidth+',scrollbars=no,resizable=no' 
win = window.open('image.htm',winName,config); 
win.document.write ("<HTML><HEAD><TITLE>");
win.document.write (page);
win.document.write ("</TITLE></HEAD>");
win.document.write ("<BODY style='margin:0px\;background-color: white\;'>");     
win.document.write ("<a href='javascript:close();'><IMG SRC=");
win.document.write (page);
win.document.write (" BORDER=0 onClick='self.close()' ></a>");
win.document.write ("</BODY></HTML>");
win.document.close();
} 


function newFullWin(page,winName,scrollb,resize) { 
var win=null; 
w = screen.availWidth;
h = screen.availHeight-40;
centerWidth =  0; 
centerHeight =  0; 
config = 
'height='+h+',width='+w+',top='+centerHeight+',left='+centerWidth+',scrollbars='+scrollb+',resizable='+resize+'' 
win = window.open(path+page,winName,config); 
} 


function confirmSubmit() 
{
var agree=confirm("Chcete vymazať záznam?");
if (agree)
	return true ;
else
	return false ;
}
