// JavaScript Document
function clearTextValue(id)
{
	document.getElementById(id).value = "";
}

//here you place the ids of every element you want.
var ids=new Array('services','areas','audience','audiencecomfort','styles','degrees','certifications', 'languages','locations','travel','gender','keywords');

function switchid(id){	
	
	//alert('');

	obj_id = document.getElementById(id);

	if(obj_id.style.display=='none' || obj_id.style.display==''){	
		hideallids();
		showdiv(id);
	}else{
		hideallids();
	}
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

/*<![CDATA[*/
var Lst;

function CngClass(obj,div_id){
 
 obj_id = document.getElementById(div_id);

 if (Lst) Lst.className='';

	if(obj_id.style.display=='none')
		obj.className='active';
	else{
		obj.className='inactive';
	}
	Lst=obj;
}