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';
	}
}
function activeLeftMenuItem(ImgObjId, isActive)
{	
	ImgObj = document.getElementById(ImgObjId);
	if (ImgObj)
	{
		if (isActive)
			ImgObj.src = "images/white_arrow.gif";
		else
			ImgObj.src = "images/spacer.gif";
	}

}
function switchOnLeftMenuItem(ImgObjId)
{
	ImgObj = document.getElementById(ImgObjId);
	if (ImgObj)
	{
		ImgObj.src = "images/white_arrow.gif";
	}
}

function switchOffLeftMenuItem(ImgObjId, ImgSrc)
{
	ImgObj = document.getElementById(ImgObjId);
	if (ImgObj)
	{
		ImgObj.src = ImgSrc;
	}
}


function deleteComboPrompt(comboObj)
{	
	var promptOptObj = document.getElementById(comboObj.name+'Prompt');
	if (promptOptObj)
	{
		comboObj.remove(0);
		comboObj.click(); comboObj.click();
	}		
}


