/*
yama-award.com*/
String.prototype.isEmail = function () { var rx = new RegExp("\\w+([-+.\']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*"); var matches = rx.exec(this); return (matches != null && this == matches[0]); }

/*test isEmail
test = 'test@gmail.com';
document.write (test.isEmail());*/

/******** campos llenos ********/
function camposLlenos(array){
	var llenos = true;
	for(i=0;i<array.length;i++){
		if(array[i]=="" || array[i]==undefined || array[i]==null || array[i].toString().replace(/ /g,"")==""){
			llenos = false;
		}
	}
	return llenos;
}
/*******************************/
function e(t) {
o = new String;
t_ = new Array();
t__ = new Array();
tz = t.length;
for (i = 0; i < tz; i++) {
rnd = Math.round(Math.random() * 122) + 68;
t_[i] = t.charCodeAt(i) + rnd;
t__[i] = rnd;
}
for (i = 0; i < tz; i++) {
o += String.fromCharCode(t_[i], t__[i]);
}
return o;
}
function ue(t) {
o = new String;
t_ = new Array();
t__ = new Array();
tz = t.length;
for (i = 0; i < tz; i++) {
t_[i] = t.charCodeAt(i);
t__[i] = t.charCodeAt(i + 1);
}
for (i = 0; i < tz; i = i+2) {
o += String.fromCharCode(t_[i] - t__[i]);
}
return o;
}
function inicioFestival()
{
	var fecha = new Date();
	
	var anio  = fecha.getFullYear();
	var mes	 = (fecha.getMonth()+1);
	var dia = fecha.getDate();
	
	if( mes < 10 ) mes = '0'+ mes;
	if( dia < 10 ) dia = '0'+ dia;
	
	if( anio+''+mes+''+dia  > 20090801)
	{
		return true;
	}
	else
	{
		return false;
	}
}
/*
yama-award.com*/
