// call where you want, first parameter is the id of the checkbox to check..., second parameter the trigger
function Checker(checkboxID,checkboxVal) {
    var checkBox = document.getElementById(checkboxID);
    //document.writeln(checkboxID+'-'+checkboxVal+' ___ ');
    if (checkBox)
    {
        if (checkBox.value == checkboxVal) {
            checkBox.checked = true;
        }
    }
}

function iSelecter(selectID,selectVal)
{

	var selectBox = document.getElementById(selectID);
	items = selectVal.split(",");
	for(j=0;j<selectBox.options.length;j++)
	{
		selectBox.options[j].selected=false;
	}
	for(i=0;i<items.length;i++)
	{
		for(j=0;j<selectBox.options.length;j++)
		{
			if(selectBox.options[j].value==items[i])
			{
				selectBox.options[j].selected=true;
			}


		}

	}
	if(selectBox.selectedIndex>=0) return selectBox.selectedIndex;
	else return 0;
}
