<!--
Ext.onReady(function()
{	
		  Ext.BLANK_IMAGE_URL = url + '/bibliotecas/extjs/resources/images/default/s.gif';

				Ext.QuickTips.init();
				
				window.onload = function() {
								// CEP
								if (Ext.get('cep')) {
												var cep = new Ext.form.TextField({
																labelStyle: 'width:50px; font-weight: bold; font-size: 100%;',
																fieldLabel: 'CEP',
																name: 'cep',
																allowBlank:false,
																maxLength: 9,
																minLength: 9,
																plugins: [new Ext.ux.InputTextMask('99999-999', true)],
																msgTarget: 'qtip',
																width: 100,
																minWidth: 100
												});
												
												cep.applyToMarkup('cep');
								}

								// Cupom
								if (Ext.get('cupom')) {
												var cep = new Ext.form.TextField({
																labelStyle: 'width:50px; font-weight: bold; font-size: 100%;',
																fieldLabel: 'Cupom',
																name: 'cupom',
																allowBlank:false,
																maxLength: 15,
																minLength: 15,
																msgTarget: 'qtip',
																width: 300,
																minWidth: 300
												});
												
												cep.applyToMarkup('cupom');
								}
				}
});
//-->
