function ge(x) {
	return document.getElementById(x);
}

function contactFormCheck() {
	var n = ge("name");
	var e = ge("email");
	var q = ge("question");

	if(n.value == "") {
		alert("You forgot to enter your name.");
		n.focus();
		return false;
	}

	if(e.value.indexOf(".") == -1 || e.value.indexOf("@") == -1) {
		alert("Please enter a valid email address.");
		e.focus();
		e.select();
		return false;
	}

	if(q.value == "") {
		alert("You forgot to enter your question(s).");
		q.focus();
		return false;
	}

	return true;
}

function chat_window() {
	document.location.href = "contact.php?live_support=unavailable";
}

function show_promise() {
	window.open("promise.html", "promise", "width=550,height=550,top=70,left=300");
}

function LaunchVideo(Video_Id) {
	var vLeft = (screen.availWidth/2)-360;
	var vTop = (screen.availHeight/2)-230;
	window.open("player"+Video_Id+".php", Video_Id + "video", "width=720,height=460,left="+vLeft+",top="+vTop);
}