function focusField(field, value) {
	if(field.value == value)
		field.value = '';
}

function blurField(field, value) {
	if(field.value == '')
		field.value = value;
}

function verifyphone(thefield) {
	if(thefield.value != '') {
		if(thefield.value.match(/^[0-9]{3}-[0-9]{3}-[0-9]{4}/)) {
			//return true
		} else {
			if(thefield.value.match(/^[0-9]{10}/)) {
				var fixedNumber = thefield.value.substring(0,3) + "-" + thefield.value.substring(3,6) + "-" + thefield.value.substring(6,10) ;
				thefield.value = fixedNumber;
			} else {
				alert("PLEASE ENTER 10 DIGIT PHONE NUMBER (XXX-XXX-XXXX)")
				thefield.select();
			}
		}
		return false;
	}
}

function newWindow(theURL,winName,popwidth,popheight){
	var xcord = (screen.width - popwidth) / 2;
	var ycord = (screen.height - popheight) / 2;
	var openpopup = window.open(theURL,winName,'width='+popwidth+',height='+popheight+',left='+xcord+',top='+ycord+'');
	return openpopup;

	closePop(top.popup);
}
