﻿// JScript
//seltab('boxc',%20'headc',%20'srcc',%204,%202)
function seltab(bpref, hpref, upref, id_max, selected) {
	//alert(selected);
if (! document.getElementById) return;
for (i = 0; i <= id_max; i++) {
if (! document.getElementById(bpref + i)) continue;
if (i == selected) {
document.getElementById(bpref + i).style.visibility = "visible";
document.getElementById(bpref + i).style.position = "";
document.getElementById(hpref + i).className = "active";
document.getElementById(upref + i).style.color = "black";
document.getElementById(upref + i).style.background = "";
document.getElementById(upref + i).style.textDecoration = "none";
} else {
document.getElementById(bpref + i).style.visibility = "hidden";
document.getElementById(bpref + i).style.position = "absolute";
document.getElementById(hpref + i).className = "interactive";
document.getElementById(upref + i).style.color = "";
document.getElementById(upref + i).style.background = "#fff";
document.getElementById(upref + i).style.textDecoration = "";
}
}
}
//window.onload = function() {
//seltab('box', 'head', 'src', 10, 1);
//seltab('boxc', 'headc', 'srcc', 10, 1);
//}

