<!--
//function CheckScreenRez()
//{
//	if((window.screen.width < 1024) | (window.screen.height < 768))
//		window.alert("Your current screen resolution is "+ window.screen.width +"x"+ window.screen.height +".\nTo make proper use of \"Unofficial Quake Engine\" your screen resolution should be set to 1024x768 preferably.");
//	
//	return true;
//}

// Google Functions
function GoogleValidation()
{
	if(document.getElementById("sbi").value.length == 0)
	{
		window.alert("Please enter your search criteria");
		document.getElementById("sbi").focus();
		return false;
	}
	
	if(document.getElementById("ss0").checked == true || document.getElementById("ss2").checked == true)
		document.getElementById("frmGoogle").target = "_new";
	else if(document.getElementById("ss1").checked == true)
		document.getElementById("frmGoogle").target = "_top";
	else
	{
		window.alert("Please select \"Web\", \"www.quake-engine.com\" or \"forums.quake-engine.com\" for searching.");
		return false;
	}
		
	return true;
}

function execGoogle()
{
	if(GoogleValidation() == true)
	{
		document.getElementById("frmGoogle").submit();
		return true;
	}
	return false;
}
// Google Functions

function AreaOver(obj, inColor)
{
	obj.style.cursor = "pointer";
	obj.className = inColor +"_hover";
	
	return true;
}

function AreaOut(obj, inColor)
{
	obj.style.cursor = "default";
	obj.className = inColor;
	
	return true;
}

function qeNavigate(sURL)
{
	var LocalURL = "";
	LocalURL = sURL;
	
	if(LocalURL.length == 0)
		return false;
		
	window.location.href = LocalURL;
	return true;
}

function qeNavigateTarget(sURL, objTarget)
{
	var LocalURL = "";
	LocalURL = sURL;
	
	if(LocalURL.length == 0)
		return false;
	
	objTarget.location.href = LocalURL;
	return true;
}

function PopUp(sURL, Width, Height, scrl)
{
	var Height_Modal	= Height + 20;	//statusbar addition
	var Width_Modal		= Width;
	var Height_Window	= Height - 32;
	var Width_Window	= Width - 6;
	
	if(navigator.appName == "Microsoft Internet Explorer")
		window.showModalDialog(sURL, "PopUp", "dialogHeight:"+ Height_Modal +"px;dialogWidth:"+ Width_Modal +"px;help:0;status:1;scroll:"+ scrl +";center:1");
	else
		window.open(sURL, "picture", "channelmode=0,directories=0,fullscreen=0,height="+ Height_Window +",width="+ Width_Window +",location=0,menubar=0,resizable=0,scrollbars=1,status=1,titlebar=1,toolbar=0,top="+ ((window.screen.height / 2) - (Height_Window / 2)) +",left="+ ((window.screen.width / 2) - (Width_Window / 2)), false);

	//return result;
	return true;
}

function PopUpOpen(sURL, NewBrowser)
{
	var WinHeight	= 600;
	var WinWidth	= 800;
	var WinTop		= (screen.availHeight / 2) - (WinHeight / 2);
	var WinLeft		= (screen.availWidth / 2) - (WinWidth / 2);
	
	if(NewBrowser == false)
		window.open(sURL, "documentation", "channelmode=0,directories=0,fullscreen=0,height="+ WinHeight +",left="+ WinLeft +",location=0,menubar=0,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=0,top="+ WinTop +",width="+ WinWidth, false);
	if(NewBrowser == true)
		window.open(sURL, "newbrowser", "channelmode=0,directories=1,fullscreen=0,height="+ WinHeight +",left="+ WinLeft +",location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1,top="+ WinTop +",width="+ WinWidth, false);

	return true;
}

function CheckMail(head, tail, extra, write)
{
	if(write == false)
	{
		window.navigate("mailto:"+ head +"@"+ tail + extra);
	}
	if(write == true)
	{
		document.write(head +"@"+ tail);
	}
}
-->