<!--
/*
// GENERATED BY MENUGEN located at http://www.supertom.com/menugen/
// Menugen Copyright 2000 Tom Melendez
// Universal Related Select Menus - cascading popdown menus
// by Andrew King. v1.34 19990720
// Copyright (c) 1999 internet.com LLC. All Rights Reserved.
//
// Originally published and documented at http://www.webreference.com
// Contact aking@internet.com for all other uses.
*/
if(v){a=new Array(22);}

function getFormNum (formName) {
	var formNum =-1;
	for (i=0;i<document.forms.length;i++){
		tempForm = document.forms[i];
		if (formName == tempForm) {
			formNum = i;
			break;
		}
	}
	return formNum;
}

function getElemNum (elemName,formNum) {
	for (i=0;i<document.forms[formNum].elements.length;i++){
		tempElem = document.forms[formNum].elements[i].name;
		if (elemName == tempElem) {
			elemNum = i;
			break;
		}
	}
	return elemNum;
}

function jmp(form, elt)
// The first parameter is a reference to the form.
{
	if (form != null) {
		with (form.elements[elt]) {
			if (0 <= selectedIndex)
				location = options[selectedIndex].value;
		}
	}
}

var catsIndex = -1;
var itemsIndex;

if (v) { // ns 2 fix
function newCat(){
	catsIndex++;
	a[catsIndex] = new Array();
	itemsIndex = 0;
}

function O(txt,url) {
	a[catsIndex][itemsIndex]=new myOptions(txt,url);
	itemsIndex++;
}

function myOptions(text,value){
	this.text = text;
	this.value = value;
}

// fill array here

newCat();   //Blank option
	O("-----------------------------------","");
newCat();   //Blank option
	O("-----------------------------------","");
newCat();   //Newspaper
	O(GetLocalizedResource(3),"");
	O("-----------------------------------","");
	O("New York Times","nytimes");
	O("New York Daily News","nydailynews");
	O("New York Post","nypost");
	O("New York Newsday","nynewsday");
	O("Crain's New York Business","crains");
	O("AM-NY","am-ny");
	O("New York Sun", "nysun");
	O("Bergen Record","bergenrecord");
	O("Wall Street Journal","wsjournal");
	O("San Francisco Chronicle","sfchronicle");
	O("Washington Times","washingtontimes");
	O("Washington Post","washingtonpost");
	O("Staten Island Advance","siadvance");
	O(GetLocalizedResource(4),"other");
newCat();   //Radio
	O(GetLocalizedResource(5),"");
	O("-----------------------------------","");
	O("1010 Wins, " + GetLocalizedResource(6),"1010wins");
	O("880 CBS, " + GetLocalizedResource(6),"wcbs");
	O("Bloomberg Radio " + GetLocalizedResource(6),"bloomberg");
	O("Howard Stern show","howardstern");
	O("KISS-FM " + GetLocalizedResource(6),"kiss");
	O("WABC Radio " + GetLocalizedResource(6),"wabc");
	O("WOR " + GetLocalizedResource(6),"wor");
	//O("WABC Radio " + GetLocalizedResource(6) + ", Curtis & Kuby show","wabc curtis");
	//O("Don & Mike show, WJFK D.C.","wjfk don");
	//O("WJFK D.C.","wjfk howard");
	O("WJFK D.C.","wjfk");
	O("WBAL D.C.","wbal");
	O("WTOP D.C.","wtop");
	O(GetLocalizedResource(4),"other");
newCat();   //Television
	O(GetLocalizedResource(7),"");
	O("-----------------------------------","");
	O("News 12 " + GetLocalizedResource(8),"news 12 nj");
	O("ABC NY","abc");
	O("CBS NY","cbs");
	O("NBC NY","nbc");
	O("FOX NY","fox");
	O("UPN NY","upn");
	O("WB 11 NY","wb");
	O("WTTG DC","wttg");
	O("WJLA DC","wjla");
	O("Times Square JumboTron","jumbotron");
	O(GetLocalizedResource(4),"other");
newCat();   //Internet Site/Search Engine
	O(GetLocalizedResource(9),"");
	O("-----------------------------------","");
	O("Google","google");
	O("CNet","cnet");
	O("Yahoo","yahoo");
	O("AOL","aol");
	O("MSN","msn");
	O("Fleet Management Weekly", "fleetmanagement");
	O(GetLocalizedResource(4),"other");
newCat();   //Magazine
	O(GetLocalizedResource(10),"");
	O("-----------------------------------","");
	O("Crain's New York Business","crains");
	O("Forbes Magazine", "forbes");
	O("Fleet Management Weekly", "fleetmanagement");
	O(GetLocalizedResource(4),"other");
newCat();   //Billboard
	O(GetLocalizedResource(11),"");
	O("-----------------------------------","");
	O("Adopt a Highway - New York", "AAH ny");
	O("Adopt a Highway - Harlem River Drive North - GWB", "AAH harlem river north");
	O("Adopt a Highway - BQE East, Gowanus Merge", "AAH bqe east");
	O("Adopt a Highway - Cross Bronx Expressway South", "AAH cross bronx south");
	O("Brooklyn Queens Expressway", "bqe");
	O("Major Deegan Expressway, NYC", "deegan");
	O("Route 495, Lincoln Tunnel, N.J.", "I-495 NJ");
	O(GetLocalizedResource(4),"other");
newCat();   //Direct Mail
	O(GetLocalizedResource(12),"");
	O("-----------------------------------","");
	O(GetLocalizedResource(13),"postcard");
	O(GetLocalizedResource(4),"other");
newCat();   //Telemarketer
	O(GetLocalizedResource(14),"");
newCat();   //Friend/Referral
	O(GetLocalizedResource(15),"");
	O("-----------------------------------","");
	O(GetLocalizedResource(16),"friend");
	O(GetLocalizedResource(17),"associate");
	O(GetLocalizedResource(4),"other");
newCat();   //Other
	O(GetLocalizedResource(14),"other");
// end fill array
} // if (v)

function relate(formName,elementNum,j) {
    if(v){
        var formNum = getFormNum(formName);
		var elemNum = getElemNum("iptHowHearSpecific",formNum);
         if (formNum>=0) {
        	//formNum++; // reference next form, assume it follows in HTML
        	with (document.forms[formNum].elements[elemNum]) {
        		for(i=options.length-1;i>0;i--) options[i] = null; // null out in reverse order (bug workarnd)
        		for(i=0;i<a[j].length;i++){
        			options[i] = new Option(a[j][i].text,a[j][i].value);
        		}
        		options[0].selected = true;
        	}
        }
    }
    else {
        jmp(formName,elementNum);
    }
}
function IEsetup(){
	if(!document.all) return;
	IE5 = navigator.appVersion.indexOf("5.")!=-1;
	if(!IE5) {
		for (i=0;i<document.forms.length;i++) {
			document.forms[i].reset();
		}
	}
}
function toggleOther(formNum, formName, formValue, formIndex){
	HHGen 	= formName.iptHowHearGeneral[formName.iptHowHearGeneral.selectedIndex].value;
	HHSpec	= formName.iptHowHearSpecific[formName.iptHowHearSpecific.selectedIndex].value;
	HHSpecLen = formName.iptHowHearSpecific.options.length;
	if( HHGen == "other" || HHSpec == "other" ){
		divHHOther.style.display = "inline";
		divHHOtherMenu.style.display = "none";}
	else if( HHSpecLen == 1 ){
		divHHOther.style.display = "none";
		divHHOtherMenu.style.display = "none";}		
	else{
		divHHOther.style.display = "none";
		divHHOtherMenu.style.display = "inline";
		formName.iptHowHearSpecificOther.value = "";}
}
window.onload = IEsetup;
//-->