

function ShowAndHide(id)
{
	if(id.getAttribute("id") == "CateringDrop")
	{		
		var Cat = document.getElementById('Caterer').style;	
		var Fill = document.getElementById('filler').style;	
		
		if (document.getElementById('CateringDrop').value == "True")
		{
			Cat.display = '';
			Fill.display = 'none';
		}
		
		else if (document.getElementById('CateringDrop').value == "False")
		{
			Cat.display = 'none';
		}
	}
	else if(id.getAttribute("id") == "MusicDrop")
	{		
		var Mus = document.getElementById('MusicRow').style;	

		if (document.getElementById('MusicDrop').value == "True")
		{
			Mus.display = '';
			Fill.display = 'none';
		}
		
		else if (document.getElementById('MusicDrop').value == "False")
		{
			Mus.display = 'none';
		}
	}
	else if(id.getAttribute("id") == "FloralDrop")
	{		
		var Flo = document.getElementById('Florist').style;	

		if (document.getElementById('FloralDrop').value == "True")
		{
			Flo.display = '';
			Fill.display = 'none';
		}
		
		else if (document.getElementById('FloralDrop').value == "False")
		{
			Flo.display = 'none';
		}
	}
}
	
function tabIt(from,to)
{
	if (from.getAttribute&&from.value.length==from.getAttribute("maxlength"))
	to.focus();
}

function ShowHideDiv(id)
{	
	var displayed = document.getElementById(id).style;
	if (displayed.display == '') displayed.display = 'none';
	else if (displayed.display == 'block') displayed.display = 'none';
	else displayed.display = 'block';
}

function ShowDiv(id)
{	
	var displayed = document.getElementById(id).style;
	displayed.display = 'block';
}

function HideDiv(id)
{	
	var displayed = document.getElementById(id).style;
	displayed.display = 'none';

function ShowButtonAsProcessing(btn)
{
	btn.value = "...processing";	
	__doPostBack(btn.name,'');
	btn.disabled = true;
}

// Pop up a new window
function popup(url,width,height,scrollbars) 
{
	var popwidth = width;
	var popheight = height;
	var leftoffset = (screen.width - popwidth - 10)/2;
	var topoffset = (screen.height - popheight - 40)/2;
	window.open(url,'_blank','titlebar=no,resizable=no,scrollbars=' + scrollbars + ',width=' + popwidth + ',height=' + popheight + ',left=' + leftoffset + ',top=' + topoffset);
}
}
