
 function mOvr(src,clrOver)
	{
		if (!src.contains(event.fromElement))
		{
			src.style.cursor = 'hand';
			src.bgColor = clrOver;
		}
	}
	function nOvr(src,clrOver)
	{
		src.style.cursor = 'hand';
		src.bgColor = clrOver;
	}
	function mOut(src,clrIn)
	{
		if (!src.contains(event.toElement))
		{
			src.style.cursor = 'default';
			src.bgColor = clrIn;
		}
	}
	function mClk(src)
	{
		if(event.srcElement.tagName=='TD')
		{
			src.children.tags('A')[0].click();
		}
	}
	function mStatus(Str)
	{
		window.status = Str;
		return true;
	}
 
 
// function CreateWindow(url){
//    msgWindow=window.open(url,"displayWindow","toolbar=yes,width=520,height=400"+
//                           ",top=20,left=20,directories=no,status=no,scrollbars,resizable=1"+
//                           ",resize=yes,menubar=no");
//}


// ****** takes focus away from all links when clicked (IE PC only)
function blurAll() { 
	if(document.all) {
	  var total = document.links.length;
	  for (var n = 0; n < total; n++){
	  document.links[n].onfocus=document.links[n].blur;
	  }
	}
}

// ****** opens link in popup window
 function CreateWindow(url) { 
  		topL=20;
  		leftL=20;
  		width=550;
  		height=400;    
  		toolbar=1;      
  		scrollbar=1;      
    wName='popUp';
  		width = (arguments.length>1)?arguments[1]:width; // option to pass in width
  		height = (arguments.length>2)?arguments[2]:height; // option to pass in height    
  	 toolbar = (arguments.length>3)?arguments[3]:toolbar; // option to turn toolbar off
  	 scrollbar = (arguments.length>4)?arguments[4]:scrollbar; // option to turn scrollbar off
  	 wName = (arguments.length>5)?arguments[5]:wName; // option to pass in window name     
    
  		var str="toolbar="+ toolbar +",location=0,directories=0,status=0,menubar=0,scrollbars="+ scrollbar +",width="+ width +",height="+ height +",screenX="+ leftL +",screenY="+ topL +",left="+ leftL +",top="+ topL +",resizable=1";
    var Pwin = window.open(url,wName,str,true)
    Pwin.focus();

}

function CreateWindowNoToolbarNoResize(url) {
                topL=20;
                leftL=20;
                width=650;
                height=400;
                toolbar=0;
                scrollbar=1;
    xName='popUp';
                width = (arguments.length>1)?arguments[1]:width; // option to pass in width
                height = (arguments.length>2)?arguments[2]:height; // option to pass in height
         //toolbar = (arguments.length>3)?arguments[3]:toolbar; // option to turn toolbar off
         //scrollbar = (arguments.length>4)?arguments[4]:scrollbar; // option to turn scrollbar off
         xName = (arguments.length>5)?arguments[5]:xName; // option to pass in window name

                var str="toolbar="+ toolbar +",location=0,directories=0,status=0,menubar=0,scrollbars="+ scrollbar +",width="+ width +",heigh\
t="+ height +",screenX="+ leftL +",screenY="+ topL +",left="+ leftL +",top="+ topL +",resizable=0";
    var Xwin = window.open(url,xName,str,true)
    Xwin.focus();

}

