// uso:design -> funções genéricasfunction troca(imgName, imgSrc) { // troca uma imagem por outra (roll-over Beethoven)  imgName.src=imgSrc}function troca_label(texto){ // innerHTML troca_label('texto')	document.getElementById("version").innerHTML = texto;}function mostra_div(divID) {  menulayer = document.getElementById(divID);  menulayer.style.visibility = "visible";}function esconde_div(divID) {  menulayer = document.getElementById(divID);  menulayer.style.visibility = "hidden";}//////////////////////////////////////////////////////////// Checa Forms de email ////////////////////////////////////////////////////////////////////////////////////////////function preenchido() {  if ( !document.contato.requirednome.value ) {    alert("Seu nome? :: Your name?");    return false;  }  if ( !document.contato.requiredEmail.value ) {    alert("Seu email? :: Your email?");    return false;  }  if ( !document.contato.requiredTexto.value ) {    alert("Nada a declarar? :: Nothing to declare?");    return false;  }  document.contato.submit();}//////////////////////////////////////////////////////////// Lança PopUp Centralista /////////////////////////////////////////////////////////////////////////////////////////var win = null;function NewWindow(mypage,myname,w,h,scroll){	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',non-resizable'	win = window.open(mypage,myname,settings)}