// MOD MODCP EXTENSION
function setCheckboxes(theForm, elementName, isChecked)
{
    var chkboxes = document.forms[theForm].elements[elementName];
    var count = chkboxes.length;

    if (count) 
	{
        for (var i = 0; i < count; i++) 
		{
            chkboxes[i].checked = isChecked;
    	}
    } 
	else 
	{
    	chkboxes.checked = isChecked;
    } 

    return true;
}

// add bookmark/favourite
var bkmark_url="http://www.aiuchi.org"
var bkmark_title="Aiuchi Jiu Jitsu Association"
var win = null;
self.name = "main";
function addbookmark()
{
	if (document.all)
	window.external.AddFavorite(bkmark_url,bkmark_title)
}

// set unavailable images to empty
function ImageLoadFailed( imageURL ) 
{ 
    window.event.srcElement.style.display = "none"; 
    if( imageURL != "" ) 
    { 
        window.event.srcElement.src = imageURL; 
        window.event.srcElement.style.display = "inline"; 
    } 
} 
