﻿function Content_Edit(strPageName) {
	URL = 'Content_Edit.aspx?PN=' + strPageName;
   OpenWindow(URL, 600, 800);
}

function HerbOfTheMonth(strAction) {
	URL = 'HerbOfTheMonth_' + strAction + '.aspx';
	OpenWindow(URL, 600, 800);
}

function OpenWindow(strURL, intHeight, intWidth) {
   var screenposx = (screen.width / 2) - intWidth / 2;
   var screenposy = (screen.height / 2) - intHeight / 2;

   if (navigator.appName == 'Microsoft Internet Explorer') {
      OpenPopupWindow = open(strURL, 'PopupWindow', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizeable=no,scrollbars=no,width=' + intWidth + 'px,height=' + intHeight + 'px,top=' + screenposy + 'px,left=' + screenposx + 'px');
   } else {
      OpenPopupWindow = open(strURL, 'PopupWindow', 'dependent=false,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,width=' + intWidth + ',height=' + intHeight + ',screenX=' + screenposx + ',screenY=' + screenposy);
   }

   return false;
}

function StyleOnBlur(objThis) {
	//alert(objThis);
	objThis.style.borderWidth = '1px';
	objThis.style.padding = '1px';
}

function StyleOnFocus(objThis) {
	//alert(objThis);
	objThis.style.borderWidth = '2px';
	objThis.style.padding = '0px';
}

