//
<!--
function form_check()
{
  var complete=true;
  var e_mail=document.AddEmailForm.UserEMail.value;
  if ((((e_mail.indexOf("@") == -1) || (e_mail.indexOf(".")== -1) || (e_mail == "your email...") ||(e_mail == null))))
  {
    alert("The email address you entered is not valid, please type it again.");
    complete=false;
  }
  alert("Thank You!");
  return complete;
}

function PopItUp(link){
  var NewWindow = open(link, "ShowTheme", "width=500, height=400");
}
function PopItUpA(link){
  var SSWindow = open(link, "ShowSS", "width=800, height=600,status=no,toolbar=no,menubar=no");
  SSWindow.moveTo(80,30);
}

function preloadImages() 
{
  var d = document; 
  if (d.images)
  { 
    if(!d.MM_p) 
      d.MM_p = new Array();

    var i, j = d.MM_p.length,
           a = preloadImages.arguments; 
           
    for(i=0; i<a.length; i++)
      if ( a[i].indexOf("#")!=0 )
      { 
        d.MM_p[j] = new Image; 
        d.MM_p[j++].src = a[i];
      }
  }
}

function valid_feedback()
{
  if (document.FeedbackForm == null) return false;

  var msg = document.FeedbackForm.uText.value;
       
  if ( (msg == null) || (msg == "")  )
  {
    alert("The feedback message you entered is empty.");
    document.FeedbackForm.uText.focus();
    return false;
  }

  alert("Thank You!");

  return true;          
}

function onLoadBody()
{
  preloadImages('./images/home0.gif',
                './images/home1.gif',
                './images/download0.gif',
                './images/download1.gif',
                './images/buy0.gif',
                './images/buy1.gif',
                './images/links0.gif',
                './images/links1.gif',
                './images/news0.gif',
                './images/news1.gif',
                './images/contact0.gif',
                './images/contact1.gif');
}

function copy_clip(meintext)
{
 if (window.clipboardData) 
   {
   
   // the IE-manier
   window.clipboardData.setData("Text", meintext);
   
   // waarschijnlijk niet de beste manier om Moz/NS te detecteren;
   // het is mij echter onbekend vanaf welke versie dit precies werkt:
   }
   else if (window.netscape) 
   { 
   
   // dit is belangrijk maar staat nergens duidelijk vermeld:
   // you have to sign the code to enable this, or see notes below 
   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
   
   // maak een interface naar het clipboard
   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
                 .createInstance(Components.interfaces.nsIClipboard);
   if (!clip) return;
   
   // maak een transferable
   var trans = Components.classes['@mozilla.org/widget/transferable;1']
                  .createInstance(Components.interfaces.nsITransferable);
   if (!trans) return;
   
   // specificeer wat voor soort data we op willen halen; text in dit geval
   trans.addDataFlavor('text/unicode');
   
   // om de data uit de transferable te halen hebben we 2 nieuwe objecten 
   // nodig om het in op te slaan
   var str = new Object();
   var len = new Object();
   
   var str = Components.classes["@mozilla.org/supports-string;1"]
                .createInstance(Components.interfaces.nsISupportsString);
   
   var copytext=meintext;
   
   str.data=copytext;
   
   trans.setTransferData("text/unicode",str,copytext.length*2);
   
   var clipid=Components.interfaces.nsIClipboard;
   
   if (!clip) return false;
   
   clip.setData(trans,null,clipid.kGlobalClipboard);
   
   }
   alert("Following info was copied to your clipboard:\n\n" + meintext);
   return false;
}

function doExpand(paraNumID, imageNumID) 
{
  paraNum  = document.getElementById(paraNumID);
  imageNum = document.getElementById(imageNumID);

  if (paraNum.style.display=="none") 
  {
    paraNum.style.display=""; 
    imageNum.src="../images/minus.gif"
  }
  else 
  {
    paraNum.style.display="none"; 
    imageNum.src="../images/plus.gif"
  }
}
function doExpand2(paraNumID, imageNumID) 
{
  paraNum  = document.getElementById(paraNumID);
  imageNum = document.getElementById(imageNumID);

  if (paraNum.style.display=="none") 
  {
    paraNum.style.display=""; 
    imageNum.src="../images/minus2.gif"
  }
  else 
  {
    paraNum.style.display="none"; 
    imageNum.src="../images/plus2.gif"
  }
}

function rsz_handler()
{
  var x = document.getElementById("szdiv");
  if (x)
  {
    if (document.documentElement.clientWidth > 1050)
    {
      x.style.width = "800px";
    }
    else
    {
      x.style.width = "100%";
    }
  }
}

//-->
