function Vocab(module){
	this.params = "";
	this.flag = false;
	var obj = this;
	$.ajax({
       	url: '/vocab.php',
       	data : 'mod=' + module,
       	async: false,
       	type : "POST",
       	success: function (data, textStatus) {
	       	obj.params = obj.getResponse(data);
       	}
    });	
}

Vocab.prototype.getResponse = function (result) {
    return eval('(' + result + ')');
}

Vocab.prototype.GetValues = function(variable){
    if (this.params[variable] != undefined)
    {
    	return this.params[variable];
    } else
    {
    	return '';
    }
}
