function show_hide_shop_for_box(which)	{
	if (which == 0)	{
		document.getElementById('if_no').style.display = 'block';
		}
	else	{
		document.getElementById('if_no').style.display = 'none';
		fields = new Array('shop_for_eld', 'shop_for_teen', 'shop_for_child', 'shop_for_infant', 'shop_for_souvs');
		for (x = 0 ; x < fields.length ; x++)	 {
			document.getElementById(fields[x]).checked = false;
			}
		}
	}

function show_hide_other_box(which)	{
	if (which == 0)	{
		document.getElementById('other_desc').style.display = 'none';
		document.getElementById('o_body_desc').value = '';
		}
	else	{
		document.getElementById('other_desc').style.display = 'block';
		document.getElementById('o_body_desc').value = 'enter other body description here';
		}
	}

function check_name()	{

	if (trim(document.getElementById('c_name').value).length == 0)	{
		alert("Please enter your name in the box provided");
		document.getElementById('c_name').focus();
		return false;
		}
	
	}

function write_flash()	{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='851' height='367' quality='high'>");
	document.write("<param name=movie value='flash.swf'>");
	document.write("<param name=quality value='high'>");
	document.write("<embed src='flash.swf' quality='high' width='851' height='367' align='left' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>");
	document.write("</object>");
	}

function trim(str)	{  
	while(str.charAt(0) == " ")	{  
		str = str.substring(1);
		}
	while(str.charAt(str.length-1) == " " )	{  
		str = str.substring(0,str.length-1);
		}
  return str;
}

