var reviewModule = {

	setReviewModule : function(){
		var form;
		
		var handleSubmit = function() {
			
			form = this.form;
			
			var status = FIC_checkForm(form);
					
			if ( status  ){
				var url = "/reviews/addReview";
				var objConn = new ObjectConnection("reviewMessage",url,"frmReview",0);
				objConn.submitForm();
				
				this.cancel();
			} 
				
		};
		
		var handleCancel = function() {
			this.cancel();
		};
		
		// Instantiate the Dialog
		YAHOO.example.container.dialog1 = new YAHOO.widget.Dialog("reviewForm", 
											{ width : "400px",
												fixedcenter : true,
												visible : false, 
												constraintoviewport : true,
												modal : true,
												draggable: false,
												buttons : [ { text:"Submit", handler:handleSubmit },
															{ text:"Cancel", handler:handleCancel } ]
												} );
		
		YAHOO.example.container.dialog1.render();
		},
		
		showReviewModule : function(){
			YAHOO.example.container.dialog1.show();
		}

};
