function ManagerLogin( frmName )
	{
	
		var frm				= document.forms[frmName];
		var strUsername		= frm.username.value;
		var strPassword		= frm.password.value;
		var alertMsg		= "";
		
		if ( strUsername == "" ) {
			alertMsg = "Please enter your username. \n \n ";
		}
		if ( strPassword == "" ) {
			alertMsg = alertMsg + "Please enter your password. \n ";
		}
		
		if ( alertMsg != "" ) {
			alert( alertMsg )
			return false;
		}
		else
		{
			return true;
		}
	}	
	

function Redir( toUrl )
{	
	if (toUrl != "") {
		window.location=toUrl;
	}
}
	
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function openpopup(popurl){
var winpops=window.open(popurl,"","width=800,height=600,toolbar=0,location=0,status,scrollbars,menubar=0,resizable")

}

function openpopup2(popurl){
var winpops=window.open(popurl,"","width=300,height=400,toolbar=0,location=0,status,scrollbars,menubar=0,resizable")

}

function showHideRow(theRow) {
    var e = document.getElementById(theRow);
    e.style.display = (e.style.display == '' ? 'none' : '');
}

function bookmarksite(title, url){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}