/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2009 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 185 2009-02-09 21:51:12Z emartin24 $
 *
 */
 
 
  function process()
  {
	  var msisdn = $("#msisdn").val();
      
	  $.ajax({
      url: "process.php",
      type: "POST",
      data: "msisdn="+msisdn,
      success: function(msg){
         $("#process").modal({
            close:false,
            onShow: function (dialog) {
                dialog.data.find('.message').append(msg);
            }
        });
		
      }
   }
);
 }
 
 
 function bases()
 {
 	$('#legales').modal();
 }
 
 function como()
 {
 	$('#comoFunciona').modal();
 }
 
function gbp()
 {
 	$('#comoFunciona').modal();
 }

 
 function modal(id, message) {
        $("#" + id).modal({
            close:false,
            onShow: function (dialog) {
                dialog.data.find('.message').append(message);
            }
        });
    }

function clearInput(){
    $("#msisdn").val('');
} 
