       	
		
		/* Transfer editor code to aspx control for persistence. */
		function GetCode(closeWindow, htmlEditorCntrl) 
		{	
		    updateRTE(htmlEditorCntrl);
			
			var htmlEditor = document.getElementById(htmlEditorCntrl);			
			document.getElementById('ctl00_ContentPlaceHolder1_txtCustomText').value = htmlEditor.value;	
			
			if(closeWindow)
				document.getElementById('ctl00_ContentPlaceHolder1_postIndicator').innerText = "SAVE_CLOSE";
			else
				document.getElementById('ctl00_ContentPlaceHolder1_postIndicator').innerText = "SAVE";				
				
			document.forms[0].submit();
		}
		
		function PreviewPage()
		{
		    if(document.getElementById('ctl00_ContentPlaceHolder1_pageName').value.length > 0)
		    {
		        var pageName = document.getElementById('ctl00_ContentPlaceHolder1_pageName').value;
		        //alert('pageName :' + pageName );		    
		        window.open(pageName,'PreViewer','width=760,height=700,top= 0, left=10, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		    }
		}

		function OpenLink(url) {
		    var w = window.open(url, 'external', 'width=860,height=700,top= 0, left=10, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		    w.focus();
		}

		function OpenLinkLaborDay(url) {
		    window.open(url, 'external', 'width=1020,height=800,top= 0, left=10, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		}
		
		/*
		function ClearCode() {
			if(document.Form1.htmlEditor != null ) 
				document.Form1.htmlEditor.value = "";
		}
		
		// Copy text loaded from code behind into text editor
		function CheckCustomText() {
		    document.Form1.htmlEditor.value = document.getElementById('ctl00_ContentPlaceHolder1_txtCustomText').value;
			
		}
		
		// Copy text loaded from code behind into text editor
		function ResetOriginalText() {
			document.Form1.htmlEditor.value = document.getElementById('ctl00_ContentPlaceHolder1_txtCustomTextOriginal').value;
		}	
		*/