

function show_hide(content)
{	
	//alert(document.getElementById(content).style.display);
	if (document.getElementById(content).style.display =='none')
	{
	$('#' + content).show('200');
					content.style.display='';
	}
	else
	{
	$('#' + content).hide('200');
					content.style.display='none';
	}
}



//This is used to dynamically change a class...
//not currently used by this site.
function change_class(id)
{										
if (document.getElementById(id).className == 'active')
{
document.getElementById(id).setAttribute("class", "");	
document.getElementById(id).setAttribute("className", "");	//for IE							
}		
else									
	{		
	document.getElementById(id).setAttribute("class", "active");	
	document.getElementById(id).setAttribute("className", "active"); //for IE											
	}	
}		
																
							

	
function show_full_size(image)
{
	document.getElementById('full_size_image').innerHTML="<img src=" + image + " border='0' class='full_size_image'>";
}		
	


function show_hide_digital_download_elements()
	{		
		//get the value from the 'category' drop down			
		var product_format = document.getElementById('product_format').options[document.getElementById('product_format').selectedIndex].value;			
						//alert("product_format is " + product_format);
		
		//show or hide unit number field		
		if (product_format=="both") 
		{
			//form1.unit_number.style.display='inline';	
												//alert("product_format is " + product_format);
			document.getElementById("digital_upload_container").style.display='block';	
			document.getElementById("price_physical_container").style.display='block';	
			document.getElementById("price_digital_container").style.display='block';
		} 
		else if (product_format=="digital") 
		{
			//form1.unit_number.style.display='inline';	
			document.getElementById("digital_upload_container").style.display='block';		
			document.getElementById("price_digital_container").style.display='block';
			document.getElementById("price_physical_container").style.display='none';	
		} 
		else //physical
		{
			//form1.unit_number.style.display='none';	
			document.getElementById("digital_upload_container").style.display='none';	
			document.getElementById("price_physical_container").style.display='block';	
			document.getElementById("price_digital_container").style.display='none';
		}
	}
	
	
function confirm_delete(page)
{	
	var agree=confirm("Are you sure you want to delete the '" + page + "' page?");
	if (agree)
	return true;
	else
	return false;
}	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
