

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function Swoop(dURL, width, height)
	{
	  var desktop = window.open( dURL, "_blank", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=" + width + ",height=" + height + ",resizable=yes" );
	}

function SwoopMenu(dURL, width, height)
	{
	  var desktop = window.open( dURL, "_blank", "toolbar=yes,location=yes,status=no,menubar=no,scrollbars=yes,width=" + width + ",height=" + height + ",resizable=yes" );
	}

function SwoopScroll(dURL, width, height)
	{
	  var desktop = window.open( dURL, "_blank", "toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,width=" + width + ",height=" + height + ",resizable=yes" );
	}

function SwapOut(swp) {
	document.images[swp].src = eval(swp + "On.src"); return true;
	}


function SwapBack(swp) {
	document.images[swp].src = eval(swp + "Off.src"); return true;
	}


function SwapOut2(swp,img) {
	document.images[swp].src = eval(img + "On.src"); return true;
	}


function SwapBack2(swp, img) {
	document.images[swp].src = eval(img + "Off.src"); return true;
	}



function SwoopHome(dURL, width, height)
	{
	  var desktop = window.open( dURL, "_blank", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=" + width + ",height=" + height + ",resizable=no" );
	}

function AREYOUSURE(SuccessURL, Msg) {
      if (!CHECKMEOUT(Msg)) return;
     window.location.href=SuccessURL;
      }


function GoThere(SuccessURL){
     window.location.href=SuccessURL;

}
function AREYOUREALLYSURE(EventID, SuccessURL, Msg) {
      if (!CHECKMEOUT(Msg)) return;
		printcancel(EventID, SuccessURL);
      }

function AREYOUSUREVAR(SuccessURL, Msg) {
var WhoCancel = CHECKMEOUT2(Msg);
      if (!WhoCancel) return;
     window.location.href=SuccessURL + "&Who=" + WhoCancel;
      }



function CHECKMEOUT(Msg) {
	return confirm(Msg);
}

function CHECKMEOUT2(Msg) {
	return prompt(Msg, "Who cancelled this event");
}



function chgBGColor(obj,color){
if (document.all || document.getElementById)
  obj.style.backgroundColor=color;
else if (document.layers)
  obj.bgColor=color;
}

function chgBg(obj,color){
if (document.all || document.getElementById)
  obj.style.backgroundColor=color;
else if (document.layers)
  obj.bgColor=color;
  obj.Color=color2;
}


function Maximize(){

	top.window.moveTo(0,0);
		if (document.all) {
			top.window.resizeTo(screen.availWidth,screen.availHeight);
		}
		else if (document.layers||document.getElementById) {
			if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
			top.window.outerHeight = screen.availHeight;
			top.window.outerWidth = screen.availWidth;
		}
	}


}

function SentenceCase(formobj){

var strText = formobj.value;
var MyLen = strText.length;
var strTemp = "";
var strNew = "";
var myflag = 1;

	for (var i=0;i<MyLen;i++)
	{
		strNew = strText.substr(i,1);
		if (strNew == " ") {
			myflag = 0;
			}
		if (myflag > 1) {
				strNew = strNew.toLowerCase();
			}

		if (myflag == 1){
			strNew = strNew.toUpperCase();
		}

		if (myflag ==0){
			strTemp = strTemp + " ";
		}

		strTemp = strTemp + strNew;
		myflag = myflag + 1;
	}

	formobj.value=strTemp;	
}





