var parr = new Array('nrisk2','risk11','nrisk3','risk1','risk1-1','nrisk12');
var farr = new Array('nrisk02','risk11','nrisk03','risk11','risk1','risk1-1','nrisk15');
function showDisclaimer(what,type)
{
	var msg = "Bert Fish Medical Center is not a contracted provider under your FMHN Health Plan at this time.\nWe anticipate they will be added at a future date.";
	switch(type)
	{
		case "physician":
		if(in_array(what,parr,false))
		{
			jAlert(msg, 'Please Read');	
		}
		break;
		case "facility":
		if(in_array(what,farr,false))
		{
			jAlert(msg, 'Please Read');		
		}
		break;
	}
}
function in_array (needle, haystack, argStrict) {
    var key = '', strict = !!argStrict;

    if (strict) {
        for (key in haystack) {
            if (haystack[key] === needle) {
                return true;
            }
        }
    } else {
        for (key in haystack) {
            if (haystack[key] == needle) {
                return true;
            }
        }
    }

    return false;
}
