Ext.onReady(function() {

Ext.select('.loginemail',true).each(function(i) {
	i.dom.value='';
	if (i.dom.value!='') {
		Ext.select('.emaillabel').hide();
		Ext.select('.passlabel').hide();
	}
	i.on('focus', function() {
		Ext.select('.emaillabel').hide();
	});
	i.on('blur', function(e,t) {
		var x = Ext.get(e.target);
		if (x.dom.value=='') {
			Ext.select('.emaillabel').show();
		}
	});
});

Ext.select('.loginpass',true).each(function(i) {
	i.dom.value='';
	i.on('focus', function() {
		Ext.select('.passlabel').hide();
	});
	i.on('blur', function(e,t) {
		var x = Ext.get(e.target);
		if (x.dom.value=='') {
			Ext.select('.passlabel').show();
		}
	});
});

});
