	function sendAction(act, form1)
	{
		if (act == 'removeall') {
			if (confirm('Are you sure you want to remove all items?')) {
				form1.action.value = act;
				form1.submit();
			}
		} else {
			form1.action.value = act;
			form1.submit();
		}
	}

	function sendRemoveAction(act, rem, form1){
		form1.action.value = act;
		form1.item_to_remove.value = rem;
		form1.submit();
	}

	function changeDelivery(act,form1){
		form1.action.value = act;
		form1.submit();

	}

	function changeSize(act,form1){
		form1.action.value = act;
		form1.submit();

	}

	function linkrotate(id){
    which=document.getElementById(id + '_select').selectedIndex
    
		var mylinks=new Array()
		//add in more links if you want (ie:mylinks[3]=...)
		mylinks[0]="noimage.php"
		mylinks[1]="ash.php"
		mylinks[2]="oak.php"
		mylinks[3]="pitchpine.php"
		mylinks[4]="teak.php"
		mylinks[5]="balmoral.php"
		mylinks[6]="mahognay.php"		
		window.tool_popup(mylinks[which])
	}
		
	function showimage()
		{
		if (!document.images)
		return
		document.images.frame.src=
		document.pictures.frame.options[document.pictures.frame.selectedIndex].value
	}

	function linkrotate2(id){
		which=document.getElementById(id + '_select').selectedIndex

		var mylinks=new Array()
		//add in more links if you want (ie:mylinks[3]=...)
		mylinks[0]="noimage.php"
		mylinks[1]="bluemount.php"
		mylinks[2]="whitemount.php"
		mylinks[3]="greenmount.php"
		mylinks[4]="creammount.php"
		window.tool_popup(mylinks[which])
	}

	function showimage2()
		{
		if (!document.images)
		return
		document.images.mount.src=
		document.pictures.mount.options[document.pictures.mount.selectedIndex].value
	}
  function update_image(id)
  {
    img = document.getElementById(id + '_image')
    select = document.getElementById(id + '_select')
    img.src = select.options[select.selectedIndex].value
  }
  function tool_popup(url) {
    window.open(url, '_blank', 'toolbar=none, locationbar=none, menubar=none, status=none, width=730, height=500')
  }

	function writeFlash(mov)
{
	document.write('<object type="application/x-shockwave-flash" data="'+mov+'" width="530" height="250"><param name="movie" value="'+mov+'" /><param name="wmode" value="transparent" /></object>');
}
