function photolayout(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/customs/photolayout/"+uid+"/"+newsletter_id+"/NL_template_2", "Change Photo Layout", "width=650px,height=550px,center=1,resize=1,scrolling=0", "recal")
  }
  
  
  
  
function side_active_menu(uid,newsletter_id) 
{
agreewin=dhtmlmodal.open("agreebox", "iframe", "/newsletters/active_menu/"+uid+"/"+newsletter_id+'/NL_template_2/Leftsidebar' , "Article in TOC", "width=650px,height=150px,center=1,resize=1,scrolling=0", "recal")
}


 function Active_menu(uid,newsletter_id)
  {
  agreewin=dhtmlmodal.open("agreebox", "iframe", "/newsletters/active_menu/"+uid+"/"+newsletter_id+'/NL_template_2/Body' , "Article in TOC", "width=650px,height=150px,center=1,resize=1,scrolling=0", "recal")
  }
   function update_Toc_Sidebar_Header(newsletter_id)
  {
  agreewin=dhtmlmodal.open("agreebox", "iframe", "/newsletters/toc__header/"+newsletter_id+'/NL_template_2/Sidebar' , "Leftsidebar TOC Header", "width=650px,height=150px,center=1,resize=1,scrolling=0", "recal")
  }
  
  function update_Toc_Header(newsletter_id)
  {
  agreewin=dhtmlmodal.open("agreebox", "iframe", "/newsletters/toc__header/"+newsletter_id+'/NL_template_2/Body' , "Boby TOC Header", "width=650px,height=150px,center=1,resize=1,scrolling=0", "recal")
  }
  
  function Article_Header(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/newsletters/articleheader/"+uid+"/"+newsletter_id+'/NL_template_2/Body' , "Article Header", "width=650px,height=250px,center=1,resize=1,scrolling=0", "recal")
  }
  function Leftsidebar_Article_Header(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/newsletters/articleheader/"+uid+"/"+newsletter_id+'/NL_template_2/Leftsidebar' , "Article Header", "width=650px,height=250px,center=1,resize=1,scrolling=0", "recal")
  }
  
  function showMessage(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/contents/updatecontent/"+uid+"/"+newsletter_id+'/NL_template_2/2' , "Update Content", "width=750px,height=450px,center=1,resize=1,scrolling=0", "recal")
  }

  function showopenformatted(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/contents/updateopen/"+uid+"/"+newsletter_id+'/NL_template_2/2' , "Update Content", "width=750px,height=450px,center=1,resize=1,scrolling=0", "recal")
  } 
  
  function showhosted(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/contents/updathosted/"+uid+"/"+newsletter_id+'/NL_template_2' , "Update Content", "width=750px,height=450px,center=1,resize=1,scrolling=0", "recal")
  }
  function showPreview(uid)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "../pop/modalfiles/artistprofile.php?user="+uid , "Artist Profile", "width=790px,height=450px,center=1,resize=1,scrolling=0", "recal")
  }
  function hide_modal(){
		agreewin = dhtmlmodal.close("agreebox")
  }

	function openSlide(DivName)
		{
			if(document.getElementById(DivName).style.display == "block")
			{
				document.getElementById(DivName).style.display = "none";
			}
			else
				document.getElementById(DivName).style.display = "block";						
		}
		
  function master_content_update(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/contents/master_content_update/"+uid+"/"+newsletter_id+'/NL_template_2/body_section' , "Update Content", "width=750px,height=450px,center=1,resize=1,scrolling=0", "recal")
  }	
function master_content_update1(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/contents/master_content_update/"+uid+"/"+newsletter_id+'/NL_template_2/leftside_section' , "Update Content", "width=750px,height=450px,center=1,resize=1,scrolling=0", "recal")
  }	
  
 
function master_hcontent_update1(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/contents/master_hcontent_update/"+uid+"/"+newsletter_id+'/NL_template_2/leftside_section' , "Update Content", "width=750px,height=450px,center=1,resize=1,scrolling=0", "recal")
  }	

  
 function master_hcontent_update(uid,newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/contents/master_hcontent_update/"+uid+"/"+newsletter_id+'/NL_template_2/body_section' , "Update Content", "width=750px,height=450px,center=1,resize=1,scrolling=0", "recal")
  }	
function show_publisher_list(newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/Newslettercustoms/share_with_plublisher_network/"+newsletter_id+'/NL_template_2' , "List of Publishers", "width=750px,height=450px,center=1,resize=1,scrolling=0", "recal")
  }
  
  function show_publisher_list_from_user_index(newsletter_id)
  {
   agreewin=dhtmlmodal.open("agreebox", "iframe", "/Newslettercustoms/share_with_plublisher_network_from_user_index/"+newsletter_id+'/NL_template_2' , "List of Publishers", "width=750px,height=450px,center=1,resize=1,scrolling=0", "recal")
  }