// JavaScript Document

function navigationSwap(objImage,state)
{
	objImage.src = "images/" + objImage.name + "_" + state + ".png";
}

function popupImage900x600(imageName)
{
	eval("window.open('imagepopup900x600.asp?imgname=" + imageName + "',null,'height=600,width=900,location=no,scrollbars=no,menu=no,resizable=no');");
}

function popbio(bioname)
{
	eval("window.open('" + bioname + "',null,'height=275,width=450,location=no,scrollbars=no,menu=no,resizable=no');");
}

function popupImage400x600(imageName)
{
	eval("window.open('imagepopup400x600.asp?imgname=" + imageName + "',null,'height=600,width=400,location=no,scrollbars=no,menu=no,resizable=no');")
}
 
function popupImage700x300(pageName)
{
	eval("window.open('" + pageName + "',null,'height=300,width=700,scrollbars=no,location=no,menu=no,resizable=no');");
}

function validateDealerAppt()
{
	if(document.forms[0].email.value == "" || document.forms[0].emailconfirm.value == "" || (document.forms[0].email.value != document.forms[0].emailconfirm.value))
	{
		alert("The email addresses do not match or are blank, please type them exactly and resubmit.");
	}
	else
	{	
		document.forms[0].submit();
	}
}

function pickRandomQuote()
{
	quote1 = "Ben's story is wonderfully told, very moving, and is a huge gift to not only those who suffer from ALS, but to people who don't know anything about the disease.";
	quote2 = "ALS Film Fund has opened my eyes to something I knew so little about. It has made me aware of the vital need to know more and show others what patients like Ben have to endure.";
	quote3 = "I was deeply touched by the strength and love your family showed, and Ben's extraordinary courage and honesty in making the film (and sharing it with the world).";
	quote4 = "";
	quote5 = "";
	quote6 = "";
	quote7 = "";
	quote8 = "";
	quote9 = "";
	
	// pick quote
	
	// put quote into quote layer
}

