Hashtable.prototype.hash = null;
Hashtable.prototype.keys = null;
Hashtable.prototype.location = null;

function Hashtable()
{
    this.hash = new Array();
    this.keys = new Array();
    this.location = 0;
}


Hashtable.prototype.get = function (key)
{
    return this.hash[key];
}


Hashtable.prototype.put = function (key, value)
{
     if (value == null)
         return null;

     if (this.hash[key] == null)
         this.keys[this.keys.length] = key;
    
    this.hash[key] = value;
}


function formatString(str) {
    return str.replace(/[^a-zA-Z0-9\s\:\.\(\)\!\@\#\$\%\^\&\*\{\}\[\]\+\-\_\?\;\/\~\"]+/g,'');
}


function checkFieldValue(fieldId)
{
    if (document.getElementById(fieldId) != null)
    {
        return (document.getElementById(fieldId).value != null && document.getElementById(fieldId).value != '');
    }
    else
        return false;
}

var omniturePropTable = new Hashtable();
omniturePropTable.put("blogView", "View Blog Post");
omniturePropTable.put("blogAddComment", "Commented Blog Post");
omniturePropTable.put("blogCreated", "Created Blog Post");
omniturePropTable.put("threadView", "View Thread");
omniturePropTable.put("threadAddReply", "Replied Discussion Thread");
omniturePropTable.put("threadCreated", "Created Discussion Thread");
omniturePropTable.put("documentView", "View Document");
omniturePropTable.put("documentAddComment", "Commented Document");
omniturePropTable.put("documentPublished", "Created Document");

var omnitureContentTable = new Hashtable();
omnitureContentTable.put("blogView", "Blog");
omnitureContentTable.put("blogAddComment", "Blog Comment");
omnitureContentTable.put("blogCreated", "Blog Post");
omnitureContentTable.put("threadView", "Thread");
omnitureContentTable.put("threadAddReply", "Thread Reply");
omnitureContentTable.put("threadCreated", "Discussion Thread");
omnitureContentTable.put("documentView", "Document");
omnitureContentTable.put("documentAddComment", "Document Comment");
omnitureContentTable.put("documentPublished", "Document");


