function newWindow(strPage,strName){
	strSettings = 'fullscreen=yes,scrollbars=auto,width=' + screen.width + ',height=' + screen.height + ',top=0,left=0';
	win = window.open(strPage,strName,strSettings);
	if (win.focus) {
		win.focus();
	}
	return false;
}

function insertTag(myField, myValue) {
/*	//IE support
	if (document.selection) {
		myField.focus();
		sel = document.selection.createRange();
		sel.text = myValue;
	}
	//MOZILLA/NETSCAPE support
	else if (myField.selectionStart || myField.selectionStart == '0') {
		var startPos = myField.selectionStart;
		var endPos = myField.selectionEnd;
		myField.value = myField.value.substring(0, startPos)
		+ myValue
		+ myField.value.substring(endPos, myField.value.length);*/
//	} else {
		document.getElementById(myField).value += myValue;
//	}
}

function gotoPage(page) {
	document.location = page;
	return false;
}

function brighten(id) {
	document.getElementById(id).src = "media/bright.png";
	return false;
}

function darken(id) {
	document.getElementById(id).src = "media/overlay.png";
	return false;
}
