function copycontent(f) {
    var tempval = eval("document."+f);
    tempval.focus();
    tempval.select();
      if (document.all) {
        therange=tempval.createTextRange();
        therange.execCommand("Copy");
        alert("Code copied to clipboard");
      }
}

function PopConsole() {
	var Url = "http://www.gameinsert.com/box/gisc/index.php?page=website";
	var WindowWidth = 800;
	var WindowHeight = 480;
	var WindowTop = (screen.availHeight/2) - (WindowHeight/2);
	var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
	var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=no,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
	GameWindow = window.open(Url,"ConsoleWindow",WindowProps);
	return;
}