<!-- 

  function XMLHTTPObject() {
    var xmlhttp=false;
    //If XMLHTTPRequest is available
    if (window.XMLHttpRequest) {
        try {xmlhttp = new XMLHttpRequest();}
        catch(e) {xmlhttp = false;}
    } else if(typeof ActiveXObject != 'undefined') {
	//Use IE's ActiveX items to load the file.
        try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");}
        catch(e) {
            try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
            catch(E) {xmlhttp = false;}
        }
    } else  {
        xmlhttp = false; //Browser doesn't support Ajax
    }
    return xmlhttp;
  }
  var http = new XMLHTTPObject();
  var responseid = "";

  function showSampleFont(fontname) {
    var url = '/invitations.php?action=getfont&fontname=' + fontname;
    http.open('GET', url, true);
    http.onreadystatechange = handleFontResponse;
    http.send(null);
  }

  function handleFontResponse() {
    if(http.readyState == 4) {
      var response = http.responseText;
      if (response != "Not Found") {
        //eval("document.getElementById['fontimage'].src = '" + response + "'" );
        document.getElementById('fontimage').src = response;
      }
    }
  }

//-->