
var win = null;

function openUrl (url)  {
	win.location = url
}
		
function openPopupSmall (url)  {
	var w, h;
	w = 250;
	h = 280;
				
	if (win && win.open) {
		if (win.closed){
			win = window.open(url, 'popUp', 'width='+w+',height='+h+',left=0,top=0,resizable=yes,menubar=no,scrollbars=auto')
		} else {
			win.focus();
			win.resizeTo(w,h)
			win.location = url
		}
	} else {
		win = window.open(url, 'popUp', 'width='+w+',height='+h+',left=0,top=0,resizable=yes,menubar=no,scrollbars=auto')
	}
}
			
function openPopupMedium (url)  {
	var w, h;
	w = 450;
	h = 350;
				
	if (win && win.open) {
		if (win.closed){
			win = window.open(url, 'popUp', 'width='+w+',height='+h+',left=0,top=0,resizable=yes,menubar=no,scrollbars=no')
		} else {
			win.focus();
			win.resizeTo(w,h)
			win.location = url
		}
	} else {
		win = window.open(url, 'popUp', 'width='+w+',height='+h+',left=0,top=0,resizable=yes,menubar=no,scrollbars=no')
	}
}
			
function openPopupLarge (url)  {
	var w, h;
	w = 640;
	h = 480;
				
	if (win && win.open) {
		if (win.closed){
			win = window.open(url, 'popUp', 'width='+w+',height='+h+',left=0,top=0,resizable=yes,menubar=no,scrollbars=no')
		} else {
			win.focus();
			win.resizeTo(w,h)
			win.location = url
		}
	} else {
		win = window.open(url, 'popUp', 'width='+w+',height='+h+',left=0,top=0,resizable=yes,menubar=no,scrollbars=no')
	}
}

function openPopupExtraLarge (url)  {
	var w, h;
	w = 800;
	h = 540;
				
	if (win && win.open) {
		if (win.closed){
			win = window.open(url, 'popUp', 'width='+w+',height='+h+',left=0,top=0,resizable=yes,menubar=no,scrollbars=no')
		} else {
			win.focus();
			win.resizeTo(w,h)
			win.location = url
		}
	} else {
		win = window.open(url, 'popUp', 'width='+w+',height='+h+',left=0,top=0,resizable=yes,menubar=no,scrollbars=no')
	}
}





function openwindow(url) {
	var currentUrl = location.href;
	window.open(url);
	history.back();
}