function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

document.oncontextmenu = function(){return false} 

function ventana(url) { 
	link = window.open(url,"Link","toolbar=0,location=no,directories=0,status=0,menubar=1,scrollbars=no,resizable=0,width=550,height=300,left=120,top=120"); 
	link.focus();
}

function ventana1(url) { 
	link = window.open(url,"Link","toolbar=0,location=no,directories=0,status=0,menubar=1,scrollbars=no,resizable=0,width=550,height=500,left=120,top=120"); 
	link.focus();
}

if(self!=parent)parent.location.href=self.location.href;

function makepage(src)
{

  return "<html>\n" +
    "<head>\n" +
    "<title>Dibujo para colorear</title>\n" +
    "<script>\n" +
    "function step1() {\n" +
    "  setTimeout('step2()', 10);\n" +
    "}\n" +
    "function step2() {\n" +
    "  window.print();\n" +
    "  window.close();\n" +
    "}\n" +
    "</scr" + "ipt>\n" +
    "</head>\n" +
    "<body onLoad='step1()'>\n" +
    "<img src='" + src + "'/>\n" +
    "</body>\n" +
    "</html>\n";
}

function printme(evt)
{
  if (!evt) {

    evt = window.event;
  }    
  var image = evt.target;
  if (!image) {
    image = window.event.srcElement;
  }
  src = image.src;
  link = "about:blank";
  var pw = window.open(link, "_new");
  pw.document.open();
  pw.document.write(makepage(src));
  pw.document.close();
}
