// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function QuickResponse(e, text) 
{ 
  e.value += text 
}
function closePopup()
{
document.getElementById('popup-box').style.display='none';
document.getElementById('fade').style.display='none';
}
function openPopup()
{
	document.getElementById('popup-box').style.display='block';
	document.getElementById('fade').style.display='block';
	
	
}
function contactNav(active)
{
	divs = new Array('callroute', 'whitelist', 'cnam', 'disring')
	
	for(x in divs)
	{
		if(divs[x] == active)
		{
			Element.show(divs[x])
		}
		else
		{
			Element.hide(divs[x])
		}
	}
}

function hideNotice()
{
	setTimeout("Effect.toggle('notice', 'appear', {duration:1.0})",5000)
	
}
function CheckAll(chk)
{
for (i = 0; i < chk.length; i++)
chk[i].checked = true ;
alert(chk[i].name + 'is the name')
}

function UnCheckAll(chk)
{
for (i = 0; i < chk.length; i++)
chk[i].checked = false ;
}
