function launchShot(ID, H, W) {
	var shotWin = window.open("shots_viewer.cfm?shotID=" + ID, "sw", "height=" + H + ",width=" + W);
		shotWin.focus();
}
function launchShotFLA(ID) {
	var shotWin = window.open("shots_viewer_fla.cfm?shotID=" + ID, "sw", "height=400,width=400");
		shotWin.focus();
}
function launchMedia(ID) {
	var mediaWin = window.open("media_viewer.cfm?mediaID=" + ID, "mw", "height=400,width=400");
		mediaWin.focus();
}
	
function rowOn(R) {
	R.style.backgroundColor = "d2f3b8";
	R.style.cursor = "pointer";
}

function rowOff(R, N) {
	R.style.backgroundColor = (N == 1)? "F6F6F5" : "ECEDEB";
}

function navOp(ID) {
	document.location.href = "shots_operator.cfm?opID=" + ID;
}
function navShot(ID) {
	document.location.href = "shots_detail.cfm?shotID=" + ID;
}
function navProd(ID) {
	document.location.href = "shots_production.cfm?prodID=" + ID;
}


//button rollover code
function on_image(image_name)
	{ document[image_name].src = eval(image_name + "_on.src") }

function off_image(image_name)
	{ document[image_name].src = eval(image_name + "_off.src") }

function isEmpty(fieldValue)
	{
	if ( fieldValue.length == 0 || fieldValue == "" || fieldValue == null )
		{
		return true;
		}
	else
		{
		var allSpaces = true;
		
		for ( i=0; i < fieldValue.length; i++ )
			{
			if ( fieldValue.charAt(i) != " " )
				{ allSpaces = false }
			}
		
		if (allSpaces)
			{ return true }
		else
			{ return false }
		}
	}
