//##########################################################################//
// Image functions
//##########################################################################//
var menutimer = null;
var messageTimerId;
if (window!=top){top.location.href=location.href;}
function Init()
{}
function rowhilite(obj)
{
if (_activeobj != null) _activeobj.className = "calendar";
	obj.className = "calendarMD";
	_activeobj = obj;

}
function rowunhilite(obj)
{
if (_activeobj != null) _activeobj.className = "calendarMD";
	obj.className = "calendar";
	_activeobj = obj;

}
function reportrowhilite(obj)
{
 if (_activeobj != null) _activeobj.className = "reportresulttrstyle2";
 obj.className = "reportresulttrstyle1";
 _activeobj = obj;
}
function reportrowunhilite(obj)
{
  if (_activeobj != null) _activeobj.className = "reportresulttrstyle2";
 obj.className = "reportresulttrstyle1";
 _activeobj = obj;
}
function Logout()
{
  $("#NCSFLogout").val("Y");
  $("#logmeout").submit();
}
function OpenItem(url) {
 var productwindow = window.open(url,'NCSFItem','toolbar=no,status=yes,scrollbars=yes,location=no,menubar=no,directories=no,width=700,height=830')
 if (window.focus)
   productwindow.focus(); 
 
}
function emailaddress(str)
{
 var username = str;  
 if (username.indexOf("@") == -1 || username.lastIndexOf(".") == -1 || (username.lastIndexOf(".") < username.lastIndexOf("@"))) 
     return false;
 else 
     return true;    
} 
function validphone(str) 
{
	var validchars = "1234567890-+ ";
	for (var ii=0; ii<str.length; ii++) {
		if (validchars.indexOf(str.toLowerCase().charAt(ii)) == -1) 
			return false;
	}
	return true;
}

