﻿
function evalIt(it)
{
    return eval(it);
}

function dynamicInfo(title,content,h)
{
    
	h=(!h ? 200 : h);
		
	var boxH=200;
	var buttonColor="#666";

	var windowProps=''+
	'top=0,left=0,width=500px,height='+h+'px,scrollbars=1,resizable=1,menubar=0';

	if(top.consoleRef){top.consoleRef.close()}
	
	top.consoleRef=window.open('','dynabox',windowProps);
	{
		var windowContent=''+
		'<html><head>'+
		'<title>'+title+'</title>'+
		'<style type="text/css">'+
		'body {font-size: 90%; color: #066; '+
		' font-family: arial,helvetica,sans-serif; background: #ccc;}'+
		'.close {'+
		' text-decoration: none; font-weight: bold; '+
		' border: solid 2px; border-color: #eee #eee #333 #333; '+
		' color: #fff; background: '+buttonColor+'; padding: 3px;'+
		'}'+
		'p {text-align: center;}'+
		'.close:hover {'+
		' background: #ccc; color: #666; border-color: #fff;}'+
		'div{background: #fff; padding: 10px; border: solid 1px #000;}'+
		'.blackbox {'+
		'display: inline-block; color: #a30; font-weight: bold; margin-right: 20px}'+
		'</style>'+
		'</head><body onload="self.focus()">'+
		'<div>'+content+'</div>'+
		'<p><a class="close" href="javascript: void window.close()">Close Window</a></p>'+
		'</body></html>';
		top.consoleRef.document.writeln(windowContent);
		top.consoleRef.document.close();

	}
}

