function ow(f,x,y){myWin=open(f,"displayWindow","width="+x+",height="+y+",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no");}

function gallery(){
ow('/gallery/index.php',620,600);
}

function showHideMenu(element , method){
myElem = findElement(element);
switchOff = myElem.className.replace(/_n/,'');
switchOn = myElem.className + '_n';
method = method?method:'show';
myElem.className = method=='show'?switchOn:switchOff;
}

function findElement(element){
myElem = document.getElementById(element);
return myElem;
}

function new_win_view(f,xx,yy,title){
myWin=open('','displayWindow','width='+(xx)+',height='+(yy)+',status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
myWin.document.open();
myWin.document.write('<html><head><title>'+title+'</title></head>');
myWin.document.write('<body  BGCOLOR=#ffffff marginwidth=0 marginheight=0 leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>');
myWin.document.write(\"<img src=\"+f+\" width=\"+xx+\" height=\"+yy+\" hspace=0 vspace=0 border=0 alt='\"+title+\"'>\");
myWin.document.write('</body></html>');
myWin.document.close();
myWin.focus();}

function newWin ( url, w, h, target ) {
	if ( !url ) return true;
	if ( !w ) w = 800;
	if ( !h ) h = 800;
	if ( !target ) target = '_blank'; 
	var win = window.open(
		url, 
		target, 'width='+w+', height='+h+', toolbar=no, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes');
	win.focus();
	return false;
}
