<!--//
function validate(){
	el=document.f["game[]"];
	var bad="";
	var g=0;
	for(var i=0; i<el.length; i++){
		if (el[i].checked) g=1;
	}
	if(g!=1)bad+="  You must select at least one interface\n";
	if (document.f.upload.value=="") bad+="  You must provide the Respondus File\n";

	if(bad!=""){
		alert("You must fix the following before we can create a package for you:\n\n"+bad);
		return false;
	}else{
		return true;
	}
}

function validate_contact(){
	frm=document.f;
	var bad="";
	if(frm.from.value=="") bad+="  Name\n";
	if(!/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i.test(frm.email.value)) bad+="  Email (with valid email address)\n";
	if(frm.msg.value=="") bad+="  Message\n";

	if(bad!=""){
		alert("You must fill in the following fields:\n\n"+bad);
		return false;
	}else{
		return true;
	}
}


//get window height
var winSize=0;
if(typeof window.innerHeight!="undefined"){
	winSize = {y:window.innerHeight};
}else if(typeof document.documentElement.offsetHeight!="undefined"){
	winSize = {y:document.documentElement.offsetHeight};
}else {
	winSize = {y:document.body.offsetHeight};
}

window.onload=function(){

// adjust slogan bar size
	var h=document.height?document.height:document.body.scrollHeight;
	h=winSize.y>h?winSize.y:h;
	
	if(h<=winSize.y){
		document.getElementById("content").style.height=(h-194)+"px";
	}
}
//-->