function winopen(title, url, reload, dependent, rezisable, scrollbars, location, status, width, height)
{
	var w, h;
	var sizeString;

	if (width > 0 && height > 0) {
		w = screen.availWidth  - 20;
		h = screen.availHeight - 80;

		w = Math.min(width , w)
		h = Math.min(height, h)

		sizeString = ",width=" + w + ",height=" + h;
	} else {
		sizeString = "";
	}

	var features = "dependent=" + dependent + ",resizable=" + rezisable + ",scrollbars=" + scrollbars + ",location=" + location + ",status=" + status + ",menubar=no,directories=no,hotkeys=no,personalbar=no,toolbar=no" + sizeString;

	win = window.open(url,title,features);

	win.focus();
	//if (reload) win.location.reload();
	if (reload) {
		document.getElementsByTagName("body")[0].onload = function(){
			win.location=win.location;
		}
	}

}



// window.open('search_syntax.php3','','scrollbars=yes resizable=no width=550 height=390 left=100 top=100 status=no')


