       	
		
		/* 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=900,height=900,top= 0, left=10, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		    }
		}

		function OpenLink(url) {
		   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');
		 }

		function OpenLinkLaborDay(url) {
		    window.open(url, 'external', 'top= 0, left=10, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		}

		function Open5kDetails(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 OpenFB() {
		    //alert('Please check back soon as our new FaceBook page is currently being constructed!');
		    window.open('http://www.facebook.com/pages/Friends-Christian-Cancer-Care/144407598916029', 'fbWelcome', '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 OpenFivekRunPayPal() {
		    alert('Please check back soon as our Ticket Order page is almost ready!');
		    //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 OpenFivekRun() {
		    window.open('RunDonation2010.htm', 'SponsorRunner', 'width=900,height=700,top= 10, left=10, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		}

		function OpenTwitter() {
		    window.open('http://twitter.com/friendsccg', 'FriendsgTwitter', 'width=' + GetW() + ',height=' + GetH() + ',top=10, left=10, toolbar=yes, location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes, resizable=yes');
		}

		function OpenJeremy() {
		    window.open('Jeremy.aspx', 'Jeremy', 'width=900,height=700,top= 30, left=40, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		}

		function OpenRachael() {
		    window.open('Rachael.aspx', 'Rachael', 'width=900,height=700,top= 35, left=45, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		}

		function OpenEstoreProductView(url) {
		    window.open(url, 'ProductView', 'width=600,height=500,top= 35, left=45, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		}

		function ComingSoon()
		{
		    alert("The selected Page is coming soon. Please check back!");
		}

		function OpenStore() {
		    window.open('eStore.htm', 'Store', '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 OpenSurvey() {
		    //window.open('http://www.MyCustomerResponse.com/Surveys/InitSurvey.aspx?SID=6&AID=35', 'Surveys', 'width=1020,height=800,top= 0, left=10, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		    window.open('http://www.MyCustomerResponse.com', 'Surveys', '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;
		}	
		*/
		function OpenGrouptestimonies() {
		    window.open('http://friendschristiancancercare.blogspot.com/p/group-testimonies.html', 'grouptestimonies', '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 OpenRace2010() {
		    window.open('race2011.htm', 'race2011', 'width=620,height=800,top= 0, left=10, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		}

		function Open2011Course()
		{
		    window.open('images/2011LaborDayMap.pdf', '2011LaborDayMap', 'width=620,height=800,top= 0, left=10, toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes, resizable=yes');
		}
