var docReady = false;

function HideForm(){
	try{
		document.getElementById('Prod').style.display="none";
	}catch(e){
	}
}
function ShowForm(){
	try{
		document.getElementById('Prod').style.display="block";
	}catch(e){
	}
}

function Toggle(e){
	if (e.style.display == "none"){
		e.style.display = "block";
	}else{
		e.style.display = "none";
		}
	}

function ShowMe(e){
	var nCount=3;
	if (docReady){
		for (var i=1;i<nCount;i++)
			{
			document.getElementById('Pop'+i).style.display='none';
			}
		e.style.display="block";
	}else{
		mytimeout = setTimeout("HideAll()",500);
	}
}

function HideAll(){
	var nCount=3;
	if (docReady){
		for (var i=1;i<nCount;i++)
			{
			document.getElementById('Pop'+i).style.display='none';
			}
	}else{
	mytimeout = setTimeout("HideAll()",500);
	}
}


function inText() {
    document.getElementById("CatIcon").innerText = "4";
}
function ShowCat() {
	if (docReady){
		if (document.getElementById("CategoryList").style.display == "none") {
			document.getElementById("CategoryList").style.display = "";
			document.getElementById("CatIcon").innerText = "6";
		} else {
			document.getElementbyId("CategoryList").style.display = "none";
			document.getElementById("CatIcon").innerText = "4";
		}
	}else{
		mytimeout = setTimeout("ShowCat()",500);
	}
}
function ShowKey() {
	if (docReady){
		if (document.getElementById("KeySites").style.display == "none"){
			document.getElementById("KeySites").style.display = "";
			getElementById("KeyIcon").innerText = "6";
		}else{
			document.getElementById("KeySites").style.display = "none";
			getElementById("KeyIcon").innerText = "4";
		}
	}else{
		mytimeout = setTimeout("ShowKey()",500);
	}
}
function SetNeeds(){
		var cIndex=document.getElementById("NeedsSelect").value;
		if (cIndex != ""){
			top.location.href = cIndex;
		}
	}
function ShowMenu(e){
	document.getElementById("hometab").style.display = "none";
	e.style.display = "";
}




