function validate_guestbook(f)
{
	with (f)
	{


	if (emailbox.value=="")
		{
		alert("Email Address Required!")
		emailbox.focus()
		emailbox.select()
		return false
		}

	x=document.guestbookform
	at=x.emailbox.value.indexOf("@")
	if (at == -1)
	{
	alert("Invalid Email Address!")
	return false
	}


	if (commentbox.value=="")
		{
		alert("Comment Required")
		commentbox.focus()
		commentbox.select()
		return false
		}

	return true

	}

}


function validate_register(f)
{
	with (f)
	{


	if (emailbox.value=="")
		{
		alert("Please fill in your last name")
		lastnamebox.focus()
		lastnamebox.select()
		return false
		}

	if (firstnamebox.value=="")
		{
		alert("Please fill in your first name")
		firstnamebox.focus()
		firstnamebox.select()
		return false
		}

	if (agebox.value=="")
		{
		alert("Please fill in your age")
		agebox.focus()
		agebox.select()
		return false
		}

	if (addressbox.value=="")
		{
		alert("Please fill in your address")
		addressbox.focus()
		addressbox.select()
		return false
		}


	if (citybox.value=="")
		{
		alert("Please fill in your city")
		citybox.focus()
		citybox.select()
		return false
		}


	if (statebox.value=="")
		{
		alert("Please fill in your state")
		statebox.focus()
		statebox.select()
		return false
		}

	if (zipbox.value=="")
		{
		alert("Please fill in your zipcode")
		zipbox.focus()
		zipbox.select()
		return false
		}

	if (occupationbox.value=="")
		{
		alert("Please fill in your occupation")
		occupationbox.focus()
		occupationbox.select()
		return false
		}

	if (schoolbox.value=="")
		{
		alert("Please fill in your school")
		schoolbox.focus()
		schoolbox.select()
		return false
		}

	if (phone1box.value=="")
		{
		alert("Please add your area code")
		phone1box.focus()
		phone1box.select()
		return false
		}

	if (phone1box.value=="")
		{
		alert("Please add your area code")
		phone1box.focus()
		phone1box.select()
		return false
		}

	if (phone3box.value=="")
		{
		alert("Please fill in the first 4 digits of your phone number")
		phone3box.focus()
		phone3box.select()
		return false
		}

	x=document.streetteam_application
	at=x.emailbox.value.indexOf("@")
	if (at == -1)
	{
	alert("Your email address is invalid.")
	return false
	}


	if (emailbox.value=="")
		{
		alert("Please fill in your email address")
		emailbox.focus()
		emailbox.select()
		return false
		}

	return true

	}

}




function industrywindow()
{
window.open
("media_video_industry.asp","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=380, height=320")
}

function translationswindow()
{
window.open
("media_video_translations.asp","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=380, height=320")
}

function newWindowpresskit(presskit) 
{
imageWindow = window.open(presskit,'presskitWin','width=650,height=500,scrollbars=yes,menubar=no,location=no,resizable=no')
imageWindow.focus()
}

function newWindowgalleryportrait(gallery) 
{
imageWindow = window.open(gallery,'galleryWin','width=320,height=430,scrollbars=no,menubar=no,location=no,resizable=no')
imageWindow.focus()
}

function newWindowgallerylandscape(gallery) 
{
imageWindow = window.open(gallery,'galleryWin','width=420,height=330,scrollbars=no,menubar=no,location=no,resizable=no')
imageWindow.focus()
}



