/*
//	DIV
function hideDIV(whichLayer)
{
	if (document.getElementById)
	{
		var style = document.getElementById(whichLayer).style;
		style.display = "none";
	}
	else if (document.all)
	{
		var style = document.all[whichLayer].style;
		style.display = "none";
	}
	else if (document.layers)
	{
		var style = document.layers[whichLayer].style;
		style.display = "none";
	}
}

function showDIV(whichLayer)
{
	if (document.getElementById)
	{
		var style = document.getElementById(whichLayer).style;
		style.display = "block";
	}
	else if (document.all)
	{
		var style = document.all[whichLayer].style;
		style.display = "block";
	}
	else if (document.layers)
	{
		var style = document.layers[whichLayer].style;
		style.display = "block";
	}
}

function toggleDIV(whichLayer)
{
	if (document.getElementById)
	{
		var style = document.getElementById(whichLayer).style;
		style.display = style.display=="block" ? "none":"block";
	}
	else if (document.all)
	{
		var style = document.all[whichLayer].style;
		style.display = style.display=="block" ? "none":"block";
	}
	else if (document.layers)
	{
		var style = document.layers[whichLayer].style;
		style.display = style.display=="block" ? "none":"block";
	}
}


//	FORM

function select_add(select,label,value) {
	for(i=0; i<select.options.length; i++)
		if (value!="::" && select.options[i].value==value) {
			alert(label+" is already in the list.");
			return;
		}
	select.options[select.options.length]=new Option(label,value);
}

function select_and_submit(Form,select,hidden) {
	hidden.value="";
	
	for(i=0; i<select.options.length; i++)
		hidden.value+=","+select.options[i].value;
	
	hidden.value=hidden.value.substring(1,hidden.value.length);
	Form.submit();
}

function select_move(select,dir) {
	if (select.selectedIndex==-1 || select.selectedIndex+dir<0 || select.selectedIndex+dir>=select.options.length)
		return;

	hilite=select.selectedIndex+dir;

	var from=select.options[select.selectedIndex];
	var to=select.options[select.selectedIndex+dir];

	select.options[select.selectedIndex+dir]=new Option(from.text,from.value);
	select.options[select.selectedIndex]=new Option(to.text,to.value);
	select.selectedIndex=hilite;
}


function select_move_down(select) {
	select_move(select,1);
}

function select_move_up(select) {
	select_move(select,-1);
}

function select_remove(select) {
	if (select.selectedIndex==-1)
		return;
	
	hilite=select.selectedIndex;

	select.options[select.selectedIndex]=null;

	if (hilite<select.options.length)
		select.selectedIndex=hilite;
	else
		select.selectedIndex=select.options.length-1;
}
*/