$(document).ready(function(){
	$('a.tips').cluetip({ splitTitle: '|',showTitle: false});
	// apply ifixpng
	$('img[src$=.png]').ifixpng();
	$('div#form').ifixpng();
	$('div#searchBox .searchBot').ifixpng();
	$('div#navRight .topnl').ifixpng();
	$('div#navRight .topen').ifixpng();
	$('div#navRight .topfr').ifixpng();
	$('div#navRight .topde').ifixpng();			
	$('div#navRight .center').ifixpng();
	$('div#navRight .bottom').ifixpng();

});

function SetAllCheckBoxes(FormName, FieldName, CheckValue)
{
	if(!document.forms[FormName])
		return;
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
	if(!objCheckBoxes)
		return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
		objCheckBoxes.checked = CheckValue;
	else
		// set the check value for all check boxes
		for(var i = 0; i < countCheckBoxes; i++)
			objCheckBoxes[i].checked = CheckValue;
}

function setVisible(element,isVisible) {
	if (element != null) {
    	if (isVisible) {
                element.style.display = "block";
        } else {
                element.style.display = "none";
        }
	}
}