﻿// JScript
//seltab('boxc',%20'headc',%20'srcc',%204,%202)
function seltab(bpref, hpref, upref, id_max, selected, tab_id) {
	//alert(tab_id);
	var bg_array = new Array();
	 bg_array[1] = "#466750";
	 bg_array[2] = "#6D5C43";
	 bg_array[3] = "#9F8A1D";
	
	
if (! document.getElementById) return;
for (i = 0; i <= id_max; i++) {
if (! document.getElementById(bpref + i)) continue;
if (i == selected) {
	
	//alert( bg_array[i]);
	//document.getElementById("wrap-in").style.background = bg_array[i]; //"#6D5C43"
	
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 = "#FF9900";
//document.getElementById(upref + i).style.background = "";
//document.getElementById(upref + i).style.textDecoration = "underline";

} else {
document.getElementById(bpref + i).style.visibility = "hidden";
document.getElementById(bpref + i).style.position = "absolute";
document.getElementById(hpref + i).className = "";
document.getElementById(upref + i).style.color = "";
//document.getElementById(upref + i).style.background = "";
//document.getElementById(upref + i).style.textDecoration = "none";
}
}
}
//window.onload = function() {
//seltab('box', 'head', 'src', 10, 1);
//seltab('boxc', 'headc', 'srcc', 10, 1);
//}
