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

function showHint(type)
{
	if($('hint_' + type).className.indexOf('visible') == -1)
		$('hint_' + type).className = 'field_hint visible';
	else
		$('hint_' + type).className = 'field_hint';
}
function setUniqueId()
{
	var name = $('widget_title').value;
	
	var id = 'wrt.' + name.replace(/\W/g, "") + '.sitelauncher';
	
	id = id.toLowerCase();
	
	$('widget_id').value = id;
}