function valFrm(frm){
	if(trimm(frm.lnm.value).length==0){
		alert("Last name is required");
		return false;
	}
	return true;
}

function trimm(str){
	var re= /^\s*|\s*$/g;
	return str.replace(re,"");
}
function popMap(mapURL){
	popWindow("mapquest", mapURL, 550, 650, 150,150, 'no', 'no', 'yes', 'no', 'yes', 'yes'); 
}
function popWindow(name, url, winWidth, winHeight, winTop, winLeft, toolbar, location, status, menubar, scrollbars, resizable){
	name = window.open(url, name, 'width=' + winWidth + ',height=' + winHeight + ',top=' + winTop+ ',left=' + winLeft + ',toolbar=' + toolbar + ',location=' + location + ',status=' + status + ',menubar=' + menubar + ',scrollbars=' + scrollbars + ',resizable=' + resizable);
	name.focus();
}
