/*
	5.a. INIT THE CONTENT EDITOR
	*/		
	function Init()
		{
		//Please set editorWidth > (larger than) 580 and editorHeight > (larger than) 345.
		idContent.editorWidth = "800";
		idContent.editorHeight = "345";
		idContent.header = header;
		idContent.footer = footer;
				
		/*Provide base url to enable relative path feature
		  (used for constructing relative path instead of 
		   the default complete path when inserting links or images)
		Example :
			If this is the location of your editor :
			http://localhost/ContentEditor/folder01/folder02/default.asp
			then use :
			var baseUrl = "http://localhost/ContentEditor/";
			var baseUrlNew = "../../";
					
			If this is the location of your editor :
			http://localhost/ContentEditor/folder01/default.asp
			then use :
			var baseUrl = "http://localhost/ContentEditor/";
			var baseUrlNew = "../";		
		*/
		//idContent.baseUrl = "http://LOCALHOST/CONTENTEDITOR/";
		idContent.baseURL = "http://www.caregiversupportnetwork.org/"
		idContent.baseUrlNew = "../";
		
		//Use or not use Save Button
		idContent.useSave = true;
		
		//fill editor with content
		idContent.content=idContentTemp.innerHTML
		}	
	/*
	5.b. OPEN IMAGE LIBRARY LOOKUP
	*/				
	function OpenImgLookup()
		{
		//You can provide your own image library here. 
		//This is just to show how to use/open Image Library (using our built in ASP-based Image Library)
		var popleft=((document.body.clientWidth - 440) / 2)+window.screenLeft; 
		var poptop=(((document.body.clientHeight - 460) / 2))+window.screenTop-40;		
		window.open("default_Image.asp","NewWindow","scrollbars=NO,width=480,height=520,left="+popleft+",top="+poptop)
		}
	/*
	5.c. HANDLE THE SAVE ACTION
	*/				
	function Save()
		{
  		Form1.body.value = idContent.content;
		if (Form1.name.value == "")
			{
			alert("Please fill the document Title.");
			return ;
			}
  		Form1.submit();	
  		}	