if (window != top) top.location.href = location.href;

var message="Function Disabled!";
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

function checkEmailAddress(field) {
	if (field.value != '' && !field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,4}))$)\b/gi)) {
		alert('Please enter a valid e-mail address.');
		field.focus();
		field.select();
	}
}

function newWindow(url, name, attribs) {

	if (typeof name == "undefined") { name = '';}
	if (typeof attribs == "undefined") { attribs = '';}
	window.open(url, name, attribs); 
	return false;
}
function loadFrame(url, frameName) {

	frameName.location.href = url;
	return false;
}

function openSubMenu(num) {

	for (var i = 1; i <= 6; i++) {
		if (i != num) {
			document.getElementById('subNav'+i).style.display = 'none';
		}
	}
	document.getElementById('subNav'+num).style.display = 'block';
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
	return false;
}

