function setTabs() {
	if (location.hash.indexOf("tab_s")>0) {
		c2aTabToggle('solutionsTab','partnerTab');
	} else if (location.hash.indexOf("tab_p")>0) {
		c2aTabToggle('partnerTab','solutionsTab');
	}
}
function c2aTabToggle(item1, item2) {
	document.getElementById(item1).style.paddingBottom="2px";
	document.getElementById(item1).style.color="#000";
	document.getElementById(item2).style.paddingBottom="1px";
	document.getElementById(item2).style.color="#666";
	if (item1=="solutionsTab") { //actionUnderline
		document.getElementById('tabUnderline').style.borderBottomColor="#cbd06d";
		document.getElementById('solutionsDIV').style.display="block";
		document.getElementById('partnerDIV').style.display="none";
		self.location.hash="tab_s";
	}
	if (item1=="partnerTab") {
		document.getElementById('tabUnderline').style.borderBottomColor="#dbb56b";
		document.getElementById('solutionsDIV').style.display="none";
		document.getElementById('partnerDIV').style.display="block";
		document.getElementById('actionTitle').innerHTML="Connect Login";
		self.location.hash="tab_p";			}
}
function checkWholeForm(theForm) {
	var why = "";
	why += isEmpty(document.getElementById("login").value,"login","Your Username");
	why += isEmpty(document.getElementById("password").value,"password","Your Password");
	if (why != "") {
	   alert(why);
	   return false;
	}
	return true;
}
