// JavaScript Document

// clear the default value of a textfield
function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = "";
}

// restore the default value of a textfield
function restoreDefault(el, phrase) {
  if (el.value=='') el.value = phrase;
}


/*
Auto center window script
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

