/*
 * Copyright (c) 2005 Absolutely Training Limited
 *  
 * Created on 05-Dec-2005
 */

 // constructor
/*
 * Deals with tentative requests from the sco. Needs proper implementation.
 */
function Request_valid(){
	//this.SCORM_CONTROLLER_URL = "/lms/scormController.scorm";
    this.type="request_valid";
    this.propertiesArray = new Array("continue", "previous", "choice");
	this.validator = new Validator();
	
}

// create and discard an initial Object to force the prototype object to be
// created in Navigator 3.
new Request_valid(); 
Request_valid.prototype = new RTEDataObject();
Request_valid.prototype.constructor = Request_valid;


Request_valid.prototype.get = function (tempVariable){		

	/**
	var	localProperty = tempVariable.substring(0, tempVariable.indexOf("."));
	var remainder = tempVariable.substring(tempVariable.indexOf(".") + 1, tempVariable.length);


	// var getterName = "get" + localProperty.substring(0,1).toUpperCase() + localProperty.substring(1, localProperty.length);

	var isMember = false;


	for (i = 0; i < this.propertiesArray.length; i++){
		if (this.propertiesArray[i] == remainder || this.propertiesArray[i] ==localProperty){
			isMember = true;
		}
	}
	

	if (isMember) {		
		var variableInfo = loadXMLDoc(this.SCORM_CONTROLLER_URL, remainder);
	} else {	
		
		//TODO if is not null, it must be undefined, so return a 301
		return VariableInfo.GET_401;
	}	
	*/
};



