var octopusGame = function(){

  this.showContactUsForm = function(){
    $("#flashGameContainer").hide();

    $("#contactForm").dialog({
      width:500,
      height:600,
      modal:true,
      buttons: {
				'Submit': this.submitForm,
        'Cancel': function() {
          $("#flashGameContainer").show();
          $("#contactForm input, #contactForm textarea").val("");
          $(this).dialog('close');
        }
      }
    });
  };

  this.submitForm = function(){

    function validateForm(){
      return true;
    }

    var isValid = validateForm();
    if(isValid){
      $.debug(isValid);
    }
  };

  return this;

};

//to keep the global namespace clean, all js is attached to my last name
var groff = new octopusGame();
