function so_clearInnerHTML(obj) {
	while(obj.firstChild) obj.removeChild(obj.firstChild);
}

function changeArtInstructions2(formValue){
	

  switch(formValue){
    
    case 'I will upload an image':
    	
    	if($("#existing_image").val() == 1){
	    
			$("#sub_green_switching_art_instructions").css('display','none');    
			$("#sub_green_switching_art_instructions_2").css('display','block');    		
    				
    	}else{

			$("#sub_green_switching_art_instructions").css('display','block');    
			$("#sub_green_switching_art_instructions").html('<p>Click the button below to upload file .jpg, .tiff, .eps, .pdf formats only please, under 2 megabytes in size. Please <a href="contact_us.php" style="color:#fff;">email us</a> with larger files.<br></p><input name="patchFile[]" type="file" id="patchFile1" size="13" class="patch_upload_input" />');
			$("#sub_green_switching_art_instructions_2").css('display','none');    		
    		
    	}

		//html('<p>Click the button below to upload file .jpg, .tiff, .eps, .pdf formats only please, under 2 megabytes in size. Please <a href="contact_us.php" style="color:#fff;">email us</a> with larger files.<br></p><input name="patchFile[]" type="file" id="patchFile1" size="13" class="patch_upload_input" />');
    	//$("#sub_green_switching_art_instructions").css('height','120px');
    	
    break;    
    
    case 'Fax':

		$("#sub_green_switching_art_instructions_2").css('display','none');
		$("#sub_green_switching_art_instructions").css('display','block');
		$("#sub_green_switching_art_instructions").html("Please fax your image to 410.822.1951");
    	//$("#sub_green_switching_art_instructions").css('height','auto'); 
    
    break;    
	
    case "I'll describe it, you design it":

		$("#sub_green_switching_art_instructions_2").css('display','none');
		$("#sub_green_switching_art_instructions").css('display','block');
		$("#sub_green_switching_art_instructions").html("Please add your description in the comments field below.");    
    	//$("#sub_green_switching_art_instructions").css('height','auto');   
    
    break;    
  
  
  }	
	
	
}


function changeArtInstructions(formValue){

  switch(formValue){
  
    case 'I will email an image':
    
      var insLink=document.createElement("A");
      insLink.setAttribute("href",'mailto:info@bayimprint.com');
      insLink.className = "sub_green_switching_art_instructions_link";
      
      var linkText = document.createTextNode("info@bayimprint.com");
      insLink.appendChild(linkText);

      var beforeText = document.createTextNode("Please email image to ");

      so_clearInnerHTML(document.getElementById("sub_green_switching_art_instructions"));
      document.getElementById("sub_green_switching_art_instructions").appendChild(beforeText);    
      document.getElementById("sub_green_switching_art_instructions").appendChild(insLink);
    
    break;
    
    case 'I will upload an image':
    
      var insLink=document.createElement("A");
      insLink.setAttribute("href",'mailto:info@bayimprint.com');
      insLink.className = "sub_green_switching_art_instructions_link";
      
      var linkText = document.createTextNode("info@bayimprint.com");
      insLink.appendChild(linkText);

      var beforeText = document.createTextNode("Please email image to ");

      so_clearInnerHTML(document.getElementById("sub_green_switching_art_instructions"));
      document.getElementById("sub_green_switching_art_instructions").appendChild(beforeText);    
      document.getElementById("sub_green_switching_art_instructions").appendChild(insLink);
    
    break;    
    
    case 'Fax':


      var beforeText2 = document.createTextNode("Please fax your image to 410.822.1951");

      so_clearInnerHTML(document.getElementById("sub_green_switching_art_instructions"));
      document.getElementById("sub_green_switching_art_instructions").appendChild(beforeText2);    
    
    break;    
    
    case 'I\'ll describe it, you design it':

      so_clearInnerHTML(document.getElementById("sub_green_switching_art_instructions"));
  
    
    break;    
  
  
  }
  



}