function HideParagraph(paragraph)
{
	paragraph.style.display = 'none';
}

function ShowParagraph(paragraph)
{
	paragraph.style.display = 'inline';
}

function ShowParagraph2(paragraph)
{
var para = document.getElementById(paragraph);
ChangeParagraphDisplay(para);
}

function ChangeParagraphDisplay(paragraph)
{
	if(paragraph != null)
	{
		if(paragraph.style.display == 'none')
		{
			ShowParagraph(paragraph)
		}
		else if (paragraph.style.display == 'inline' || paragraph.style.display == '')
		{
			HideParagraph(paragraph)
		}
	}
}

function Hide(id)
{
	var paragraph = document.getElementById(id);
	ChangeParagraphDisplay(paragraph);
	if(paragraph.nextSibling.nextSibling != null)
	{
		if(navigator.appName == "Microsoft Internet Explorer"){
		ChangeParagraphDisplay(paragraph.nextSibling);
		}else{
		ChangeParagraphDisplay(paragraph.nextSibling.nextSibling);
		}
	}		
}

function SubmitReisZoeker(form, page, clear, sender)
{
	if(form != null && page != null)
	{
		if(sender != null)
		{
			for(var el=0; el < form.elements.length; el++)
			{
				if(form.elements[el].id != sender.id)
				{
					for(var op=0; op < form.elements[el].options.length; op++)
					{
						if(form.elements[el].options[op].selected != true)
						{
							form.elements[el].options[op].disabled = true;
						}
					}
				}
			}
		}
		
		if(clear != null && clear)
		{
			form.action = page+"?ContinentID=-1&DestinationID=-1&DurationID=-1&MonthYear=-1&PriceID=-1";
			form.submit();
		}else{
			form.action = page;
			form.submit();
		}
	}
}

