function checkForm() { 
	validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
  strEmail =document.subscribeForm.elements['Email Address'].value;

   // search email text for regular exp matches
    if (strEmail.search(validRegExp) == -1) 
   {
    document.subscribeForm.elements['Email Address'].style.backgroundColor='yellow';
	Sexy.error('<h1>Error correo electronico incorrecto</h1><p>Por favor ingrese un correo electronico valido (nombre@dominio.com).</p><p>Int&eacute;ntalo de nuevo.</p>');
	
	document.subscribeForm.elements['Email Address'].focus();
      return false;
    } 
    return true;

}
/*
function uc_setControlInvisible(id) {
    if (document.getElementById(id)) {
        document.getElementById(id).style.display = "none";
    }
}
function uc_setControlVisible(id) {
    if (document.getElementById(id)) {
        document.getElementById(id).style.display = "";
    }
}

function uc_setTitle1On(obj) {
    //Setting The Tab for the First Title
    uc_setControlVisible("content1");
    uc_setControlVisible("arrow1");
    uc_setControlVisible("imgBan1");
    if (document.getElementById("title1")) {
        document.getElementById("title1").style.backgroundColor = "#FF8F00";
    }

    uc_setControlInvisible("content2");
    uc_setControlInvisible("arrow2");
    uc_setControlInvisible("imgBan2");
    if (document.getElementById("title2")) {
        document.getElementById("title2").style.backgroundColor = "#05080C";
    }
    uc_setControlInvisible("content3");
    uc_setControlInvisible("arrow3");
    uc_setControlInvisible("imgBan3");
    if (document.getElementById("title3")) {
        document.getElementById("title3").style.backgroundColor = "#05080C";
    }
    uc_setControlInvisible("content4");
    uc_setControlInvisible("arrow4");
    uc_setControlInvisible("imgBan4");
    if (document.getElementById("title4")) {
        document.getElementById("title4").style.backgroundColor = "#05080C";
    }

}
function uc_setTitle2On(obj) {
    //Setting The Tab for the First Title
    uc_setControlVisible("content2");
    uc_setControlVisible("arrow2");
    uc_setControlVisible("imgBan2");
    if (document.getElementById("title2")) {
        document.getElementById("title2").style.backgroundColor = "#FF8F00";
    }

    uc_setControlInvisible("content1");
    uc_setControlInvisible("arrow1");
    uc_setControlInvisible("imgBan1");
    if (document.getElementById("title1")) {
        document.getElementById("title1").style.backgroundColor = "#05080C";
    }
    uc_setControlInvisible("content3");
    uc_setControlInvisible("arrow3");
    uc_setControlInvisible("imgBan3");
    if (document.getElementById("title3")) {
        document.getElementById("title3").style.backgroundColor = "#05080C";
    }
    uc_setControlInvisible("content4");
    uc_setControlInvisible("arrow4");
    uc_setControlInvisible("imgBan4");
    if (document.getElementById("title4")) {
        document.getElementById("title4").style.backgroundColor = "#05080C";
    }

}
function uc_setTitle3On(obj) {
    //Setting The Tab for the First Title
    uc_setControlVisible("content3");
    uc_setControlVisible("arrow3");
    uc_setControlVisible("imgBan3");
    if (document.getElementById("title3")) {
        document.getElementById("title3").style.backgroundColor = "#FF8F00";
    }

    uc_setControlInvisible("content2");
    uc_setControlInvisible("arrow2");
    uc_setControlInvisible("imgBan2");
    if (document.getElementById("title2")) {
        document.getElementById("title2").style.backgroundColor = "#05080C";
    }
    uc_setControlInvisible("content1");
    uc_setControlInvisible("arrow1");
    uc_setControlInvisible("imgBan1");
    if (document.getElementById("title1")) {
        document.getElementById("title1").style.backgroundColor = "#05080C";
    }
    uc_setControlInvisible("content4");
    uc_setControlInvisible("arrow4");
    uc_setControlInvisible("imgBan4");
    if (document.getElementById("title4")) {
        document.getElementById("title4").style.backgroundColor = "#05080C";
    }

}
function uc_setTitle4On(obj) {
    //Setting The Tab for the First Title
    uc_setControlVisible("content4");
    uc_setControlVisible("arrow4");
    uc_setControlVisible("imgBan4");
    if (document.getElementById("title4")) {
        document.getElementById("title4").style.backgroundColor = "#FF8F00";
    }

    uc_setControlInvisible("content2");
    uc_setControlInvisible("arrow2");
    uc_setControlInvisible("imgBan2");
    if (document.getElementById("title2")) {
        document.getElementById("title2").style.backgroundColor = "#05080C";
    }
    uc_setControlInvisible("content3");
    uc_setControlInvisible("arrow3");
    uc_setControlInvisible("imgBan3");
    if (document.getElementById("title3")) {
        document.getElementById("title3").style.backgroundColor = "#05080C";
    }
    uc_setControlInvisible("content1");
    uc_setControlInvisible("arrow1");
    uc_setControlInvisible("imgBan1");
    if (document.getElementById("title1")) {
        document.getElementById("title1").style.backgroundColor = "#05080C";
    }

}

function asti_setControlInvisibleASTI(id)
{
	if (document.getElementById(id))
	{
		document.getElementById(id).style.display = "none";
	}
}
function asti_setControlVisibleASTI(id)
{
	if (document.getElementById(id))
	{
		document.getElementById(id).style.display = "";
	}
}

function asti_setTitle1On(obj)
{
	//Setting The Tab for the First Title
	asti_setControlVisibleASTI("content1");
	asti_setControlVisibleASTI("arrow1");
	asti_setControlVisibleASTI("imgBan1");	
	if (document.getElementById("title1"))
	{
		//document.getElementById("title1").style.backgroundColor = "#FF8F00";
		//document.getElementById("title1").style.backgroundImage = "http://www.grupocma.com/images/titleFill1.jpg";
		//document.getElementById("title1").style.backgroundImage = url('http://www.grupocma.com/images/titleFill1.jpg');
		document.getElementById("title1").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill1.jpg)";
	}
	
	asti_setControlInvisibleASTI("content2");
	asti_setControlInvisibleASTI("arrow2");
	asti_setControlInvisibleASTI("imgBan2");
	if (document.getElementById("title2"))
	{
		//document.getElementById("title2").style.backgroundColor = "#05080C";
		document.getElementById("title2").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	asti_setControlInvisibleASTI("content3");
	asti_setControlInvisibleASTI("arrow3");
	asti_setControlInvisibleASTI("imgBan3");
	if (document.getElementById("title3"))
	{
		document.getElementById("title3").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	asti_setControlInvisibleASTI("content4");
	asti_setControlInvisibleASTI("arrow4");
	asti_setControlInvisibleASTI("imgBan4");
	if (document.getElementById("title4"))
	{
		//document.getElementById("title4").style.backgroundColor = "#05080C";
		document.getElementById("title4").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}

}
function asti_setTitle2On(obj)
{
	//Setting The Tab for the First Title
	asti_setControlVisibleASTI("content2");
	asti_setControlVisibleASTI("arrow2");
	asti_setControlVisibleASTI("imgBan2");
	if (document.getElementById("title2"))
	{
		//document.getElementById("title2").style.backgroundColor = "#FF8F00";
		document.getElementById("title2").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill1.jpg)";
	}
	
	asti_setControlInvisibleASTI("content1");
	asti_setControlInvisibleASTI("arrow1");
	asti_setControlInvisibleASTI("imgBan1");
	if (document.getElementById("title1"))
	{
		//document.getElementById("title1").style.backgroundColor = "#05080C";
		document.getElementById("title1").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	asti_setControlInvisibleASTI("content3");
	asti_setControlInvisibleASTI("arrow3");
	asti_setControlInvisibleASTI("imgBan3");
	if (document.getElementById("title3"))
	{
		//document.getElementById("title3").style.backgroundColor = "#05080C";
		document.getElementById("title3").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	asti_setControlInvisibleASTI("content4");
	asti_setControlInvisibleASTI("arrow4");
	asti_setControlInvisibleASTI("imgBan4");
	if (document.getElementById("title4"))
	{
		//document.getElementById("title4").style.backgroundColor = "#05080C";
		document.getElementById("title4").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}

}
function asti_setTitle3On(obj)
{
	//Setting The Tab for the First Title
	asti_setControlVisibleASTI("content3");
	asti_setControlVisibleASTI("arrow3");
	asti_setControlVisibleASTI("imgBan3");
	if (document.getElementById("title3"))
	{
		//document.getElementById("title3").style.backgroundColor = "#FF8F00";
		document.getElementById("title3").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill1.jpg)";
	}
	
	asti_setControlInvisibleASTI("content2");
	asti_setControlInvisibleASTI("arrow2");
	asti_setControlInvisibleASTI("imgBan2");
	if (document.getElementById("title2"))
	{
		//document.getElementById("title2").style.backgroundColor = "#05080C";
		document.getElementById("title2").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	asti_setControlInvisibleASTI("content1");
	asti_setControlInvisibleASTI("arrow1");
	asti_setControlInvisibleASTI("imgBan1");
	if (document.getElementById("title1"))
	{
		//document.getElementById("title1").style.backgroundColor = "#05080C";
		document.getElementById("title1").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	asti_setControlInvisibleASTI("content4");
	asti_setControlInvisibleASTI("arrow4");
	asti_setControlInvisibleASTI("imgBan4");
	if (document.getElementById("title4"))
	{
		//document.getElementById("title4").style.backgroundColor = "#05080C";
		document.getElementById("title4").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}

}
function asti_setTitle4On(obj)
{
	//Setting The Tab for the First Title
	asti_setControlVisibleASTI("content4");
	asti_setControlVisibleASTI("arrow4");
	asti_setControlVisibleASTI("imgBan4");
	if (document.getElementById("title4"))
	{
		//document.getElementById("title4").style.backgroundColor = "#FF8F00";
		document.getElementById("title4").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill1.jpg)";
	}
	
	asti_setControlInvisibleASTI("content2");
	asti_setControlInvisibleASTI("arrow2");
	asti_setControlInvisibleASTI("imgBan2");
	if (document.getElementById("title2"))
	{
		//document.getElementById("title2").style.backgroundColor = "#05080C";
		document.getElementById("title2").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	asti_setControlInvisibleASTI("content3");
	asti_setControlInvisibleASTI("arrow3");
	asti_setControlInvisibleASTI("imgBan3");
	if (document.getElementById("title3"))
	{
		//document.getElementById("title3").style.backgroundColor = "#05080C";
		document.getElementById("title3").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	asti_setControlInvisibleASTI("content1");
	asti_setControlInvisibleASTI("arrow1");
	asti_setControlInvisibleASTI("imgBan1");
	if (document.getElementById("title1"))
	{
		//document.getElementById("title1").style.backgroundColor = "#05080C";
		document.getElementById("title1").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}

}

//-------------------------------------------------------------------------------------//
function osti_setControlInvisibleOSTI(id)
{
	if (document.getElementById(id))
	{
		document.getElementById(id).style.display = "none";
	}
}
function osti_setControlVisibleOSTI(id)
{
	if (document.getElementById(id))
	{
		document.getElementById(id).style.display = "";
	}
}

function osti_setTitle1On(obj)
{
	//Setting The Tab for the First Title
	osti_setControlVisibleOSTI("content1");
	osti_setControlVisibleOSTI("arrow1");
	osti_setControlVisibleOSTI("imgBan1");	
	if (document.getElementById("title1"))
	{
		//document.getElementById("title1").style.backgroundColor = "#FF8F00";
		//document.getElementById("title1").style.backgroundImage = "http://www.grupocma.com/images/titleFill1.jpg";
		//document.getElementById("title1").style.backgroundImage = url('http://www.grupocma.com/images/titleFill1.jpg');
		document.getElementById("title1").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill1.jpg)";
	}
	
	osti_setControlInvisibleOSTI("content2");
	osti_setControlInvisibleOSTI("arrow2");
	osti_setControlInvisibleOSTI("imgBan2");
	if (document.getElementById("title2"))
	{
		//document.getElementById("title2").style.backgroundColor = "#05080C";
		document.getElementById("title2").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	osti_setControlInvisibleOSTI("content3");
	osti_setControlInvisibleOSTI("arrow3");
	osti_setControlInvisibleOSTI("imgBan3");
	if (document.getElementById("title3"))
	{
		document.getElementById("title3").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	osti_setControlInvisibleOSTI("content4");
	osti_setControlInvisibleOSTI("arrow4");
	osti_setControlInvisibleOSTI("imgBan4");
	if (document.getElementById("title4"))
	{
		//document.getElementById("title4").style.backgroundColor = "#05080C";
		document.getElementById("title4").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}

}
function osti_setTitle2On(obj)
{
	//Setting The Tab for the First Title
	osti_setControlVisibleOSTI("content2");
	osti_setControlVisibleOSTI("arrow2");
	osti_setControlVisibleOSTI("imgBan2");
	if (document.getElementById("title2"))
	{
		//document.getElementById("title2").style.backgroundColor = "#FF8F00";
		document.getElementById("title2").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill1.jpg)";
	}
	
	osti_setControlInvisibleOSTI("content1");
	osti_setControlInvisibleOSTI("arrow1");
	osti_setControlInvisibleOSTI("imgBan1");
	if (document.getElementById("title1"))
	{
		//document.getElementById("title1").style.backgroundColor = "#05080C";
		document.getElementById("title1").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	osti_setControlInvisibleOSTI("content3");
	osti_setControlInvisibleOSTI("arrow3");
	osti_setControlInvisibleOSTI("imgBan3");
	if (document.getElementById("title3"))
	{
		//document.getElementById("title3").style.backgroundColor = "#05080C";
		document.getElementById("title3").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	osti_setControlInvisibleOSTI("content4");
	osti_setControlInvisibleOSTI("arrow4");
	osti_setControlInvisibleOSTI("imgBan4");
	if (document.getElementById("title4"))
	{
		//document.getElementById("title4").style.backgroundColor = "#05080C";
		document.getElementById("title4").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}

}
function osti_setTitle3On(obj)
{
	//Setting The Tab for the First Title
	osti_setControlVisibleOSTI("content3");
	osti_setControlVisibleOSTI("arrow3");
	osti_setControlVisibleOSTI("imgBan3");
	if (document.getElementById("title3"))
	{
		//document.getElementById("title3").style.backgroundColor = "#FF8F00";
		document.getElementById("title3").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill1.jpg)";
	}
	
	osti_setControlInvisibleOSTI("content2");
	osti_setControlInvisibleOSTI("arrow2");
	osti_setControlInvisibleOSTI("imgBan2");
	if (document.getElementById("title2"))
	{
		//document.getElementById("title2").style.backgroundColor = "#05080C";
		document.getElementById("title2").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	osti_setControlInvisibleOSTI("content1");
	osti_setControlInvisibleOSTI("arrow1");
	osti_setControlInvisibleOSTI("imgBan1");
	if (document.getElementById("title1"))
	{
		//document.getElementById("title1").style.backgroundColor = "#05080C";
		document.getElementById("title1").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}
	osti_setControlInvisibleOSTI("content4");
	osti_setControlInvisibleOSTI("arrow4");
	osti_setControlInvisibleOSTI("imgBan4");
	if (document.getElementById("title4"))
	{
		//document.getElementById("title4").style.backgroundColor = "#05080C";
		document.getElementById("title4").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
	}

}
function osti_setTitle4On(obj) 
{
    //Setting The Tab for the First Title
    osti_setControlVisibleOSTI("content4");
    osti_setControlVisibleOSTI("arrow4");
    osti_setControlVisibleOSTI("imgBan4");
    if (document.getElementById("title4")) {
        //document.getElementById("title4").style.backgroundColor = "#FF8F00";
        document.getElementById("title4").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill1.jpg)";
    }

    osti_setControlInvisibleOSTI("content2");
    osti_setControlInvisibleOSTI("arrow2");
    osti_setControlInvisibleOSTI("imgBan2");
    if (document.getElementById("title2")) {
        //document.getElementById("title2").style.backgroundColor = "#05080C";
        document.getElementById("title2").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
    }
    osti_setControlInvisibleOSTI("content3");
    osti_setControlInvisibleOSTI("arrow3");
    osti_setControlInvisibleOSTI("imgBan3");
    if (document.getElementById("title3")) {
        //document.getElementById("title3").style.backgroundColor = "#05080C";
        document.getElementById("title3").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
    }
    osti_setControlInvisibleOSTI("content1");
    osti_setControlInvisibleOSTI("arrow1");
    osti_setControlInvisibleOSTI("imgBan1");
    if (document.getElementById("title1"))
    {
        //document.getElementById("title1").style.backgroundColor = "#05080C";
        document.getElementById("title1").style.backgroundImage = "url(http://www.grupocma.com/images/titleFill2.jpg)";
    }
}*/
