// clears and replaces text in form input fields and textareas
// -----------------------------------------------------------------
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}

function newDetailsWindow(htmlfile,width,height) {
	if (!width) {
		width = '400';
	}
	if (!height) {
		height = '450';
	}
	htmlWindow = window.open(htmlfile, 'newWin', 'width='+width+',height='+height+',toolbar=no,scrollbars=yes');
	htmlWindow.focus();
}

function openerLink(url) {
	opener.location.href = url;
}
