// JavaScript Document
var isIE=0;
var isIE7=0;
var isSaf=0;
if (navigator.userAgent.indexOf("MSIE")>0){isIE=1};
if (navigator.userAgent.indexOf("MSIE 7")>0){isIE7=1};
if (navigator.userAgent.indexOf("AppleWebKit")>=0){isSaf=1};
function getObj(objID) {
    // Chino's Super Duper DOM addressing script (xbrowser within limits..:-)
    if(document.getElementById && document.getElementById(objID)) {
	return document.getElementById(objID);
    } else if (document.all && document.all(objID)) {
	return document.all(objID);
    } else if (document.layers && document.layers[objID]) {
	return document.layers[objID];
    } else {
	return false;
    }
} 

function doRoll(id,mode){
	if(getObj(id).className.indexOf("menu_on")>-1){return(false)};
	getObj(id).className = "menu_"+mode;
}
function errorcheck(){
	flag=0;
	if(getObj("qstate").value==""){flag=1};
	if(getObj("qzipcode").value=="0"){flag=1};
	if(flag==1){
		alert("You must first enter your zipcode or select a state from the pulldown list before submkitting the query.");
		return(false);
	} else {
		return(true);
	}
}
function setMenu(id){
	getObj("m"+id+"").className = "menu_on";
}





var ieString1 = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='678' height='400' id='FlashID' title='Hearing Loss'><param name='movie' value='";
var ieString2 = "' /><param name='quality' value='high' /><param name='wmode' value='opaque' /><param name='swfversion' value='9.0.45.0' /><param name='expressinstall' value='/scripts/expressInstall.swf' /></object>";

var mozString1 = "<object type='application/x-shockwave-flash' data='";
var mozString2 = "' width='678' height='400'><param name='quality' value='high' /><param name='wmode' value='opaque' /><param name='swfversion' value='9.0.45.0' /><param name='expressinstall' value='/scripts/expressInstall.swf' /><div><h4>Content on this page requires a newer version of Adobe Flash Player.</h4><p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a></p></div></object>";

