function doExample() {
	document.getElementById('fTags').innerHTML = 'Tag Cloud Generator\nMyIpNow\nSite Catalog';
    document.getElementById('fLinks').innerHTML = 'http://www.tagcloudgenerator.com\nhttp://www.myipnow.net\nhttp://www.sitecatalog.org';
    document.getElementById('fPriority').innerHTML = '2\n5\n1';
}

function doClear() {
    document.getElementById('fTags').innerHTML = '';
    document.getElementById('fLinks').innerHTML = '';
    document.getElementById('fPriority').innerHTML = '';
    document.getElementById('fSiteUrl').value = '';	
}

function changeColor(elementId, colorDivId) {
    document.getElementById(colorDivId).style.backgroundColor = document.getElementById(elementId).value;
}

var colorPicker = new ColorPicker();

window.onload = function() {
	document.getElementById('minColor').style.backgroundColor = document.getElementById('fMinColor').value;
    document.getElementById('maxColor').style.backgroundColor = document.getElementById('fMaxColor').value;
    document.getElementById('bgColor').style.backgroundColor = document.getElementById('fBgColor').value;
    
    document.getElementById('fMinColor').onblur = function() { changeColor('fMinColor', 'minColor'); };
    document.getElementById('fMaxColor').onblur = function() { changeColor('fMaxColor', 'maxColor'); };
    document.getElementById('fBgColor').onblur = function() { changeColor('fBgColor', 'bgColor'); };
};