// JavaScript Documentvar b1, b2, b3 = new Image();

function bagChange(a)
{
	if (a.options[a.selectedIndex].value == 264)
	{
		 b1 = "/images/products/product_shots/dj_dufflebag_blue.jpg";
		 document['bagC'].src = b1;
	}
	if (a.options[a.selectedIndex].value == 265)
	{
		 b2 = "/images/products/product_shots/dj_dufflebag_black.jpg";
		 document['bagC'].src = b2;
	}
	if (a.options[a.selectedIndex].value == 266)
	{
		 b3 = "/images/products/product_shots/dj_dufflebag_red.jpg";
		 document['bagC'].src = b3;
	}
}

function checkSelection()
{
	var selectedValue=document.osForm.productid.options[document.osForm.productid.selectedIndex].value;
	
	//alert(selectedValue);
	//return(false);

	if(selectedValue=='0')
	{
		alert('You must select the version you need: Mac or Windows!');
		return(false);
	}else{
		return(true);
	}
}

function checkFree()
{
	var selectedValue=document.osForm.bundle1option2.options[document.osForm.bundle1option2.selectedIndex].value;

	if(selectedValue=='0')
	{
		alert("You must select the Free volume!");
		return(false);
	}else{
		return(true);
	}
}

function checkHost()
{
	var selectedValue=document.osForm.productid.options[document.osForm.productid.selectedIndex].value;
	
	//alert(selectedValue);
	//return(false);

	if(selectedValue=='0')
	{
		alert('You must select Host Application!');
		return(false);
	}else{
		return(true);
	}
}

function checkediting() {
	var selectedValue=document.osForm.productid.options[document.osForm.productid.selectedIndex].value;
	if(selectedValue=='0') {
		alert('You must select your editing application!');
		return(false);
	}else{
		return(true);
	}
}
