
function popUp(url,name,w,h) {
	var winl = Math.round ((screen.width - w) / 2); //the Math.round bit fixes a Safari centering bug
	var wint = Math.round ((screen.height - h) / 2); //the Math.round bit fixes a Safari centering bug
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',location=no,menubar=no,status=no';
	win = window.open(url, name, winprops);
	if (window.focus) { win.window.focus(); }
}

function clearText(field) {
	 if(field.value == field.defaultValue) {
		 field.value = "";
	 }
 }