function showobj(elmnt) {
	document.getElementById(elmnt).style.visibility="visible"
}

function hideobj(elmnt) {
	document.getElementById(elmnt).style.visibility="hidden"
}

function printParam(divDestiny, grps,xparam1) {	
	if (grps == "login") {
		xHtml = "<input type=\"hidden\" name=\"keyvalue\" value=\"" + xparam1 + "\">";
		xHtml = xHtml + "<input type=\"hidden\" name=\"action\" value=\"login\">";
	}
	if (grps == "mainuser") {
		var param = xparam1.split("$$");
		xHtml =         "<input type=\"hidden\" id=\"destination\" name=\"destination\" value=\"\">";
		xHtml = xHtml + "<input type=\"hidden\" id=\"action\" name=\"action\" value=\"\">";
		xHtml = xHtml + "<input type=\"hidden\" id=\"thematicid\" name=\"thematicid\" value=\"\">";
		xHtml = xHtml + "<input type=\"hidden\" id=\"uid\" name=\"uid\" value=\"" + param[0] +"\">";
		xHtml = xHtml + "<input type=\"hidden\" id=\"level\" name=\"level\" value=\"" + param[1] +"\">";
		xHtml = xHtml + "<input type=\"hidden\" id=\"deparment\" name=\"deparment\" value=\"" + param[2] +"\">";
		xHtml = xHtml + "<input type=\"hidden\" id=\"zipcode\" name=\"zipcode\" value=\"" + param[3] +"\">";
	}
	document.getElementById(divDestiny).innerHTML = xHtml;
}
function Delineate(optParam) {
	document.getElementById(optParam).checked = false;
}
function checkUtility(optParam) {
	document.getElementById(optParam).checked = false;
}
function changeMenu(tabMenu,noTabs, thematic, action, divDestination) {
	var xCounter = 1;
	
	for (xCounter = 1; xCounter <= noTabs; xCounter++) {
		var xtabItem = "tab" + xCounter;

		var tabItem = document.getElementById(xtabItem);
		if (xCounter == tabMenu) {
			tabItem.className  = "current";
		} else {
			tabItem.className  = "";
		}
	}
	if (thematic == 2) {
		txtkeyid = document.frmMain.yrID.value;
		if (txtkeyid.length < 1 || txtkeyid == 0) {
			alert("Please enter Report year before adding budget detail");
		} else {showData(thematic,divDestination,action,0);}
	} else {
		showData(thematic,divDestination,action);
	}
}
function checkBrowser() {
	var browserData = navigator.userAgent;
	var nBrowser = "";
	
	if (browserData.indexOf('Firefox') > 0) {
		nBrowser = "FF";
	} else if (browserData.indexOf('Safari') > 0) {
		nBrowser = "Safari";
	} else if (browserData.indexOf('IE') > 0) {
		nBrowser = "IE";
	}
	return nBrowser;
}
