function changeZ(isOn)
{
	el = document.getElementById('contact');
	if(isOn)
	{
		el.style.zIndex=1;
	} else
	{
		el.style.zIndex=1000;
	}
}

function show_tab(which, tab, no) {
	changeFolder(which);
	var div1 = document.getElementById('first' );
	var div2 = document.getElementById('second');
	if(no==3)
	{
		var div3 = document.getElementById('third' );
		div3.className = ('third'==which ) ? 'tab' : 'tab hidden';
	}
	div1.className = ('first'==which ) ? 'tab' : 'tab hidden';
	div2.className = ('second'==which) ? 'tab' : 'tab hidden';
	var tabs = document.getElementById('folders')
		.getElementsByTagName('ul')[0]
		.getElementsByTagName('a');
	for( each_tab in tabs ) {
		this_tab = tabs[each_tab];
		this_tab.className = (this_tab==tab) ? which + ' current' : '';
	}
	return false;
}

function changeFolder(which)
{
	var folderDiv = document.getElementById('folder_tabs');
	switch (which)
	{
		case 'first':
			folderDiv.className = 'tabs one'
			break;
		case 'second':
			folderDiv.className = 'tabs two'
			break;
		case 'third':
			folderDiv.className = 'tabs three'
			break;
	}
	
	return false;
}
// ============================
// = BLANK INPUT TEXT DEFAULT =
// ============================

function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
}
