<!--
function down() { if (event.button==2) { alert('ELBER - A Ferragem do Vidro'); } } 
function up() { if (event.button==2) { alert('ELBER - A Ferragem do Vidro'); } } 
document.onmousedown=down; document.onmouseup=up;
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;}

//-->

function mouseDown(e) {
 var shiftPressed=0;
 var ctrlPressed=0;
 if (parseInt(navigator.appVersion)>3) {
  if (navigator.appName=="Mozilla")
           shiftPressed=(e.modifiers-0>3);
  else shiftPressed=event.shiftKey;

  if (navigator.appName=="Mozilla")
           ctrlPressed=(e.modifiers-0>1);
  else ctrlPressed=event.ctrlKey;

  if (shiftPressed || ctrlPressed) {
   alert ('ELBER - A Ferragem do Vidro');
   return false;
  }
 }
 return true;
}

if (parseInt(navigator.appVersion)>3) {
 document.onmousedown = mouseDown;
   if (navigator.appName=="Netscape")
         document.captureEvents(Event.MOUSEDOWN);
}
document.oncontextmenu=new Function("alert ('ELBER - A Ferragem do Vidro');return false;");

function limpa(){

document.form.email.value = "";

}

function teste(){
	alert('teste');
}

function popup(pagina){
window.open(pagina,'Imagens','width=550,height=648,scrollbars=no');
}

function valida_email(){
  var obj = eval("document.form.email");
  var txt = obj.value;
  if ((txt.length != 0) && ((txt.indexOf("@") < 1) || (txt.indexOf('.') < 7))){
    alert('Favor inserir um e-mail válido, exe.: endereco@dominio.');
	obj.focus();
  }
}
