 function clearField(theText) {
     if (theText.value == theText.defaultValue) {
         theText.value = ""
     }
 }
 
 function fillField(theText) {
     if (theText.value == "") {
         theText.value = theText.defaultValue   
     }
 }

function WindowOpen(URL, name, PopUpWidth, PopUpHeight, resizePopUp) {
	Top = Math.round((screen.height / 2) - (PopUpHeight / 2));
	Left = Math.round((screen.width / 2) - (PopUpWidth / 2));
	schermPop = window.open(URL, name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=' + resizePopUp + ',copyhistory=no,dependent=no,screenX=0,screenY=0,width=' + PopUpWidth + ',height=' + PopUpHeight + ',top=' + Top + ',left=' + Left);
	schermPop.focus();
}
 
