function redirect (url) {
	document.location.href = url;
}

/*function setActive(idx) {
	//alert(idx);
	var i=0;
	for(i=0; i<tabs.length; i++) {
		var t = document.getElementById(active[i]);
		if(idx == tabs[i]) {
			//
			document.getElementById(idx).style.display = "block";
			t.style.backgroundColor = "#ffffff";
			t.style.color = "#660099";
		} else {
			//alert(tabs[i]);
			document.getElementById(tabs[i]).style.display = "none";
			t.style.backgroundColor = "#660099";
			t.style.color = "#ffffff";
		}
	}
}*/

function setCImage(srcx, idx) {
	document.getElementById(idx).src = srcx;
}

function setActive2(idx) {
	//alert(idx);
	var i=0;
	for(i=0; i<tabs.length; i++) {
		var t = document.getElementById(active[i]);
		if(idx == tabs[i]) {
			//
			document.getElementById(idx).style.display = "block";
			t.style.backgroundColor = "#ffffff";
			t.style.color = "#660099";
		} else {
			//alert(tabs[i]);
			document.getElementById(tabs[i]).style.display = "none";
			t.style.backgroundColor = "#660099";
			t.style.color = "#ffffff";
		}
	}
}