function redirect(where) {
	switch(where) {
		case 1: //us
			window.location = '/us/index.asp';
			break;
		case 2: //state
			window.location = '/state/index.asp';
			break;
		case 3: //sectional
			window.location = '/sectional/index.asp';
			break;
		case 4: //county
			window.location = '/county/index.asp';
			break;
		case 5://metro
			window.location = '/metro/index.asp';
			break;
		case 6: //custom area
			window.location = '/customarea/index.asp';
			break;
		case 7: //city maps
			window.location = '/city/index.asp';
			break;
		case 8: //single zip
			window.location = '/zipmap/index.asp';
			break;
		case 9: //5dzip
			window.location = '/zip5d/index.asp';
			break;
		case 10: //3dzip
			window.location = '/zip3d/index.asp';
			break;
		case 11: //carrier route
			window.location = '/carrierroute/index.asp';
			break;
		case 12: //zip+4
			window.location = '/zipp4/index.asp';
			break;
		case 13: //zip+4
			window.location = '/radius/index.asp';
			break;
	};
}

function Start(page)
{
	OpenWin = this.open(page, "melissamaps_preview", "width=620,height=650,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}


function Zoom1(page)
{
	OpenWin = this.open(page, "zcm_zoom", "width=630,height=480,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

