/**
* PlayerDetect
*
* @author			Fabrício Ribeiro Silva
* @version			1.0
* @created			2008/06/05
*
* Copyright (c) 2008 FARS
*
* Application Variables
* */
/**
* Function	: PlayerDetect
* Definition: Contructor Function
* */
function PlayerDetect (){
}

/**
* Prototypes
* */
PlayerDetect.prototype = {
	/**
	* Function	: PlayerDetect
	* Definition: Get the necessary values and validate
	* entry		: Void
	* exit		: Void
	* */
	PlayerDetect: function(pRequiredPlayer, pCurrentPlayer, pURLRedirect, pBlnCheck) {
		if(pBlnCheck != "true"){
			if(pRequiredPlayer != pCurrentPlayer){
				window.location = pURLRedirect;
			}
		}
	}
}