function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function PhotoViewer(strPhoto) {
	window.open('photoviewer.asp?Photo='+strPhoto,'photoviewer','width=400,height=400');
}

function BigPhotoViewer(strPhoto) {
	window.open('photoviewer.asp?Photo='+strPhoto,'photoviewer','width=780,height=400');
}

function validEmail()
{
    url = document.booking.email.value;
    if (url != null && url != "")
    {
        a = url.lastIndexOf("@");
        b = url.lastIndexOf(".");
        c = url.indexOf(":");
        d = url.indexOf("/");
		e = url.substring(0,a);
		f = e.indexOf("@");
		g = url.substring(a+1,url.length);
		h = g.indexOf("[");
		i = g.indexOf("]");
		j = g.indexOf("<");
		k = g.indexOf(">");
		l = url.substring(a+1,b);
		m = url.substring(b+1,url.length);
		n = url.substring(0,a);
		o = 0;
		if (a > b) {o++};
		if (c != -1) {o++};
		if (d != -1) {o++};
		if (f != -1) {o++};
		if (h != -1) {o++};
		if (i != -1) {o++};
		if (j != -1) {o++};
		if (k != -1) {o++};
		if (l.length < 2) {o++};
		if (m.length < 2) {o++};
		if (n.length < 1) {o++};

        if (o == 0)
        {
	        return (true);
        }
	    else
	    {
            return (false);
	    }
    }
}
