function inicio(){
alert(document.domain);
}

// mensagens diferentes se a matria  'fechada contra cpia' ou no
if (copiaFechada==undefined) {var copiaFechada = false;}
//var copiaFechada = true;

if (copiaFechada) {
  var message = "Caro usurio, no  possvel copiar este contedo.";
}
else {
  var message = "Prezado leitor,\n\nNo  permitida a utilizao desse contedo para fins comerciais e/ou profissionais.";

}
function copyright ()
{
 if (document.domain=='localhost') {
  alert(message);
  if (copiaFechada) return false;
  }
}
// exibe a mensagem de alerta ao dar ctrl-c ou ctrl-a em browsers no-IE
if ((document.getElementById || document.layers) && (!document.all)) {
  document.onkeypress = function (evt) {
    var r = '';
    var ctrl = 0;
    
    if (document.getElementById && (!document.all)) {
      ctrl = evt.ctrlKey;
    }
    else if (document.layers) {
      ctrl = Event.CONTROL_MASK;
    } 
    r = String.fromCharCode(evt.which).toUpperCase();    
    if (ctrl){
    	if (r=='C'){
       if (document.domain=='localhost') {
        alert(message);
        if (copiaFechada) return false;
        }
  		}
  	}
  }
}
