/*
 * Ext JS Library 1.0.1
 * Copyright(c) 2006-2007, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://www.extjs.com/license
 */

var value_title;
function on_LoadPage(mode,value_1,value_2,typeBox) {
        value_title=value_1;       
        if (mode=="1")
            Ext.MessageBox.prompt(value_1, value_2, showResultText);
      
          if (mode=="2")
            Ext.MessageBox.alert(value_1, value_2, "");
            
      }


Ext.onReady(function(){
  

//Ext.MessageBox.prompt('Name', 'Please enter your name111:', showResultText);
//    
//        
//    Ext.get('mb2').on('click', function(e){
//        Ext.MessageBox.prompt('Name', 'Please enter your name:', showResultText);
//    });


//    function showResult(btn){
//        Ext.example.msg('Button Click', 'You clicked the {0} button', btn);
//    };

   
});

 function showResultText(btn, text){
    var value;
    value=_Default.verifyValidPassword(btn,text);  
    if (value.value==""){       
        location.reload();
        }
    else{      
           Ext.MessageBox.alert(value_title, value.value, "");
         //   alert("3");
        //   Ext.MessageBox.prompt('Password', descriptionPassword, showResultText);
             }
      //  Ext.example.msg('Button Click', 'You clicked the {0} button and entered the text "{1}".', btn, text);
    };