function Validator(abstractview,error){
this._error = error;
this._abstractview = abstractview;
}
Validator.prototype.process = function(snapShotObj){
this._snapShotObj = snapShotObj;
this.check2 = this.checkForPairings();
	if(this.check2){
	this._abstractview.send(snapShotObj);
	}
	else{
	this._error.print(1)
	main._enable = true;
	}
}
//  both score boxes must contain a score for the validator to submit
Validator.prototype.checkForPairings = function(){
var id = this._snapShotObj.id;
	for(var i=1;i<=this._snapShotObj[id].fm.rowCount;i++){
		if((this._snapShotObj[id].i_itemLeft[i] != "" && this._snapShotObj[id].i_itemRight[i] == "")||(this._snapShotObj[id].i_itemRight[i] != "" && this._snapShotObj[id].i_itemLeft[i] == "")){
				return false;
				break;
			}
		}
return true			
}