// General functions
function show(name) {
	 obj = document.getElementById(name); obj.style.display = "block";
}
function hide(name) {
	 obj = document.getElementById(name); obj.style.display = "none";
}
function clean(control) {
	control.value = '';
}
function objectEval(text) {
  text = text.replace(/\n/g, ' ');
  text = text.replace(/\r/g, ' ');
  if (text.match(/^\s*\{.*\}\s*$/))
  {
    text = '[' + text + '][0]';
  }
  return eval(text);
}
