function changeLinkC(layerName, modeAct) {
	document.getElementById(layerName+"_action").href=unescape("javascript:"+modeAct+"(\'"+layerName+"\')");
}

function hide(layerName) {
	document.getElementById(layerName).style.display = "none";
	changeLinkC(layerName,'show');
}

function show(layerName) {
	document.getElementById(layerName).style.display = "block";
	changeLinkC(layerName,'hide');
}

function clearField(text) {
	if (text.value == text.defaultValue) {
		text.value = "";
	}
}

function fillField(text) {
	if (text.value=='') {
		text.value = text.defaultValue;
	}
}
