I cant get my cookie to work. I believe its not my javascript that is wrong. Can anyone take a look to see what i did wrong in my cookie? I have to pages dropdown1.html and dropdown2.html. Both pages have the same exact dropdown list. There is also a javascript file called script.js which makes it so you get an error if you select the same option on the second drop down list as the first. Also in the script.js i have a cookie that should run so dropdown2.html should now what was selected in dropdown1.html Can anyone see if i made a mistake in either my javascript code in my cookie? Right now I am not getting the error message if you select the same option as the first. Ill show all my code incase you need it for reference

dropdown1.html

Code:
<html>
<body>
<form name="input" action="dropdown2.html" method="get">
<form>
First Choice: <select name="ThursAM_First" size="1" id="ThursAM_First" 
		onchange="return no_dupes(this,ThursAM_Second)">
                  <option value="" selected> choose </option>
		  <option value=""></option>
                  <option value="T1">T1</option>
                  <option value="T2">T2</option>
                  <option value="T3">T3</option>
                  <option value="T4">T4</option>
                </select>
<input type="submit" value="Submit" />

</form>

</body>
 <script type="text/javascript" src="script.js"></script>
</html>
dropdown2.html

Code:
<html>
<head>
</head>
<form>

Second Choice: <select name="ThursAM_Second" size="1" id="ThursAM_Second" 
		onchange="return no_dupes(this,ThursAM_First)">
                  <option value="" selected> choose </option>
		  <option value=""></option>
                  <option value="T1">T1</option>
                  <option value="T2">T2</option>
                  <option value="T3">T3</option>
                  <option value="T4">T4</option>
                </select>
</form>

</body>
 <script type="text/javascript" src="script.js"></script>
</html>
script.js (this is the part where I cant figure out why the error message does not appear on the second dropdown menu if user selects the same option as the first)

Code:
// Get the cookie, if available.
function getCookie(c_name)
{
if (document.cookie.length>0)
{
c_start = document.cookie.indexOf(c_name + "=");
if (c_start != -1)
{
c_start=c_start + c_name.length+1;
c_end=document.cookie.indexOf(";",c_start);
if (c_end==-1) { c_end=document.cookie.length; }
return unescape(document.cookie.substring(c_start,c_end));
}
}
return "";
}

// Set the cookie to a value, and expire in specified days.
function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

// Check if prior cookie exists from prior form screen. 
// if so, see if it matches the current select value.
function no_dupes(oSelect)
{
var currentValue = oSelect.value;
var isFirstRound = (oSelect.id.toUpperCase() == "THURSAM_FIRST");
var lookForCookieID = (isFirstRound) ? "ThursAM_Second" : "ThursAM_First";
var cookieID = (isFirstRound) ? "ThursAM_First" : "ThursAM_Second";

var PriorDDValue = getCookie(lookForCookieID);
if (PriorDDValue != null && PriorDDValue != "")
{
if (PriorDDValue == currentValue)
{
alert("\n Sorry, you already choose this point value from round " 
+ ((isFirstRound) ? "2" : "1") 
+ ". Please select another!\nThanks.");
oSelect.selectedIndex = 0;
return false;
}
}

setCookie(cookieID, currentValue, 7);
}
}

Thanks!!