﻿			
			function PageReload()
			{
				RedirectToEditorView();
			}
			
			function OpenLinkMExt(pRef)
			{
				window.open(pRef,"_blank");
			}
		
			function GoToLinkM(pRef)
			{
				location.href = pRef;
			}
			
			function OpenLinkFromCombo(pThis)
			{
				//var s = document.forms[0].mLinkCombo.options[document.forms[0].mLinkCombo.selectedIndex].value;
				var s = pThis.options[pThis.selectedIndex].value;
				execScript(s);
			}				
			
			 
			function OpenPageListDlg(pModPkid, action, ifa)
			{
				recentpage = document.getElementById("lblPageID").value
				mywin = window.open("../../../admin/PageListDialog.aspx?modulepkid=" + pModPkid + "&action=" + action + "&ifa=" + ifa + "&recentpage=" + recentpage,"FmSelectPageDlg","status=no,resizable=no,menubar=no,toolbar=no,scrollbars=no,width=430, height=500,left=400,top=200");
				if(mywin){
					if(mywin.focus){
						mywin.focus();
					}
				}
			}					

			function GoToLinkFromContainer(pRef)
			{
				location.href = pRef;
			}

			function winOpenFromContainer(pRef)
			{	
				window.open(pRef,"_blank");
			}
									
			function HeaderItemHover(mItem)
			{
				mItem.className = "EditorHeaderItemHover";
				mItem.getElementsByTagName("img")[0].src = mItem.getElementsByTagName("img")[0].src.replace(/.png/,"_hover.png");
			}
			
			function HeaderItemHoverOut(mItem)
			{
				mItem.className = "EditorHeaderItem";
				mItem.getElementsByTagName("img")[0].src = mItem.getElementsByTagName("img")[0].src.replace(/_hover/,"");
			}

function StripWhitespaces(str)
			{
				return str.replace(/^\s+|\s+$/, '');
			}				
			
			
