function getValue(field) {
  var address = location.search.substring(1);
  var startExtract = address.indexOf(field + "=");
  if (startExtract > -1) {
    startExtract = startExtract + field.length + 1;
    var endExtract = address.indexOf("&",startExtract);
    if (endExtract == -1)
      endExtract = address.length;
    return unescape(address.substring(startExtract,endExtract));
  }
  return '';
}

function inquireWin(property) {
	window.open(property,'formWin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=600,height=450');
	return 0;
}

 var dec = (typeof decodeURIComponent == 'function') ? decodeURIComponent : decode;
  function resize_ifrm() {
    var ifrm = document.getElementById('ifrm');
    if(window.frames['ifrm'] && window.frames['ifrm'].document) {
      window.frames['ifrm'].window.scroll(0,0);
      var body = window.frames['ifrm'].document.body;
      if(body) {
        ifrm.style.height = (body.scrollHeight || body.offsetHeight) + 'px';
      }
    }
  }
  src_checked = false;
  function check_src() {
    if(src_checked) return;
    src_checked = true;
    var ifrm = document.getElementById('ifrm');
    var urlPos = location.search.indexOf("iframeUrl=");
    if(urlPos > -1) {
      var src = dec(location.search.substring(urlPos+10));
    } else {
      var src = URL;
    }
    if(src != ifrm.src) ifrm.src = src;
  }
  
function MM_openBrWindow(theURL,winName,features) 
{
  window.open(theURL,winName,features);
}

function SymError()
{
  return true;
}

window.onerror = SymError;

