function clearContent(field, initContent)
{
	if (field.value==initContent)
	{
		field.value="";
	}
}
function restoreContent(field, initContent)
{
	if (field.value=="")
	{
		field.value = initContent;
	}
}

function getBrowserType()
{
	var tmpImages = document.getElementsByTagName('img');
	var fImage = tmpImages[0];
	brType = 'none';
	
	if(typeof fImage.style.opacity != 'undefined')
	{
		brType = 'w3c';
	}
	else if(typeof fImage.style.MozOpacity != 'undefined')
	{
		brType = 'moz';
	}
	else if(typeof fImage.style.KhtmlOpacity != 'undefined')
	{
		brType = 'khtml';
	}
	else if(typeof fImage.filters == 'object')
	{
		brType = (fImage.filters.length > 0 && typeof fImage.filters.alpha == 'object' && typeof fImage.filters.alpha.opacity == 'number') ? 'ie' : 'none';
	}
	else
	{
		brType = 'none';
	}
}