function valida_mail_g (mail) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(mail.value)){
	} else {
		if (mail.value == '') {

		} else {
			alert('O formato do endereço de e-mail está incorreto.');
			mail.focus()
		}
	}
}

function popup (url, w, h) {
	apopup = window.open(url,'','width=' + w + ',height=' + h + ',resizable=no,scrollbars=no');
}

function chk_text(id) {
	for (var a = 1; a <= 4 ; a++){
		document.all['d' + a].style.display = 'none';
	}

	document.all[id].style.display = 'block';

/*	
	if (document.all[id].style.display == 'none'){
		document.all[id].style.display = 'block';
	} else {
		document.all[id].style.display = 'none';
	}
*/
}

function click() {
	if (event.button == 2) {}
}

function retorno () {
	return false;
}

document.onmousedown = click
document.oncontextmenu = retorno
document.onselectstart = retorno
document.ondragstart = retorno