/*
 * Ext JS Library 1.0
 * Copyright(c) 2006-2007, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://www.extjs.com/license
 */

Ext.onReady(function(){
    Ext.QuickTips.init();

    //Ext.MessageBox.alert("Warning", "This example is not done and results may vary.");

    // Change field to default to validation message "under" instead of tooltips
    Ext.form.Field.prototype.msgTarget = 'under';

    var email  = new Ext.form.TextField({ allowBlank:false, blankText:Ext.form.VTypes["allowBlank"], vtype:'email' });     
    var pass   = new Ext.form.TextField({ allowBlank:false, blankText:Ext.form.VTypes["allowBlank"], vtype:'password' });
    
    //email.applyTo('email');
    //pass.applyTo('pass'); 
    
    var chooser, btn;
    btn = new Ext.Button('buttons', 
      {
	      text: "Finalizar la encuesta", 
        handler: function(){ document.forms[0].submit();}   
      }
    );
});
