var mensagem="";
function clickIE() 
{
	if (document.all) 
	{
		(mensagem);
		return false;
	}
}
function clickNS(e) 
{
	if (document.layers||(document.getElementById&&!document.all)) 
	{
		if (e.which==2||e.which==3) 
		{
			(mensagem);
			return false;
		}
	}
}
if (document.layers) 
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
}
else
{
	document.onmouseup=clickNS;
	document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
//************************************************************************************************************************************************************************  
function openWindow(url,largura,altura,top, left)
{
  top=((top/2)-(altura/2));
  left=((left/2)-(largura/2));
  window.open(url, altura, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, menubar=no, top='+top+', left='+left+', width='+largura+', height='+altura);
}
//javascript:openWindow('arquivo.php',700,500,window.screen.availHeight, window.screen.availWidth)
//************************************************************************************************************************************************************************  
function isEmail2(who) 
{
	var email=/^[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*\.([A-Za-z]){2,4}$/i;
	return(email.test(who));
}
function validaEmail(vMail) {
	if (isEmail2(vMail))
   		return(true)
 	else
 	{
   		alert("Por favor, informe um e-mail válido");
		document.form.f_Mail.value='';
		document.form.f_Mail.focus();
   		return(false);
 	}
}
//************************************************************************************************************************************************************************  

//************************************************************************************************************************************************************************  

//************************************************************************************************************************************************************************  
