/* Create a new window */
function openInNewWindow(e) {
	var event;
	if (!e) event = window.event;
	else event = e;
	// Abort if a modifier key is pressed
	if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) {
		return true;
	}
	else {
	    var newWin = newWindow(this.getAttribute('href'), '_blank');
		if (newWin) {
			if (newWin.focus) {
				newWin.focus();
			}
			return false;
		}
		return true;
	}
}

function newWindow(theURL, name, attributes) {
	if (attributes&&attributes!='') {
		return window.open(theURL, name, attributes);
	} else {
		return window.open(theURL, name);		
	}
}

function fullScreenWindow(theURL, name) {
	return newWindow(theURL, name, 'fullscreen=yes, scrollbars=no, dependent=yes, resizable=yes, status=no');
}

