function notifyUser(isOSISSite,applicationAcronym,url) {
	var retMessage = '';
    if (isOSISSite) {
    	retMessage += 'WARNING: This link is about to take you to an OSIS.gov website.\n';
    }
    else {
    	retMessage += 'WARNING: This link is about to take you to an external website.\n';
	}
	if (url)
		retMessage += (url+'\n');
	retMessage += (applicationAcronym+' is not responsible for content found on these sites.\nClick OK to proceed and CANCEL to stop.');
	return confirm(retMessage);
}

function notifyOfOSIS(url,applicationAcronym,baseUrl)
{
   url = url.toLowerCase();
   idx = url.indexOf('osis.gov');
   if( idx >= 0)
   {
      return notifyUser(1,applicationAcronym,baseUrl);
   }
   else
   {
      return notifyUser(0,applicationAcronym,baseUrl);
   }
}

