var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i

function checkmail(e){
var returnval=emailfilter.test(e.value)
if (returnval==false){
alert("Digite um E-Mail Válido.")
e.select()
}
return returnval
}


function addFlash(_src,_w,_h){
	var novoHtml = '';
 	novoHtml += '  <OBJECT height="'+_h+'" width="'+_w+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	novoHtml += '  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
	novoHtml += '  wmode="transparent" ALIGN="">';
	novoHtml += '    <PARAM NAME="movie"   VALUE="'+_src+'">';
	novoHtml += '    <PARAM NAME="quality" VALUE="high">';
	novoHtml += '    <PARAM NAME="wmode"   VALUE="transparent">';
	novoHtml += '    <PARAM NAME="bgcolor" VALUE="#FFFFFF">';
	novoHtml += '    <EMBED wmode="transparent" src="'+_src+'" pluginspage="http://www.macromedia.com/go/getflashplayer" height="'+_h+'" width="'+_w+'"></EMBED>';
	novoHtml += '  </OBJECT>';
  document.write(novoHtml);
}


var intCT = 0;
	var vetF = new Array ();
	vetF [0] = "80";
	vetF [1] = "85";
	vetF [2] = "90";
	vetF [3] = "95";
	vetF [4] = "100";
	
	function mostrar (s) {
		
		if (s=="A") {
			intCT++;
			if (intCT>=vetF.length)
				intCT = vetF.length-1;
			document.getElementById("texto").style.fontSize = vetF[intCT]+"%";
		} else {
			intCT--;
			if (intCT<=0)
				iintCT=0;
			document.getElementById("texto").style.fontSize = vetF[intCT]+"%";
		}
	}
