
/* ACTIVA LA CLASE POPS PARA LOS ELEMENTOS A CON REL */
	$$('a[rel=pops], a[rel=popsCenter], a[rel=popsPos], a[rel=popsRelative]').addEvent('click',function(e){
		e.stop();
		xpCore.loadPop(this,this.get('href'),'');
	});
	
	
	
	
	
	
	//Estilo agregados a los campos cuando presentan algún error de validación...
	function errorField(field,msg)
	{
		$$('#contactForm input[type=text], #contactForm textarea').each(function(inp){
			inp.erase('style');
		});
		$$('#contactBottomForm input[type=text], #contactBottomForm textarea').each(function(inp){
			inp.erase('style');
		});
		
		field.setStyles({
			'border' : '1px solid #ff0000'
		});
		
		var a = new Element('a',{
			href : '/pops/alerts',
			rel  : 'popsCenter',
			title: 'Alert'
		})
		xpCore.loadPop(a,a.get('href'),'msg='+msg);
		
	}
	
	
	
	
	//Esto muestra mensaje "success" si el elemento .message no está vacío...
	setTimeout(function(){
		if($('messageBox').get('html') != '')
		{
			var a = new Element('a',{
				href : '/pops/alerts',
				rel  : 'popsCenter',
				title: 'Alert'
			})
			xpCore.loadPop(a,a.get('href'),'msg='+$('messageBox').get('html'));
		}
	},1200);		
