function openNewWindowEscape(url, urlToEscape, name, width, height, resizable, scrollbars) {
    openNewWindow(url + escape(urlToEscape), name, width, height, resizable, scrollbars);
}

function openNewWindow(url, name, width, height, resizable, scrollbars) {
    var hasScroll = "0";
	var hasResize = "0";
	
	var w = screen.width;
	var h = screen.height;
	
	if (w <= parseInt(width) || h <= parseInt(height)) {
		hasScroll = "1";
		hasResize = "1";
	}
	
	if (resizable != null) hasResize = resizable;
	if (scrollbars != null) hasScroll = scrollbars;
	
	var args1 = "width="+width+",height="+height+",toolbar=0,scrollbars="+hasScroll+",location=0,statusbar=0,menubar=0,resizable="+hasResize;
	popupWin = window.open(url, name, args1);
	popupWin.focus();

}

var newwindow;
function helpTip(url)
{
	newwindow=window.open(url,'name','height=300,width=400,resizable=0,scrollbars=1,location=0,statusbar=0,menubar=0,toolbar=0');
	if (window.focus) {newwindow.focus()}
}

var newwindow;
function helpTipLarge(url)
{
	newwindow=window.open(url,'name','height=600,width=720,resizable=0,scrollbars=1,location=0,statusbar=0,menubar=0,toolbar=0');
	if (window.focus) {newwindow.focus()}
}


