/* ====================================================
Hide Easy Quote Buttons site wide
==================================================== */


function hideEasyQuote(){
	
	eqLinks = document.getElementsByTagName("a");
	
	addEQalert=0;
	for(i=0;i<eqLinks.length;i++)
	{
		eqLink = eqLinks[i];
		thisCLASS = eqLink.getAttribute("class");
		
		if(thisCLASS == "eqUnavailableIcon")
		{
			addEQalert=addEQalert+1;
		}
	}
	
	if(addEQalert == 0)
	{
		eInputs = document.getElementsByTagName("input");

		for(i=0;i<eInputs.length;i++)
		{
			eInput = eInputs[i];
			thisNAME = eInput.getAttribute("name");

			if(thisNAME == "cbox_quote")
			{
				eInputs.item(i).style.display = "none";
				thisPARENT = eInputs.item(i).parentNode;
				hideEQ = document.createElement('a');
				hideEQ.setAttribute("onclick","alert(eqClosedText)");
				hideEQ.setAttribute("href","#here");
				hideEQ.setAttribute("class","eqUnavailableIcon");
				hideEQ.innerHTML = '<img border="0" alt="Sorry, the Easy Quote system is unavailable - click for full details.." src="/gfx/calendar-closed.gif"/>';
				thisPARENT.appendChild(hideEQ);
			}
		}
	}

}

function showInputs(){

	sInputs = document.getElementsByTagName("input");
	for(i=0;i<sInputs.length;i++)
	{
		sInputs.item(i).style.opacity = "1";
		sInputs.item(i).style.filter = "alpha(opacity=100)";
	}
	
}

//showInputs();
//hideEasyQuote();