function denialCodeUpdate()
{
	var d = new Date();
	var month = d.getMonth();
	var day = d.getDate();
	var year = d.getYear();
	
	if (day < 10) { day = "0" + day; }
	if (month == 0) { year -= 1; }
	
	if (day < 27)
	{
		if (month < 10) { month = "0" + month; }
		document.write(month + "/27/" + year);
	}
	else
	{
		if ((month + 1) < 10) { month = "0" + (month+1); }
		else { month += 1; }
		document.write(month + "/27/" + year);
	}
}

function pageLastModified()
{
	var dlm, monthDayYear, yearSection, month, day, year, monthName, hoursMinutesSeconds, hours, minutes, seconds, amOrPM, newHours;
		
	dlm = document.lastModified;
	monthDayYear = dlm.split("/");
	yearSection = monthDayYear[2].split(" ");
	hoursMinutesSeconds = yearSection[1].split(":");
		
	month = monthDayYear[0];
	day = monthDayYear[1];
	year = yearSection[0];
		
	hours = hoursMinutesSeconds[0];
	minutes = hoursMinutesSeconds[1];
	seconds = hoursMinutesSeconds[2];
		
	amOrPM = (hours < 11) ? "AM" : "PM";
		
	monthName = (month=='01')?"January":(month=='02')?"February":(month=='03')?"March":(month=='04')?"April":(month=='05')?"May":(month=='06')?"June":(month=='07')?"July":(month=='08')?"August":(month=='09')?"September":(month=='10')?"October":(month=='11')?"November":(month=='12')?"December":hours;
	newHours = (hours=='0')?"12":(hours=='13')?"1":(hours=='14')?"2":(hours=='15')?"3":(hours=='16')?"4":(hours=='17')?"5":(hours=='18')?"6":(hours=='19')?"7":(hours=='20')?"8":(hours=='21')?"9":(hours=='22')?"10":(hours=='23')?"11":(hours=='24')?"12":hours;
		
	document.write("<span class=\"bold\">Page Last Modified:</span><br>" + monthName + " " + day + ", " + year + "   " + newHours + ":" + minutes + " " + amOrPM);
}

function submitnewsletterform(form)
{
	//document.newsletterform.category.value = "";
	
	//document.forms[1].submit(); 
	document.forms[form].submit();
}

function disclaimerCheck(status) {
	if (get_cookie("lmrp")!="") {
		if (get_cookie("lmrp")=="disclaimerSeen") {
			// don't do anything
		}
	}
	else {
		window.location.href = "/lmrp/index.html?status=" + status;
	}
}

function beenHere()
{
	//set document cookie
	document.cookie="lmrp=disclaimerSeen";
}

function cbtbeenHere()
{
	//set document cookie
	document.cookie="cbt=disclaimerSeen";
}

var lmrpURL;

function doRedirect()
{
    setTimeout( "timedRedirect()", 2*1000 );
}

//  There are two definitions of 'timedRedirect', this
//  one adds to the visitors page history.
function timedRedirect()
{
    window.location.href = lmrpURL;
}

function timedRedirect()
{
    window.location.replace( lmrpURL );
}

function getLMRPStatus() {
	var param = location.search;
	
	var lmrpStatus = param.split("=");
	
	if (get_cookie("lmrp")!="")	{
		if (get_cookie("lmrp")=="disclaimerSeen")
		{
			switch (lmrpStatus[1])
			{
				case "draft": 	lmrpURL = "/lmrp/draft.html";
								break;
				case "archive":	lmrpURL = "/lmrp/archive.html";
								break;
				case "final":	lmrpURL = "/lmrp/final.html";
								break;
				case "all":		lmrpURL = "/lmrp/main.html";
								break;
				default:		lmrpURL = "/lmrp/main.html";
			}
			doRedirect();
		}
	}
	else
	{
		lmrpURL = "/lmrp/disclaimer.html" + location.search;
		doRedirect();
	}
}


function popUp() {

		var w = 365;
		var h = 130;
		var s = 0;
		var r = 0;
		popupWindow = window.open("/eml.html","surveyWin","width="+w+",height="+h+",scrollbars="+s+",resizable="+r);
		popupWindow.moveTo((screen.availWidth/2)-(w/2),(screen.availHeight/2)-(h/2));
		popupWindow.focus();
		}


var emlreg;
function popOrNoPop(cookieName) {

    if (cookieName=="MedicareElectronicMailList"){

		emlreg = getCookie(cookieName);

	if (emlreg==null){
		if (get_cookie("emlPop")=="")	{
		var w = 365;
		var h = 130;
		var s = 0;
		var r = 0;
		popupWindow = window.open("/eml.html","surveyWin","width="+w+",height="+h+",scrollbars="+s+",resizable="+r);
		popupWindow.moveTo((screen.availWidth/2)-(w/2),(screen.availHeight/2)-(h/2));
		popupWindow.focus();
		
		document.cookie="emlPop=viewed";
	}
}

	}
}

function lmrpRedirect() {
	var lmrpStatus = location.search.split("=");
	
	if (lmrpStatus[1] == "")
	{
		lmrpStatus[1] = "all";
	}
	
	switch (lmrpStatus[1])
	{
		case "draft": 	lmrpURL = "/lmrp/draft.html";
						break;
		case "archive":	lmrpURL = "/lmrp/archive.html";
						break;
		case "final":	lmrpURL = "/lmrp/final.html";
						break;
		case "all":		lmrpURL = "/lmrp/main.html";
						break;
		default:		lmrpURL = "/lmrp/main.html";
	}
		
	window.location.replace( lmrpURL );
}

function setFocus() {
	if (document.forms.length > 0)
	{
		var field = document.forms[0];
		for (i = 0; i < field.length; i++)
		{
			if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s"))
			{
				document.forms[0].elements[i].focus();
				break;
         	}
      	}
	}
}

function lastMod() {
	document.write("<small>Page Last Updated: " + document.lastModified + "</small>");
}

//Get cookie routine by Shelley Powers 
function get_cookie(Name)
{
	var search = Name + "=";
	var returnvalue = "";
	
	if (document.cookie.length > 0)
	{
		offset = document.cookie.indexOf(search)
		// if cookie exists
		if (offset != -1)
		{ 
			offset += search.length
			// set index of beginning of value
			end = document.cookie.indexOf(";", offset);
			// set index of end of cookie value
			if (end == -1) end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}

//################# Creates hierarchical breadcrumb trail  #################
function breadcrumb()
{
	var p = location.pathname;
	var dirs = p.split("/");
	var count = 0;
	var root = location.protocol + "//" + location.host;
	var up ="/";
	var cwd = "./";
	var dirString = "";
	var indexLevel = false;
	var acronymDirectories = new Array("LMRP","HIPAA","EDI","FISS");
	var home = "<a href=\"" + root + "/index.html\" title=\"Home\">Home</a>";
	var separator = "&nbsp;&nbsp;&#8250;&#8250;&nbsp;&nbsp;";
	var path = root;
	
	document.write(home);
	
	if (p.indexOf("index.") >= 0 || p.indexOf("main.") >= 0 || p.indexOf(".html") < 0)
	{
		indexLevel = true;
	}
	
	for (i = 0; i < dirs.length; i++)
	{	
		if (i < dirs.length-1)
		{
				// take out underscores, replace with spaces
				if (dirs[i].indexOf("_") >= 0)
				{
					var newString = "";
					//if (dirs[i] == "audit_reimbursement")
					//{
						//linkName = capitalize(dirs[i]);
					//}
					//else
					//{
						eachPiece = dirs[i].split("_");
						//alert("\"" + dirs[i] + "\"");
					//}

					for (j = 0; j < eachPiece.length; j++)
					{
						temp = eachPiece[j];
						temp2 = capitalize(temp);
						eachPiece[j] = temp2;
					}
					n = eachPiece.join(" ");
					linkName = n;
				}
				else //no underscores
				{
					linkName = capitalize(dirs[i]);
				}
				
				//adding the forward slash between directories
				if (i == 0)
				{
					path += dirs[i];
				}
				else
				{
					path += "/" + dirs[i];
				}
				
				//if the page being viewed is index level, the last directory of the bc trail is not a link
				if (i == dirs.length-2 && indexLevel)
				{
					document.write(getPageTitle());
				}
				else
				{
					if (dirs[i] == "lmrp")
					{
						document.write("<a href=\"" + path + "/index.html?status=all\" title=\"" + linkName + "\">" + linkName + "</a>" + separator);
					}
					else
					{
						document.write("<a href=\"" + path + "/index.html\" title=\"" + linkName + "\">" + linkName + "</a>" + separator);
					}
				}
		}
		else //The actual web page currently being viewed in the breadcrumb trail
		{
			if (indexLevel) { /*do nothing*/ }
			else { document.write(getPageTitle()); }
		}
	}
	dirString += "/" + dirs[i];
}

function getPageTitle()
{
	pageTitle = document.title;
	
	if (pageTitle.indexOf(" - ") >= 0)
	{
		pt = pageTitle.split(" - ");
		pageTitle = pt[0];
	}
	
	return pageTitle;
}

//################# capitalizes first letter of a word  #################
function capitalize(word)
{

	if (word.toUpperCase() == "LMRP" || word.toUpperCase() == "HIPAA" || word.toUpperCase() == "EDI" || word.toUpperCase() == "FISS")
	{
		if(word.toUpperCase() == "LMRP")
		{
			newWord = "LCD";
		}
		else{
		newWord = word.toUpperCase();
		}
	}
	else
	{
		firstLetter = word.substring(0,1);
		remainder = word.substring(1,word.length);
		newWord = firstLetter.toUpperCase() + remainder;
	
		switch (newWord)
		{
			/*case "Audit":	newWord = "Audit and";
							break;*/
			case "Audit":	newWord = "Audit and";
							break;
			case "Atopics":	newWord = "Audit Topics";
							break;
			case "About":	newWord = "About Us";
							break;
			case "Faq":		newWord = "FAQ";
							break;
			case "Psr":		newWord = "PS &amp; R";
							break;
			case "Rates":	newWord = "Rate Information";
							break;
			case "Info":	newWord = "Information";
							break;
			case "Beneficiaries":	newWord = "Beneficiary Information";
							break;
			case "Cms":		newWord = "Cost Report CMS";
							break;
			case "Vendors":	newWord = "Vendor Listing";
							break;
			case "Msp":	newWord = "Medicare Secondary Payer";
							break;
			case "Aieducation":	newWord = "Attorney &amp; Insurer Education";
							break;
			case "Dde":	newWord = "Direct Data Entry";
							break;
			case "Signup":	newWord = "E-Mail List Sign-up";
							break;
			case "Cob":		newWord = "COB";
							break;
		}
	}
	
	return newWord;
}

//################# HIPAA countdown  #################
function daysRemaining()
{
	var currentDate = new Date();
	var deadline = new Date("October 16, 2003"); //October 16, 2003 - deadline to become HIPAA compliant
	var msPerDay = 24 * 60 * 60 * 1000; //hours * minutes/hour * seconds/minute * milliseconds/second
		  
	var timeRemaining = (deadline.getTime() - currentDate.getTime());
	var daysRemaining = timeRemaining/msPerDay;
		  
	if (daysRemaining > 0)
	{
		document.write(Math.floor(daysRemaining));
	}
}
	   
//################# standard netscape resize fix #################
function reloadPage(init)
{
	if (init==true) with (navigator) {if ((appName=="Netscape")&&((parseInt(appVersion)==4)||(parseInt(appVersion)==6))) {
		document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
	else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

//################# updates the copyright #################
function copyright()
{
	var year="";
	mydate = new Date();
	myyear= mydate.getFullYear();
	year = myyear;
	if (year < 2000)
	year = year + 1900;
	var year = ("&nbsp; &copy; " + year);
	document.write(year);
} //end copyright()

function getCurrentYear()// returns the current 4-digit year
{
	d = new Date();
	y = d.getFullYear();
	if (y < 2000)
	y = y + 1900;
	return y; //document.write(y);
} //end getCurrentYear()

//################# mailer #################
u = window.location;
m = (window.location) + " -- Link from mutualmedicare.com:";
address = "";
function mailIt()
{
	window.location = "mailto:?subject="+m+"&body="+u;
}

//################# writes E-mail List link #################
function eml()
{
	document.write("<a href=\"/signup/index.html\" title=\"E-Mail List Sign-Up\" class=\"mediumlink\">E-Mail List Sign-Up</a>");
}

function validateAlpha(strValue)
{
	var objRegExp  = /(^[a-zA-Z',.\-\ ]+$)/;
	return objRegExp.test(strValue);
}

function validateAlphaNum(strValue)
{
	var objRegExp = /(^[a-zA-Z0-9'\-\., ]+$)/;
	return objRegExp.test(strValue);
}

function  validateNum( strValue )
{
	var objRegExp  =  /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/;
	return objRegExp.test(strValue);
}

function validateMonth(strValue)
{
	var objRegExp = /(^[0-9]{2})$/;
	return objRegExp.test(strValue);
}

function validateDate(strValue)
{
	var objRegExp = /(^[0-9]{2})$/;
	return objRegExp.test(strValue);
}

function validateYear(strValue)
{
	var objRegExp = /(^[0-9]{4})$/;
	return objRegExp.test(strValue);
}

function validateEmail(strValue) //need to add underscore to validation
{
	var objRegExp  = /^[a-z0-9]([a-z0-9_\-\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$/i;
	return objRegExp.test(strValue);
}

function validateState(strValue)
{
	var objRegExp = /^(AL|al|Al|AK|ak|Ak|AZ|az|Az|AR|ar|Ar|CA|ca|Ca|CO|co|Co|CT|ct|Ct|DC|dc|Dc|DE|de|De|FL|fl|Fl|GA|ga|Ga|HI|hi|Hi|ID|id|Id|IL|il|Il|IN|in|In|IA|ia|Ia|KS|ks|Ks|KY|ky|Ky|LA|la|La|ME|me|Me|MD|md|Md|MA|ma|Ma|MI|mi|Mi|MN|mn|Mn|MS|ms|Ms|MO|mo|Mo|MT|mt|Mt|NE|ne|Ne|NV|nv|Nv|NH|nh|Nh|NJ|nj|Nj|NM|nm|Nm|NY|ny|Ny|NC|nc|Nc|ND|nd|Nd|OH|oh|Oh|OK|ok|Ok|OR|or|Or|PA|pa|Pa|PR|pr|Pr|RI|ri|Ri|SC|sc|Sc|SD|sd|Sd|TN|tn|Tn|TX|tx|Tx|UT|ut|Ut|VT|vt|Vt|VA|va|Va|VI|vi|Vi|WA|wa|Wa|WV|wv|Wv|WI|wi|Wi|WY|wy|Wy)$/i; 
	return objRegExp.test(strValue);
}

function validateZip( strValue )
{
	var objRegExp  = /(^[0-9]{5})$/;
	return objRegExp.test(strValue);
}

//################# popup cookie, newsletter email list validation #################
// cookie code for electronic mail list
var survey,headsup;
var popupWindow;

function checkCookie(whichCookie) {
	if (whichCookie == "Viewed") {
		survey = getCookie(whichCookie);
		
		if (survey != null) {
			url = '/taken.html';		
			window.location.href = url;
		}
	} 
}


function checkForCookie(whichCookie) {
	if (whichCookie == "MedicareElectronicMailList") {
		survey = getCookie(whichCookie);
		
		if (survey == null) {
			eml();
		}
	} /* else if (whichCookie == "popWin") {
		headsup = getCookie(whichCookie);
		
		// check for existing cookie.  If no cookie - display survey in popup window
		if (headsup == null) {
			var w = 300;
			var h = 200;
			var s = 0;
			var r = 0;
			popupWindow = window.open("/tally.html","surveyWin","width="+w+",height="+h+",scrollbars="+s+",resizable="+r);
			popupWindow.moveTo((screen.availWidth/2)-(w/2),(screen.availHeight/2)-(h/2));
			popupWindow.focus();
			
			writeCookie("popWin");
		}
	}*/
	//else if (whichCookie == "count")
	//{
		//countDir = getCookie(whichCookie);
	//}
}

function getCookieVal(offset) {
   var endstr = document.cookie.indexOf(";", offset);
   if (endstr == -1)
   endstr = document.cookie.length;
   return unescape(document.cookie.substring(offset, endstr));
}//Original:  Mattias Sjoberg

function getCookie(name)
{
	var arg = name + "="; //arg == 'survey='
	var alen = arg.length; //length of 'survey='
	var clen = document.cookie.length; //length of 'survey=completed'
	var i = 0;
	while (i < clen) //if no cookie, clen = 0 & while loop doesn't execute
	{
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
		return getCookieVal(j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0)
		break;
   }
   return null;
}

function setCookie(name, value)
{
	var argv = setCookie.arguments;
	var argc = argv.length; // # of arguments passed to setCookie
	var expires = (argc > 2) ? argv[2] : null;
	var path = (argc > 3) ? argv[3] : null;
	var domain = (argc > 4) ? argv[4] : null;
	var secure = (argc > 5) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) +
	((expires == null) ? "" : ("; expires=" +
	expires.toGMTString())) +
	((path == null) ? "" : ("; path=" + path)) +
	((domain == null) ? "" : ("; domain=" + domain)) +
	((secure == true) ? "; secure" : "");
}

function writeCookie(cookieName)
{
	var d = new Date();
	var month = d.getMonth();
	var day = d.getDay();
	var year = d.getFullYear();
	var dateCookieWritten = " " + month + "/" + day + "/" + year;
	
	if (cookieName == "MedicareElectronicMailList")
	{
		survey = "completed" + escape(dateCookieWritten);
	}
	else if (cookieName == "popWin")
	{
		headsup = "viewed" + escape(dateCookieWritten);
	}
	else if (cookieName == "Viewed")
	{
		headsup = "viewed" + escape(dateCookieWritten);
	}
	
	pathname = location.pathname;  //**   '/' for root, '/signup/index.html' for that page
	myDomain = "/"; // hard-coded root directory
	var expDate = new Date();
	expDate.setTime(expDate.getTime() + (30 * 24 * 3600 * 1000)); //roughly 1 month
	
	var surveyDate = new Date();
	surveyDate.setTime(expDate.getTime() + (365 * 24 * 3600 * 1000)); //roughly 1 year
	
	if (cookieName == "MedicareElectronicMailList")
	{
		setCookie(cookieName,survey,expDate,myDomain);
	}
	else if (cookieName == "popWin")
	{
		setCookie(cookieName,headsup,expDate,myDomain);
	}
	else if (cookieName == "Viewed")
	{
		setCookie(cookieName,headsup,surveyDate,myDomain);
	}
}

function validateNewsletterForm(newsletter)
{
   if (window.document.newsletter.ProviderName.value == "" || window.document.newsletter.ProviderName.value == null)
   {
      alert("Please enter your Provider Name.");
	  window.document.newsletter.ProviderName.focus();
	  return false;
   }

   if((window.document.newsletter.Email.value == "" || window.document.newsletter.Email.value == null) || !validateEmail(window.document.newsletter.Email.value))
   {
      alert("Please enter a valid E-mail Address.");
	  window.document.newsletter.Email.value="";
	  window.document.newsletter.Email.focus();
	  return false;
   }
   writeCookie('MedicareElectronicMailList');
   return true;
}

function submitSearch(form)
{
	if (document.seek.qt.value=="")
	{
		alert('Please enter an item to search');
		document.seek.qt.focus();
	}
	else
	{
		document.forms[0].submit(); 
		document.forms[form].submit();
	}
}

function submitSearch2(form)
{
	if (document.seek2.qt.value=="")
	{
		alert('Please enter an item to search');
		document.seek2.qt.focus();
	}
	else
	{
		document.forms[0].submit(); 
		document.forms[form].submit();
	}
}

function openWin(url,name,w,h,scroll)
{
   var x, y, settings, myWin;
   
   settings = "width="+w+",height="+h+",scrollbars="+scroll+",resizable=1,status=0";
   x = screen.availWidth/2 - (w/2);
   y = screen.availHeight/2 - (h/2);
   
   myWin = window.open(url,name,settings);
   myWin.moveTo(x,y);
}

function newWin(url,name,w,h,scroll,resize,statusbar)
{
   var x, y, settings, myWin;
   
   settings = "width="+w+",height="+h+",scrollbars="+scroll+",resizable="+resize+",status="+statusbar;
   x = screen.availWidth/2 - (w/2);
   y = screen.availHeight/2 - (h/2);
   
   myWin = window.open(url,name,settings);
   myWin.moveTo(x,y);
}

function newwin(url,name,w,h,scroll,resize,statusbar)
{
   var x, y, settings, myWin;
   
   settings = "width="+w+",height="+h+",scrollbars="+scroll+",resizable="+resize+",status="+statusbar;
   x = screen.availWidth/2 - (w/2);
   y = screen.availHeight/2 - (h/2);
   
   myWin = window.open(url,name,settings);
   myWin.moveTo(x,y);
}

//################# regexes for validation #################

function validateAlpha( strValue ) {
var objRegExp  = /(^[a-zA-Z',.\-\ ]+$)/;
return objRegExp.test(strValue);
}

function validateEmail( strValue) {
var objRegExp  = /^[a-z0-9]([a-z0-9_\-\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$/i;
return objRegExp.test(strValue);
}

function validatePhone( strValue ) {
        var objRegExp  = /(^\d{10}$)|(\([0-9]{3}\)[0-9]{3}-[0-9]{4}$)|(^\d{3}-\d{3}-\d{4}$)/;
        return objRegExp.test(strValue);
}

function validateAlphaNum( strValue ) {
var objRegExp  = /(^[a-zA-Z0-9',\.\- ]+$)/;
return objRegExp.test(strValue);
}

function validateAlphaNumAdd( strValue ) {
var objRegExp  = /(^[a-zA-Z0-9'_,&.#\-\ ]+$)/;
return objRegExp.test(strValue);
}

function validateSize( strValue ) {
var strTemp = strValue;
if(strTemp.length > 2000)
{
return false;
}  
return true;
}

function  validateNum( strValue ) {
var objRegExp  =  /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/;
return objRegExp.test(strValue);
}

function validateMonth(strValue) {
var objRegExp = /(^[0-9]{2})$/;
return objRegExp.test(strValue);
}
function validateYear(strValue) {
var objRegExp = /(^[0-9]{4})$/;
return objRegExp.test(strValue);
}

function validateState( strValue ) {
var objRegExp = /^(AK|AL|AR|AZ|CA|CO|CT|DC|DE|FL|GA|GU|HI|IA|ID|IL|IN|KS|KY|LA|MA|MD|ME|MI|MN|MO|MS|MT|NC|ND|NE|NH|NJ|NM|NV|NY|OH|OK|OR|PA|PR|RI|SC|SD|TN|TX|UT|VA|VI|VT|WA|WI|WV|WY)$/i; 
return objRegExp.test(strValue);
}

function validateZip( strValue ) {
var objRegExp  = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
return objRegExp.test(strValue);
}

function validateDate( strValue ) {
var objRegExp = /^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/
 
  //check to see if in correct format
  if(!objRegExp.test(strValue))
    return false; //doesn't match pattern, bad date
  else{
    var arrayDate = strValue.split(RegExp.$1); //split date into month, day, year
        var intDay = parseInt(arrayDate[1],10); 
        var intYear = parseInt(arrayDate[2],10);
    var intMonth = parseInt(arrayDate[0],10);
        
        //check for valid month
        if(intMonth > 12 || intMonth < 1) {
                return false;
        }
        
    //create a lookup for months not equal to Feb.
    var arrayLookup = { '01' : 31,'03' : 31, '04' : 30,'05' : 31,'06' : 30,'07' : 31,
                        '08' : 31,'09' : 30,'10' : 31,'11' : 30,'12' : 31}
  
    //check if month value and day value agree
    if(arrayLookup[arrayDate[0]] != null) {
      if(intDay <= arrayLookup[arrayDate[0]] && intDay != 0)

        return true; //found in lookup table, good date
    }
                
    //check for February
        var booLeapYear = (intYear % 4 == 0 && (intYear % 100 != 0 || intYear % 400 == 0));
    if( ((booLeapYear && intDay <= 29) || (!booLeapYear && intDay <=28)) && intDay !=0)

      return true; //Feb. had valid number of days
  }
  return false; //any other values, bad date
}

function isPhoneNumber(field)
{
	// 650-506-7000 format
	str = field.value;
	if (str.length != 12)
	{ 
    	alert("The \"Phone\" box is not mandatory, but if used, a phone number must contain \nten (10) numbers with \"-\" used as a separator.");
    	return false;
  	}
  	len = str.length;
  	for (i = 0; i < len; i++) {
    	c = str.charAt(i);
    	if ((i == 3) || (i == 7)) {
      		if (c != "-") { 
        		alert("The \"Phone\" box is not mandatory, but if used, a phone number must contain \nten (10) numbers with \"-\" used as a separator.");
        		return false; 
      		}
    	} else if ((c < "0") || (c > "9")) { 
      		alert("The \"Phone\" box is not mandatory, but if used, a phone number must contain \nten (10) numbers with \"-\" used as a separator.");
      		return false;
    	}
  	}
  	return true;
}

function oneChecked()
   {
   for (i=0; i<document.star_downlds.elements.length; i++)
      {
      if (document.star_downlds.elements[i].type == "checkbox")
         {
         if (document.star_downlds.elements[i].checked)
            {           
            return true;
            }
         }
      }
   ;
   return false;
   }

//################# various validation #################
function validateWebSurveyForm(websurveyform)
{
	var notApplicable = "If you feel this question does not apply to you, select the \"N/A\" option.";
	
	if (document.websurvey.Representation.value == "sel")
	{
		alert("Please identify your area of representation.");
		document.websurvey.Representation.focus();
		return false;
	}
	if (!document.websurvey.Visit[0].checked && !document.websurvey.Visit[1].checked && !document.websurvey.Visit[2].checked && !document.websurvey.Visit[3].checked)
	{
		alert("Please choose how often your visit the Mutual of Omaha - Medicare site.");
		document.websurvey.Visit[0].focus();
		return false;
	}
	if (!document.websurvey.Informative[0].checked && !document.websurvey.Informative[1].checked && !document.websurvey.Informative[2].checked && !document.websurvey.Informative[3].checked && !document.websurvey.Informative[4].checked && !document.websurvey.Informative[5].checked)
	{
		alert("Please rate how informative you find the Mutual of Omaha - Medicare site to be.\n\n" + notApplicable);
		document.websurvey.Informative[0].focus();
		return false;
	}
	if (!document.websurvey.EML[0].checked && !document.websurvey.EML[1].checked && !document.websurvey.EML[2].checked && !document.websurvey.EML[3].checked && !document.websurvey.EML[4].checked && !document.websurvey.EML[5].checked)
	{
		alert("Please rate how useful you find the Medicare Electronic Mail List.\n\n" + notApplicable);
		document.websurvey.EML[0].focus();
		return false;
	}
	if (!document.websurvey.Newsletters[0].checked && !document.websurvey.Newsletters[1].checked && !document.websurvey.Newsletters[2].checked && !document.websurvey.Newsletters[3].checked && !document.websurvey.Newsletters[4].checked && !document.websurvey.Newsletters[5].checked)
	{
		alert("Please rate the ease of retrieval of Mutual of Omaha - Medicare Newsletters.\n\n" + notApplicable);
		document.websurvey.Newsletters[0].focus();
		return false;
	}
	if (!document.websurvey.Whats_New[0].checked && !document.websurvey.Whats_New[1].checked && !document.websurvey.Whats_New[2].checked && !document.websurvey.Whats_New[3].checked && !document.websurvey.Whats_New[4].checked && !document.websurvey.Whats_New[5].checked)
	{
		alert("Please rate the timeliness of the What's New section of the site.\n\n" + notApplicable);
		document.websurvey.Whats_New[0].focus();
		return false;
	}
	if (!document.websurvey.Claims[0].checked && !document.websurvey.Claims[1].checked && !document.websurvey.Claims[2].checked && !document.websurvey.Claims[3].checked && !document.websurvey.Claims[4].checked && !document.websurvey.Claims[5].checked)
	{
		alert("Please rate the Claims section of the site.\n\n" + notApplicable);
		document.websurvey.Claims[0].focus();
		return false;
	}
	if (!document.websurvey.Provider_Education[0].checked && !document.websurvey.Provider_Education[1].checked && !document.websurvey.Provider_Education[2].checked && !document.websurvey.Provider_Education[3].checked && !document.websurvey.Provider_Education[4].checked && !document.websurvey.Provider_Education[5].checked)
	{
		alert("Please rate the Provider Education section of the site.\n\n" + notApplicable);
		document.websurvey.Provider_Education[0].focus();
		return false;
	}
	if (!document.websurvey.HIPAA[0].checked && !document.websurvey.HIPAA[1].checked && !document.websurvey.HIPAA[2].checked && !document.websurvey.HIPAA[3].checked && !document.websurvey.HIPAA[4].checked && !document.websurvey.HIPAA[5].checked)
	{
		alert("Please rate the HIPAA section of the site.\n\n" + notApplicable);
		document.websurvey.HIPAA[0].focus();
		return false;
	}
	if (!document.websurvey.EDI[0].checked && !document.websurvey.EDI[1].checked && !document.websurvey.EDI[2].checked && !document.websurvey.EDI[3].checked && !document.websurvey.EDI[4].checked && !document.websurvey.EDI[5].checked)
	{
		alert("Please rate the EDI section of the site.\n\n" + notApplicable);
		document.websurvey.EDI[0].focus();
		return false;
	}
	if (!document.websurvey.AR[0].checked && !document.websurvey.AR[1].checked && !document.websurvey.AR[2].checked && !document.websurvey.AR[3].checked && !document.websurvey.AR[4].checked && !document.websurvey.AR[5].checked)
	{
		alert("Please rate the Audit & Reimbursement section of the site.\n\n" + notApplicable);
		document.websurvey.AR[0].focus();
		return false;
	}
	if (!document.websurvey.Medical_Review[0].checked && !document.websurvey.Medical_Review[1].checked && !document.websurvey.Medical_Review[2].checked && !document.websurvey.Medical_Review[3].checked && !document.websurvey.Medical_Review[4].checked && !document.websurvey.Medical_Review[5].checked)
	{
		alert("Please rate the Medical Review section of the site.\n\n" + notApplicable);
		document.websurvey.Medical_Review[0].focus();
		return false;
	}
	if (!document.websurvey.MSP[0].checked && !document.websurvey.MSP[1].checked && !document.websurvey.MSP[2].checked && !document.websurvey.MSP[3].checked && !document.websurvey.MSP[4].checked && !document.websurvey.MSP[5].checked)
	{
		alert("Please rate the MSP section of the site.\n\n" + notApplicable);
		document.websurvey.MSP[0].focus();
		return false;
	}
	if (!document.websurvey.DDE[0].checked && !document.websurvey.DDE[1].checked && !document.websurvey.DDE[2].checked && !document.websurvey.DDE[3].checked && !document.websurvey.DDE[4].checked && !document.websurvey.DDE[5].checked)
	{
		alert("Please rate the DDE section of the site.\n\n" + notApplicable);
		document.websurvey.DDE[0].focus();
		return false;
	}
	if (!document.websurvey.LMRP[0].checked && !document.websurvey.LMRP[1].checked && !document.websurvey.LMRP[2].checked && !document.websurvey.LMRP[3].checked && !document.websurvey.LMRP[4].checked && !document.websurvey.LMRP[5].checked)
	{
		alert("Please rate the LMRP section of the site.\n\n" + notApplicable);
		document.websurvey.LMRP[0].focus();
		return false;
	}
	if (document.websurvey.Contact_Me.checked)
	{
		if (document.websurvey.Name.value=="")
		{
			alert("If you are interested in being contacted in regard to your survey responses, please enter your Name.");
			document.websurvey.Name.focus();
			return false;
		}
		if (document.websurvey.Email.value=="" && document.websurvey.Phone.value=="")
		{
			alert("If you are interested in being contacted in regard to your survey responses,\nplease enter either your E-mail address or your Phone Number with area code.");
			document.websurvey.Email.focus();
			return false;
		}
		else
		{
			if (document.websurvey.Email.value!=="" && !validateEmail(document.websurvey.Email.value))
			{
				alert("Please enter a valid e-mail address.");
				document.websurvey.Email.value="";
				document.websurvey.Email.focus();
				return false;
			}
			if (document.websurvey.Phone.value!=="" && !validatePhone(document.websurvey.Phone.value))
			{
				alert("Please enter a valid phone number with area code.");
				document.websurvey.Phone.value="";
				document.websurvey.Phone.focus();
				return false;
			}
		}
	}
	else
	{
		//checkbox not checked
	}
	
	return true;
}

function validateForm()
{
	if (document.lmrpform.title.value=="" || document.lmrpform.title.options[0].selected)
	{
		alert("Please select the \"Draft LMRP\" you wish to comment on.")
       	document.lmrpform.title.focus();
	 	return false;
    }
    if (document.lmrpform.F_Name.value=="")
	{
       	alert("Please enter your \"First Name\".")
       	document.lmrpform.F_Name.focus();
	 	return false;
    }
    if (!validateAlpha(document.lmrpform.F_Name.value))
	{
		alert('Please verify that there are only alphabetic and . , - \n characters in the \"First Name\" box.');
		document.lmrpform.F_Name.focus();
		return false;
	}	
     if (document.lmrpform.L_Name.value=="")
	 {
       	alert("Please enter your \"Last Name\".")
        document.lmrpform.L_Name.focus();
	  	return false;
      }
	if (!validateAlpha(document.lmrpform.L_Name.value))
	{
		alert('Please verify that there are only alphabetic and . , - \n characters in the \"Last Name\" box.');
		document.lmrpform.L_Name.focus();
		return false;
	}
	if (document.lmrpform.Email.value=="")
	{
       	alert("Please enter your \"E-mail\" address.")
        document.lmrpform.Email.focus();
	  	return false;
      }
	if (!validateEmail(document.lmrpform.Email.value))
	{
		alert('Please enter a valid \"E-mail\" address using correct syntax.\n\nExample: \"username@somewhere.com\"');
		document.lmrpform.Email.focus();
		return false;
	}
	/*if (document.lmrpform.DaytimePhone.value!="")
	{
		if (!isPhoneNumber(document.lmrpform.DaytimePhone)) {
       		document.lmrpform.DaytimePhone.focus();
		}
        return false;
	}*/
	if (document.lmrpform.TextMessage.value=="") {
		alert('Please enter your \"Comment\".');
		document.lmrpform.TextMessage.focus();
		return false;
	}
	if (!validateSize(document.lmrpform.TextMessage.value)) {
		alert('The \"Comment\" box cannot exceed 2000 characters.');
		document.lmrpform.TextMessage.focus();
		return false;
	}
	
	return true;
	//document.lmrpform.submit;
}

//################# star validation #################

function validateStarForm() {
if(!validateAlphaNum(document.star_downlds.FirstName.value))
{alert('Please enter your First Name.');
document.star_downlds.FirstName.focus();
return (false);}

if(!validateAlphaNum(document.star_downlds.LastName.value))
{alert('Please enter your Last Name.');
document.star_downlds.LastName.focus();
return (false);}

if(document.star_downlds.Organization.value == null || document.star_downlds.Organization.value == "")
{alert('Please enter Organization name.');
document.star_downlds.Organization.focus();
return (false);}

//check to see if in correct date format
if(!validateDate(document.star_downlds.Date.value)) 
{alert('Please input and format Date similar to\n mm-dd-yyyy or mm/dd/yyyy.');
document.star_downlds.Date.focus();
return false;}//doesn't match pattern, bad date

if(!validateAlphaNumAdd(document.star_downlds.Address1.value))
{alert('Please enter your Address.');
document.star_downlds.Address1.focus();
return (false);}

if((document.star_downlds.Address2.value != "") && (!validateAlphaNumAdd(document.star_downlds.Address2.value)))
{alert('Please only use alphabetic and numeric characters in the Address2 Line.');
document.star_downlds.Address2.focus();
return (false);}

if(!validateAlpha(document.star_downlds.City.value))
{alert('Please enter your City.');
document.star_downlds.City.focus();
return (false);}

if(!validateState(document.star_downlds.State.value))
{alert('Please enter your State in 2 character format.');
document.star_downlds.State.focus();
return (false);}

if(!validateZip(document.star_downlds.Zip.value))
{alert('Please enter your Zip Code.');
document.star_downlds.Zip.focus();
return (false);}

if(!validatePhone(document.star_downlds.Phone.value))
  {if(document.star_downlds.Phone.value == "")
                {
                        alert('Please enter your Telephone Number.');
                }
                else 
{alert('Please format Telephone Number similar to\n ##########, ###-###-#### or (###)###-####.');}
document.star_downlds.Phone.focus();
return (false);}

if(!validateEmail(document.star_downlds.Email.value))
{alert('Please enter a valid E-mail Address.');
document.star_downlds.Email.focus();
return (false);}

if(!oneChecked())
{alert('Please check at least 1 box above.');
return (false);}



document.star_downlds.submit();
}

function validateID(form)
{
	idEntered = window.document.useridform.userid.value;
	if (idEntered.length != 7)
	{
		alert("The User ID entered is invalid.\n\nPlease try again.");
		window.document.useridform.userid.value = "";
		window.document.useridform.userid.focus();
		return false;
	}
	else
	{
		window.opener.location = "/downloads/edi/remote_dde/setup.exe";
		self.close();
	}
}

function validate(){

	if (window.document.form1.Contact_Me[0].checked)
	{
		if (window.document.form1.Name.value == "" || window.document.form1.Name.value == null)
		{
      	alert("Please enter your Name.");
	  	window.document.form1.Name.focus();
	  	return false;
   		}

		if((window.document.form1.Region.value == "" || window.document.form1.Region.value == null) || !validateEmail(window.document.form1.Region.value))
		{
		alert("Please enter a valid E-mail Address.");
		window.document.form1.Region.value="";
		window.document.form1.Region.focus();
		return false;
   		}
	}
	else
	{
	return true;
	}
} 
/*function validateForm() {
    
    if (document.drm_request_form.FirstName.value=="") {
       alert("Please enter your \"First\" Name.")
        document.drm_request_form.FirstName.focus();
	return false;
    }
	if (!validateAlpha(document.drm_request_form.FirstName.value)) {
	   alert('Please verify that there are only alpha and . , - \n characters in the \"First Name\" field.');
		document.drm_request_form.FirstName.focus();
	return false;
    }
	if (document.drm_request_form.LastName.value=="") {
       alert("Please enter your \"Last\" Name.")
        document.drm_request_form.LastName.focus();
	return false;
    }
	if (!validateAlpha(document.drm_request_form.LastName.value)) {
	   alert('Please verify that there are only alpha and . , - \n characters in the \"Last Name\" field.');
		document.drm_request_form.LastName.focus();
	return false;
    }	
	if ((!validateMonth(document.drm_request_form.Birthmonth.value)) && (document.drm_request_form.Birthmonth.value!="")) {
       alert('Please enter a valid month (mm)');
        document.drm_request_form.Birthmonth.focus();
        return false;
	}	
	if ((!validateDate(document.drm_request_form.Birthdate.value)) && (document.drm_request_form.Birthdate.value!="")) {
    alert('Please enter a valid date (dd)');
    document.drm_request_form.Birthdate.focus();
    return false;
	}	
	if ((!validateYear(document.drm_request_form.Birthyear.value)) && (document.drm_request_form.Birthyear.value!="")) {
    alert('Please enter a valid year (yyyy)');
    document.drm_request_form.Birthyear.focus();
    return false;
	}	
	
	if (document.drm_request_form.Address1.value=="") {
       alert("Please enter your street \"Address\".")
        document.drm_request_form.Address1.focus();
	return false;
    }	
	
	
	if (!validateAlphaNum(document.drm_request_form.Address1.value)) {
	   alert('Please verify that there are only alphabetic, numeric and . , - \n characters in the \"Address 1\" field.');
	    document.drm_request_form.Address1.focus();
	return false;
	}
	
	//if (document.drm_request_form.Address2.value!="") && (!validateAlphaNum(document.drm_request_form.Address2.value)){
      // alert("Please verify that there are only alphabetic, numeric and . , - \n characters in the \"Address 2\" field.")
        //document.drm_request_form.Address2.focus();
	//return false;
   // }	
		
	if (document.drm_request_form.City.value=="") {
       alert("Please enter your \"City\".")
        document.drm_request_form.City.focus();
	return false;
    }
	if (!validateAlpha(document.drm_request_form.City.value)) {
	   alert('Please verify that there are only alphabetic and . , - \n characters in the \"City\" field.');
		document.drm_request_form.City.focus();
	return false;
	}
	//if (!validateState(document.drm_request_form.drmState.value)) {
   //    alert("Please enter a valid \"State\" abbreviation.")
   //     document.drm_request_form.drmState.focus();
	//return false;
   // }
	
	if (document.drm_request_form.Zip.value=="") {
       alert("Please enter your \"Zip\" Code.")
        document.drm_request_form.Zip.focus();
	return false;
    }  
    if (!validateZip(document.drm_request_form.Zip.value)) {
	   alert('Please verify that there are at least five, and only numeric characters, in the \"Zip\" code field.');
		document.drm_request_form.Zip.focus();
	return false;
	}
	
	if ((!validateEmail(document.drm_request_form.Email.value)) && (document.drm_request_form.Email.value!="")) {
       alert('Please enter a valid \"E-mail\" address using correct syntax. \n Example: \"joe@somewhere.com\"');
        document.drm_request_form.Email.focus();
        return false;
	}	
	    
    document.drm_request_form.submit();
}*/


var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

/*** Begin Flash Detection & Insert Utility ***/
// Detect Client Browser type
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
jsVersion = 1.1;

/*************************************************************************/
if(isIE && isWin) {
	document.write("<" + "SCR" + "IPT LANGUAGE=VBScript> \n");
    document.write("  Function VBGetSwfVer(i) \n");
    document.write("    on error resume next \n");
    document.write("    Dim swControl, swVersion \n");
    document.write("    swVersion = 0 \n");
    document.write("    set swControl = CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" + CStr(i)) \n");
    document.write("    if (IsObject(swControl)) then \n");
    document.write("      swVersion = swControl.GetVariable(\"$version\") \n");
	document.write("      break  \n");
    document.write("    end if \n");
    document.write("    VBGetSwfVer = swVersion \n");
    document.write("End Function \n");
	document.write("// -->  \n");
	document.write("<" + "/SCR" + "IPT> \n");
}
/************************************************************************/

// JavaScript helper required to detect Flash Player PlugIn version information
function JSGetSwfVer(i) {
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
      		var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			descArray = flashDescription.split(" ");
			tempArrayMajor = descArray[2].split(".");
			versionMajor = tempArrayMajor[0];
			versionMinor = tempArrayMajor[1];
			if ( descArray[3] != "" ) {
				tempArrayMinor = descArray[3].split("r");
			} else {
				tempArrayMinor = descArray[4].split("r");
			}
      		versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
            flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
      	} else {
			flashVer = -1;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	// Can't detect in all other cases
	else {
		flashVer = -1;
	}
	return flashVer;
}

// If called with no parameters this function returns a floating point value 
// which should be the version of the Flash Player or 0.0 
// ex: Flash Player 7r14 returns 7.14
// If called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) {
 	reqVer = parseFloat(reqMajorVer + "." + reqRevision);
   	// loop backwards through the versions until we find the newest version	
	for (i=25;i>0;i--) {	
		if (isIE && isWin && !isOpera) {
			versionStr = VBGetSwfVer(i);
		} else {
			versionStr = JSGetSwfVer(i);		
		}
		if (versionStr == -1 ) { 
			return false;
		} else if (versionStr != 0) {
			if(isIE && isWin && !isOpera) {
				tempArray         = versionStr.split(" ");
				tempString        = tempArray[1];
				versionArray      = tempString .split(",");				
			} else {
				versionArray      = versionStr.split(".");
			}
			versionMajor      = versionArray[0];
			versionMinor      = versionArray[1];
			versionRevision   = versionArray[2];
			
			versionString     = versionMajor + "." + versionRevision;   // 7.0r24 == 7.24
			versionNum        = parseFloat(versionString);
        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
			if ( (versionMajor > reqMajorVer) && (versionNum >= reqVer) ) {
				return true;
			} else {
				return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false );	
			}
		}
	}	
	return (reqVer ? false : 0.0);
}

function insertFlashObject(mUrl,mID,mWidth,mHeight,mMenu,mBGColor,fpVersion,altImg) {	//parameters accepted are movie url (mUrl), movie id (mID), movie width (mWidth), movie height (mHeight), movie menu (mMenu), movie background color (mBGColor), Flash Player required (fpVersion), alternate image (altImg)
	var requiredMajorVersion = fpVersion;
	var requiredMinorVersion = 0;
	var requiredRevision = 0;
	var hasRequiredFlashPlayerVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	var oeTags = "";
	
	if (hasRequiredFlashPlayerVersion) {
		oeTags += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\" width=\"" + mWidth + "\" height=\"" + mHeight + "\" id=\"" + mID + "\">";
		oeTags += "<param name=\"movie\" value=\"" + mUrl + "\" />";
		oeTags += "<param name=\"quality\" value=\"high\" />";
		oeTags += "<param name=\"menu\" value=\"" + mMenu + "\" />";
		oeTags += "<param name=\"bgcolor\" value=\"#" + mBGColor + "\" />";
		oeTags += "<embed src=\"" + mUrl + "\" quality=\"high\" menu=\"" + mMenu + "\" bgcolor=\"#" + mBGColor + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer/\" type=\"application/x-shockwave-flash\" width=\"" + mWidth + "\"  height=\"" + mHeight + "\"></embed>";
		oeTags += "</object>";
		
		document.write(oeTags);
	} else { //doesn't have required version of Flash Player
		//Display alternative content
		document.write("<img src=\"" + altImg + "\" width=\"" + mWidth + "\" height=\"" + mHeight + "\" border=\"0\" alt=\"\" class=\"noflash\" />");
		document.write("<p class=\"noflash\" style=\"padding-left:8px;\"><strong>Note:</strong><br /><span class=\"error\">Flash Player " + fpVersion + " or above is required to view this content.</span>  <a href=\"http://www.macromedia.com/go/getflashplayer\" target=\"_blank\">Download Flash Player</a>.</p>");
	}
}
/*** End Flash Detection & Insert Utility ***/