function popUp(thePage,pageName,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize'
  NewWindow = window.open(thePage,pageName,settings);
  if (parseInt(navigator.appVersion) >= 4) { NewWindow.window.focus();}}

function mapPopUp(thePage,pageName,w,h,scroll){
  var winl = (screen.width-w)/8;
  var wint = (screen.height-h)/4;
  var settings  ='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize'
  NewWindow = window.open(thePage,pageName,settings);
  if (parseInt(navigator.appVersion) >= 4) { NewWindow.window.focus();}}
  
function validateGuestbook(guestbook) {
	// check to see if a name has been entered
	if(guestbook.guestName.value==""){
		alert("You haven't entered your Name.\nPlease complete this section to continue.")
		guestbook.guestName.focus()
		guestbook.guestName.select()
		return false
	}

	// check to see if the email is valid
	if (guestbook.guestEmail.value=="") {
		alert("You have entered an invalid Email Address.\nPlease complete this section correctly to continue.")
		guestbook.guestEmail.focus()
		guestbook.guestEmail.select()
		return false
	}

	if(guestbook.guestComment.value==""){
		alert("You haven't entered any Comments.\nPlease complete this section to continue.")
		guestbook.guestComment.focus()
		guestbook.guestComment.select()
		return false
	}
}
