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



var act='';
function sub_link_show(sid,cid)
{
	if (document.getElementById(cid).className=='sel')
	{
		act=cid;
	}
	document.getElementById(sid).style.display='block';
	document.getElementById(cid).className='sel';
	
}
function sub_link_hide(sid,cid)
{
	document.getElementById(sid).style.display='none';
	document.getElementById(cid).className='';
	if (act==cid)
	{
		document.getElementById(act).className='sel';
	}
}