<!-- Begin

function getNoOfTabs(tabName) {
	var count = 0;
	for (i = 0; i < document.getElementsByTagName("div").length; i++){
		divIdName = tabName+eval(i+1);
		if (document.getElementById(divIdName)!= null) { 
			if (document.getElementById(divIdName).id == divIdName)	count = count + 1;
		}
	}
	return count;
}

function dhtmlTabs(activeTab,tabName) {
	if ('undefined' == typeof(tabName))
		tabName = "tabcontent";

	numberOfTabs = getNoOfTabs(tabName);
	
    //DO NOT MODIFY BELOW THIS LINE
    if (document.getElementById) {
        for (i = 1; i < numberOfTabs + 1; i++) {
            if (i != activeTab) {
                document.getElementById(tabName + i).style.display = "none";
            }
        }
        document.getElementById(tabName + activeTab).style.display = "block";
    }
}

// -- END -->