document.onclick = function(e)
{
  var target = e ? e.target : window.event.srcElement;

  while (target && !/^(a|body)$/i.test(target.nodeName))
  {
    target = target.parentNode;
  }

  if (target && target.getAttribute('rel')
      && target.rel == 'external')
  {
    var external = window.open(target.href);

    return external.closed;
  }
return e;
}


	function makeBacktoTop(){
		var curr_url = document.location + "";
		var result = "";
		result += "<p class='btn_backtotop'><a href='";
		result += curr_url.split("#")[0];
		result += "#page_top'>Back to top</a></p>";
		document.write(result);
	}

	function makeanchor_opn(instring){
		var curr_url = document.location + "";
		var result = "";
		result += "<a href='";
		result += curr_url.split("#")[0];
		result += instring + "'>";
		document.write(result);
	}