function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function epShowWindow(url, name, width, height) {
	if(width == undefined || width < 0) width = 400;
    if(height == undefined || height < 0) height = 400;
	var wndfeatures = 'menubar=no,scrollbars=yes,resizable=yes,status=no,width=' + width + ', height=' + height;
	var wnd = window.open(url, name, wndfeatures, false);
	wnd.focus();
}


function epOpenWinWH(url, name, width, height) {
	if(width == undefined || width < 0) width = 400;
    if(height == undefined || height < 0) height = 400;
	var wndfeatures = 'menubar=no,scrollbars=yes,resizable=yes,status=no,width=' + width + ', height=' + height;
	var wnd = window.open(url, name, wndfeatures, false);
	wnd.focus();
}

function epResizeVertical() {
	var w,h;
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight;
	if (test1 > test2) {
		w = document.body.scrollWidth;
		h = document.body.scrollHeight;
	} else {
		w = document.body.offsetWidth;
		h = document.body.offsetHeight;
	}
	
	window.resizeTo(w, h + 80);
}


