//****************************************************
//USER LISTS
//****************************************************
//CHECK IF SOMEONE CHANGED THE DROPDOWN TO NEW LIST 
 function update_my_lists_dropdown(value) 
 { 
      var el1 = document.getElementById('new_list'); 
      if(value == 'new') 
      { 
           el1.style.display = ''; 
      } 
      else 
      { 
           el1.style.display = 'none'; 
      } 
 } 
  
 //SUBMIT LIST DATA ON MOVIE PAGES 
 function submitLists() 
 { 
      var url='/pages/profile/update_lists.php'; 
      var post_body=Form.serialize('personal_lists'); 
      new ajax (url, {postBody : post_body, onComplete :  returnListData});      
 } 
  
 function returnListData(request) 
 { 
 	document.getElementById('personal_lists_div').innerHTML = request.responseText; 
 }
 
 function show_list_checkboxes(num_checkboxes)
 {
 	var extra_space = 15; //This is the extra height to add to the div in addition to the height allotted for each checkbox
 	var checkbox_height = num_checkboxes * 20; //This is the space allocated for each checkbox.
 	var total_height = extra_space + checkbox_height;
 	
 	foldDown('list_checkboxes', 0.3, total_height);
 	document.getElementById('show_all_lists_text').style.display = 'none';
 }