// Generic JavaScript interactions library

// Red Zone Alley 2006

// image definitions for the navigation

playlistson			=	new Image(180,48);
playlistson.src 	=	"images/playlists_on.gif";
playlistsoff		=	new Image(137,48);
playlistsoff.src	=	"images/playlists_off.gif";

presson			=	new Image(180,34);
presson.src 	=	"images/press_on.gif";
pressoff		=	new Image(137,34);
pressoff.src	=	"images/press_off.gif";

galleryon			=	new Image(180,33);
galleryon.src 	=	"images/gallery_on.gif";
galleryoff		=	new Image(180,33);
galleryoff.src	=	"images/gallery_off.gif";

contacton		=	new Image(180,55);
contacton.src 	=	"images/contact_on.gif";
contactoff		=	new Image(180,55);
contactoff.src	=	"images/contact_off.gif";


function rollover(imgName){
	document.getElementById(imgName).src = eval(imgName + "on.src");	
}

function rolloff(imgName){
	document.getElementById(imgName).src = eval(imgName + "off.src");	
}

function not_blank(el){
	return el != '';	
}

function is_email(el){
	return((el.value != '')&&((el.value.indexOf('@') < 0) || (el.value.indexOf('.') < 0)))
}

function validate(frmName){
	frm = document.getElementById(frmName);
	if(!frm.policy.checked){
		alert("Please read and agree to our\nPrivacy Policy.");
		return false;
	} else { frm.submit(); }
}


/* pop-up link opener */
function win(url){
	myWindow = window.open(url,url,"width=860,height=660,scrollbars=yes");	
}