﻿var isMSIE = /*@cc_on!@*/false;
var IE6 = false/*@cc_on || @_jscript_version <= 5.7@*/;

// inputType -- 0 -> search, 1-> maillist
function loadInput(txtID, inputValue) {
	if (document.getElementById(txtID).value == inputValue) {
		document.getElementById(txtID).value = '';
	}
}
function blurInput(txtID, inputValue) {
	if (document.getElementById(txtID).value == '') {
				document.getElementById(txtID).value = inputValue;
	}
	else {
		//eval('inputState'+txtID) = 1;
	}
}
function ActivateTabOne(tabID) {
	ClearTabOneStyle();
	var _tabs = document.getElementById('LinksOne').getElementsByTagName('A');
	for (i = 1; i < _tabs.length+1; i++) {
		if (tabID == i) {
			_tabs[i - 1].style.backgroundColor = 'white';
			_tabs[i - 1].style.borderBottom = 'solid 1px white';
			_tabs[i - 1].style.fontWeight = 'bold';
			document.getElementById('Spot1' + i).style.display = '';
		}
	}
}
function ClearTabOneStyle() {
	var _tabs = document.getElementById('LinksOne').getElementsByTagName('A');
	for (i = 1; i < _tabs.length + 1; i++) {
		_tabs[i - 1].style.backgroundColor = '';
		_tabs[i - 1].style.borderBottom = 'solid 1px #F4E471';
		_tabs[i - 1].style.fontWeight = 'normal';
		document.getElementById('Spot1' + i).style.display = 'none';
	}
}
function ActivateTabTwo(tabID) {
	ClearTabTwoStyle();
	var _tabs = document.getElementById('LinksTwo').getElementsByTagName('A');
	for (i = 1; i < _tabs.length + 1; i++) {
		if (tabID == i) {
			_tabs[i - 1].style.backgroundColor = 'white';
			//_tabs[i - 1].style.borderBottom = 'solid 1px white';
			_tabs[i - 1].style.fontWeight = 'bold';
			document.getElementById('Spot2' + i).style.display = '';
		}
	}
}
function ClearTabTwoStyle() {
	var _tabs = document.getElementById('LinksTwo').getElementsByTagName('A');
	for (i = 1; i < _tabs.length + 1; i++) {
		_tabs[i - 1].style.backgroundColor = '';
		//_tabs[i - 1].style.borderBottom = 'solid 1px #E5EDF8';
		_tabs[i - 1].style.fontWeight = 'normal';
		document.getElementById('Spot2' + i).style.display = 'none';
	}
}

function RepeaterDisplay(repeaterContainer, emptyContainer, checkTag) {
	if (document.getElementById(repeaterContainer).getElementsByTagName(checkTag).length == 0) {
		document.getElementById(emptyContainer).style.display = '';
		document.getElementById(repeaterContainer).style.display = 'none';
	}
	else {
		document.getElementById(emptyContainer).style.display = 'none';
		document.getElementById(repeaterContainer).style.display = '';
	}
}