<!-- Begin popupWin
timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function popupWin(URL, orient) {
var windowprops = "width=405,height=415,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";
if (orient == 'V') {windowprops = "width=405,height=415,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";}

text = "<html><head><title>Image DataBase Company - Image Preview</title></head><body";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "><center><table border='0' cellpadding='0' cellspacing='0' width='100%' height='100%'><tr><td width='100%'>";
text += "<p align='center'><img src='" + URL + "'></td></tr></table>";

if (timeout != 0) text +="<br></p><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";

text += "</center></body></html>";

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}

//  End popupWin-->

<!-- Begin Scroller
var max=0;
function textlist() {
max=textlist.arguments.length;
for (i=0; i<max; i++)
this[i]=textlist.arguments[i];
}
tl = new textlist( 
"Coming Soon!",
"Atlanta, Orlando, Los Angeles, Seattle, Denver, New York City.",
"Many more exciting destinations are in the works.",
"Check back soon if you don't see what you are looking for.",
"Better yet, send us an email with what you need - we may be working on it now!");

var x = 0; pos = 0;
var l = tl[0].length;
function textticker() {
document.tickform.tickfield.value = tl[x].substring(0, pos) + "_";
if(pos++ == l) {
pos = 0; 
setTimeout("textticker()", 2000); 
if(++x == max) x = 0; 
l = tl[x].length;
} else
setTimeout("textticker()", 50);
}
//  End Scroller -->

// Begin isValid
// Checks validity of email form contents

function isValid(form) {
var text = "";
var missing = false;

	if (form.firstname.value == "") {
		text = text + "First Name. ";
		missing = true;
	}

	if (form.lastname.value == "") {
		text = text + "Last Name. ";
		missing = true;
	}

	if (form.email.value.indexOf("@") == "-1" | form.email.value.indexOf(".") == "-1" | form.email.value == "") {
		text = text + "Email. ";
		missing = true;
	}

	if (missing == true) {
		alert("The following fields are missing and/or invalid: " + text);
		return false;
	}
	else {
		return true;
	}
}

// End isValid