var txt_only = /[0123456789:.,\"!$\;\\@\\\#%\^\&\*\(\)\[\]\+\_\{\}\`\~\=\|\-\?\<\>\/]/;
var txt_num_only = /[.,:!$\;\\@\\\#%\^\&\*\(\)\[\]\+\_\{\}\`\~\=\|\?\<\>\/\\"]/;
var telno_only = /[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!$.,:\;\\@\\\#%\^\&\*\[\]\+\_\{\}\`\~\=\|\-\?\<\>\/\"\']/;
var date_only = /[!$:\;\\@\\\#%\^\&\*\[\]\+\_\{\}\`\~\=\|\-\?\<\>\(\)]/;
var event_only = /[\;\\\%\^\[\]\_\{\}\`\~\=\|\<\>]/;

function chk_valid_char(val, val_exp) 
{
  var strPass = val.value;
  var strLength = strPass.length;
  var lchar = val.value.charAt((strLength) - 1);
  if(lchar.search(val_exp) != -1) 
	{
    var tst = val.value.substring(0, (strLength) - 1);
    val.value = tst;
  }
}

function checkform ( form )
{
	if (form.resort_search.value == "" &&
	    form.beach_front.value == "" &&
			form.resort_type_search.value == "")
	{
    alert( "Please enter at least 3 characters in the search field or select from the drop down list." );
    form.resort_search.focus();
    return false ;
  }
  return true;
}

