function getValueIfElementNotNull(elementId){
	
	if ($(elementId) != null){
		return $F(elementId);
	}else{
		return "";
	}
}

function setValueIfElementNotNull(elementId, value){
	if ($(elementId) != null){
		$(elementId).value = value;
	}
}

function selectboxAll(selectBoxObject,selectStatus)
{
	if(selectBoxObject)
	{
		var len=selectBoxObject.length;
		for(var i=0;i<len;i++)
		{
			selectBoxObject.options[i].selected=selectStatus;
		}
	}
}

function selectAllDiffCheckBoxesById(checkboxId, CheckValue,checkboxCount)
{
	for(var i = 1; i <= checkboxCount; i++)
	{
		objCheckBox=document.getElementById(""+checkboxId+"_"+i);
		if(objCheckBox)
		objCheckBox.checked = CheckValue;
	}
}


