// Modal Dialog Box
// copyright 16th March 2009 by Kris K

theForceString = '\n\
<link rel="stylesheet" type="text/css" href="http://www.signum.com/_private/modalstyle.css"> \n\
<script type="text/javascript" src="http://www.signum.com/_private/modalbox.js"></script> \n\
\n\
<div id="box" class="dialog"> \n\
\n\
<fieldset style="border: solid 1px #ddddd4;"> \n\
	<legend class="ProdHead" style="border: solid 1px #ddddd4;">Product Notifications</legend> \n\
		<p style="margin-top:10px; margin-bottom:10px; color: rgb(102,102,76);"> \n\
		By creating an account, you agree to receive occasional software update notifications, \n\
		access expiration reminders, and other <span class="nowrap">e-mail</span> messages related to the products to which you subscribe \n\
		through your account<span class="bullet01">&nbsp;&nbsp;•&nbsp;&nbsp;&nbsp;</span>\n\
		You will be able to unsubscribe by sending us an e-mail. Your account will be removed and notifications will cease.\n\
		</p> \n\
		<p style="margin:0px;padding:0px;" align="center"><center> \n\
		<input type="button" value="I agree" onclick="document.location=\'http://www.signum.com/cgi-bin/ah/AccountHandler.cgi?action=Create\';" \n\
		class="fmButton" style="position:right"><input type="button" value="No, thanks" onclick="hm(\'box\');" class="fmButton" style="width:60px"> \n\
		<input type="button" value="&#187;" onclick="hm(\'box\');sm(\'box2\',400,175);" class="fmButton" style="position:absolute; right:20px;"> \n\
		</center></p> \n\
</fieldset> \n\
</div> \n\
\n\
<div id="box2" class="dialog"><fieldset style="border: solid 1px #ddddd4;"> \n\
	<legend class="ProdHead" style="border: solid 1px #ddddd4;">Product Notifications (cont.)</legend>\n\
		<p style="margin-top:10px; margin-bottom:10px;  color: rgb(102,102,76);">\n\
		Typically, the notifications are sent a few times a year\n\
		<span class="bullet01">&nbsp;&nbsp;•&nbsp;&nbsp;&nbsp;</span>This policy is subject to change without notice\n\
		<span class="bullet01">&nbsp;&nbsp;•&nbsp;&nbsp;&nbsp;</span>Signum Systems does not sell, trade, or otherwise share \n\
		personally identifiable information about its customers. We care.\n\
		</p> \n\
		<p style="margin:0px;padding:0px;" align="center"><center> \n\
		<input type="button" value="Back" onclick="hm(\'box2\');sm(\'box\',350,155);" class="fmButton"> \n\
		</center></p> \n\
</fieldset> \n\
</div>'

function WriteTheForceString() {
  document.write(theForceString);
}


// copyright 8th July 2006 by Stephen Chapman
// http://javascript.about.com/

function pageWidth() {
  return window.innerWidth != null ?
    window.innerWidth : document.documentElement && document.documentElement.clientWidth ?
    document.documentElement.clientWidth : document.body != null ?
    document.body.clientWidth : null;
}

function pageHeight() {
  return window.innerHeight != null ?
    window.innerHeight : document.documentElement && document.documentElement.clientHeight ?
    document.documentElement.clientHeight : document.body != null ?
    document.body.clientHeight : null;
}

function posLeft() {
  return typeof window.pageXOffset != 'undefined' ?
    window.pageXOffset : document.documentElement && document.documentElement.scrollLeft ?
    document.documentElement.scrollLeft : document.body.scrollLeft ?
    document.body.scrollLeft : 0;
}

function posTop() {
  return typeof window.pageYOffset != 'undefined' ?
     window.pageYOffset : document.documentElement && document.documentElement.scrollTop ?
     document.documentElement.scrollTop : document.body.scrollTop ?
     document.body.scrollTop : 0;
}

function $(x) {
  return document.getElementById(x);
}

function scrollFix() {
  var obol = $('ol'); 
  obol.style.top = posTop() + 'px';
  obol.style.left = posLeft() + 'px';
}

function sizeFix() {
  var obol = $('ol'); 
  obol.style.height = pageHeight() + 'px'; 
  obol.style.width = pageWidth() + 'px'; 
}

function kp(e) {
  ky = e ? e.which : event.keyCode; 
  if(ky == 88 || ky == 120)
    hm(); 
  return false;
}

function inf(h) {
  tag = document.getElementsByTagName('select'); 
  for(i = tag.length - 1; i >= 0; i--)
     tag[i].style.visibility = h;

  tag = document.getElementsByTagName('iframe'); 
  for(i = tag.length - 1; i >= 0; i--)
     tag[i].style.visibility = h;
 
  tag = document.getElementsByTagName('object'); 
  for(i = tag.length - 1; i >= 0; i--)
     tag[i].style.visibility = h; 
}

function sm(obl, wd, ht) {
  var obol = $('ol');
  var obbxd = $('mbd');
  
  obbxd.innerHTML = $(obl).innerHTML; 
  obol.style.height = pageHeight() +  'px'; 
  obol.style.width = pageWidth() +  'px'; 
  obol.style.top = posTop() + 'px'; 
  obol.style.left = posLeft() + 'px'; 
  obol.style.display = 'block'; 
  var tp = posTop() + ((pageHeight() - ht) / 2) - 12; 
  var lt = posLeft() + ((pageWidth() - wd) / 2) - 12; 
  var obbx = $('mbox'); 
  obbx.style.top = (tp < 0 ? 0 : tp) + 'px'; 
  obbx.style.left = (lt < 0 ? 0 : lt) + 'px'; 
  obbx.style.width = wd + 'px'; 
  obbx.style.height = ht + 'px'; 
  inf('hidden'); 
  obbx.style.display = 'block'; 
  return false; 
}

function hm() {
  $('ol').style.display = 'none'; 
  $('mbox').style.display = 'none'; 
  inf('visible'); 
  document.onkeypress = '';
}

function initmb() {
  var obody = document.getElementsByTagName('body')[0]; 
  var frag = document.createDocumentFragment(); 
  var obol = document.createElement('div'); 
  obol.setAttribute('id', 'ol'); 
  obol.style.display = 'none'; 
  obol.style.position = 'absolute'; 
  obol.style.top = 0; 
  obol.style.left = 0; 
  obol.style.zIndex = 998; 
  obol.style.width = '100%'; 
  frag.appendChild(obol); 
  var obbx = document.createElement('div'); 
  obbx.setAttribute('id', 'mbox'); 
  obbx.style.display = 'none'; 
  obbx.style.position = 'absolute'; 
  obbx.style.zIndex = 999; 
  var obl = document.createElement('span'); 
  obbx.appendChild(obl); 
  var obbxd = document.createElement('div'); 
  obbxd.setAttribute('id', 'mbd'); 
  obl.appendChild(obbxd); 
  frag.insertBefore(obbx, obol.nextSibling); 
  obody.insertBefore(frag, obody.firstChild); 
  window.onscroll = scrollFix; 
  window.onresize = sizeFix; 
}

window.onload = initmb; 

// eof
