Hi I need to create a program for a friend that will prompt users for the state in which they live in. Upon entering their state, the corresponding region will be kicked out to them through an alert. Can anyone please help me out and discover why an error message keeps on occuring in line 51??? It would be greatly appreciated.




<HTML>
<HEAD>
<TITLE>Regions3</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- HIDE FROM INCOMPATIBLE BROWSERS

function regionSelect() {

var state = prompt("You live in" + state);
var region1 = "New England Region";
var region2 = "Middle Atlantic Region";
var region3 = "Southern Region";
var region4 = "Midwestern Region";
var region5 = "Southwestern Region";
var region6 = "Western Region";

if (state = "Connecticut||Maine||Massachusetts||New Hampshire||Rhode Island||Vermont"){
alert("You live in the " + region1);
break;
}
else if(state = "Delaware||Maryland||New Jersey||New York||Pennsylvania");{
alert("You live in the " + region2);
break;
}
else if(state = "Alabama||Arkansas||Florida||Georgia||Kentucky||Louisiana||Mississippi||Missouri||North Carolina||South

Carolina||Tennessee||Virginia||West Virginia");{
alert("You live in the " + region3);
break;
}
else if (state = "Illinois||Indiana||Iowa||Kansas||Michigan||Minnesota||Nebraska||North Dakota||Ohio||South

Dakota||Wisconsin");{
alert("You live in the " + region4);
break;
}

else if(state = "Arizona||New Mexico||Oklahoma||Texas");{
alert("You live in the " + region5);
break;
}
else (state = "Alaska||California||Colorado||Hawaii||Idaho||Montana||Nevada||Oregon||Utah||Washington||Wyoming ");{
alert("You live in the " + region6);
break;
}
}while(state = typeof(string));

// STOP HIDING FROM INCOMPATIBLE BROWSERS -->
</SCRIPT>
</HEAD>
<BODY onLoad="regionSelect();">
<H1>Select reload or refresh to find another state's region!</H1>
</BODY>
</HTML>