// ------------------------------------
// AJAX
// ------------------------------------
function showInfo(elm){
	document.getElementById(elm).style.display = 'block';
}
// ------------------------------------
function hideInfo(elm){
	document.getElementById(elm).style.display = 'none';
}

// ------------------------------------
// Form Verification
// ------------------------------------
function typeCheck()
{
	// User IP Search
	if (document.mpisrch.srchtype.value == "USERIP"){
		document.mpisrch.game_id.disabled = true;
	
	}else if(document.mpisrch.srchtype.value == "IPHISTORY"){
		document.mpisrch.game_id.disabled = true;	
	}else{
		document.mpisrch.game_id.disabled = false;
	}
	
	// Alias Search
	if (document.mpisrch.srchtype.value == "ALIAS"){

		document.mpisrch.alias_type.disabled = false;
	}else{
		document.mpisrch.alias_type.disabled = true;
	}
}

// ------------------------------------
// Screenshot Image Functions
// ------------------------------------
		
function els()
{
	var elements = new Array;
	
	for( var i=0; i<arguments.length; i++ ){
	
		var element = arguments[i];
		
		if ( typeof( element ) == "string" )
			element = document.getElementById( element );
			
		if ( arguments.length == 1 )
			return element;
		
		elements.push( element );
	
	}
	
	return elements;
}
// ------------------------------------
function displayScreenshot( location ) {

	els("screen-placeholder").style.display	= "";
	document["screenshot"].src	= location;
	document["screenshot"].height="800"
	window.location	= "#screenshot";

}
// ------------------------------------
function hideScreenshot( ) {
	
	els("screen-placeholder").style.display	= "none";

}
