var win = null;
					
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=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 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 = 665;
		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=yes')
		} 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=yes')
	}
}
function openPopupCustom1 (url)  {
	
		var w, h;
		w = 778;
		h = 482;
	
	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 JSPopUp(width, height, url){
	if (win && win.open) {
		if (win.closed){
			win = window.open(url, 'DE', 'width='+width+',height='+height+',left=0,top=0,resizable=yes,menubar=no,scrollbars=no')
		} else {
			win.focus();
			win.resizeTo(width, height)
			win.location = url
		}
	} else {
		  win = window.open(url, 'DE', 'width='+width+',height='+height+',left=0,top=0,resizable=yes,menubar=no,scrollbars=no')
	}
}
