function copyright(e) {
	var data = new Date();
	var foro = "Bolsa de Mulher ©2000/2012 . Fale com o Bolsa: producao.2011@bolsademulher.com";

	if (document.all) {
		window.clipboardData.clearData("Image")
		window.clipboardData.setData("Text", foro)
	} else {
	/*
  	Mozilla
		var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
		if (!str) return false
		str.data = foro;

		var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);
		if (!trans) return false;

		trans.addDataFlavor("text/unicode");
		trans.setTransferData("text/unicode",str,foro.length * 2);

		var clipid = Components.interfaces.nsIClipboard;
		var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
		if (!clip) return false;

		clip.setData(trans,null,clipid.kGlobalClipboard);
    */
	}
}



function clickIE() {if (document.all) {return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {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");
document.onselectstart=new Function("return false");
document.onblur = copyright;
document.onbeforeunload = copyright;
//document.onmousedown=new Function("return false");
//document.onclick=new Function("return true");

document.onkeypress = function (evt) {
  var c = false;
  var ctrl = false;
  var charc = false;
  if (document.getElementById && (!document.all)) {
    ctrl = evt.ctrlKey;
    c = String.fromCharCode(evt.which).toUpperCase();
    charc = evt.which;
  } else if (document.layers) {
    ctrl = Event.CONTROL_MASK;
    c = String.fromCharCode(evt.which).toUpperCase();
    charc = evt.which;
  }

  if (ctrl){
  	if (c=='A'||c=='C'){
		copyright();
		return false;
		}
  }
}


var AntiCopyId = false
function _DoCopyright(valor) {

	switch (valor) {
  	case 0: {
			AntiCopyId = 'Div'+Math.random();
			AntiCopyId = AntiCopyId.replace(".","");
		  var oCorpo =document.getElementsByTagName('body').item(0);
			var oDiv = document.createElement("DIV");

		  oDiv.id = AntiCopyId;
			oDiv.style.width=1;
			oDiv.style.height=1;
			oDiv.style.visibility='hidden';
			oDiv.style.overflow='hidden';
			AJAX("http://bebe.bolsademulher.com//copyright/?t=protege",AntiCopyId);
    } break;

  	case 1: {
			AJAX("http://bebe.bolsademulher.com//copyright/?t=protege",AntiCopyId);
    } break;

  	case 2: {
			AJAX("http://bebe.bolsademulher.com//copyright/?t=livre",AntiCopyId);
    } break;

   }
}

