Hi all,
I need to redirect to a specific page a after form slection butI am gettimg the error of "sPrefHome is undefined" after message is shown.
Any help is appreciated.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--meta http-equiv="Content-Type" content="text/html; charset=utf-8" /--->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


<META Name="keywords" Content="">
 
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" media="all" href="css/dupont_master.css" />
<script LANGUAGE="JavaScript"> 
<!--
function processCountrySelector(_form){
     var bRememberHome = _form.remember.checked;
    var sPrefHome = _form.goUrl.options[document.sendUrl.goUrl.selectedIndex].value;
    var cookieName = "HomeCookie";
    var path = "/";
    var domain = "domain.tr";
    if (bRememberHome){
       var thisDate = new Date();
       thisDate.setYear(9999);
       thisDate.setMonth(0);
       thisDate.setDate(1);
       //alert ("thisDate="+thisDate);
 
       var curCookie = cookieName + "=" + escape(sPrefHome) +
       ((thisDate) ? "; expires=" + thisDate.toGMTString() : "")+
       ((path) ? "; path=" + path : "")+
       ((domain) ? "; domain=" + domain : "");
       //alert ("curCookie="+curCookie);
       document.cookie = curCookie;
      // alert("past this deal" + sPrefHome);

   }

  //alert(window.location.search);
	document.write("<br><br><br><br><br><h3 align='center'>loading...please wait</h3>");
	document.close();
	setTimeout("window.location.assign(sPrefHome);", 10000);




}
//-->
</script>
</head>
 
<body>
<table cellspacing="15" cellpadding="0" border="0" align="center">
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td></td></tr>
<tr><td><img src="imgs/header.png" /></td></tr>
</table>
 
<!--form name="sendUrl" onsubmit="return dropdown(this.gourl)" action="#" method="post"-->

<form name="sendUrl" method="post">
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tbody>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>
<div id="countrySelector">
<div class="selectBox">
<span class="elementTitle">Bir Ülke (Dil) Seçiniz</span>&#160;
<select class="dropDown" name="goUrl">
<!--option value="Select" selected="selected">- Select -</option-->
<option value="IdentityManager" selected="selected">Türkiye (Türkçe)</option>
<option value="IdentityManagerEnglish">United States (English)</option>


 
</select>
&#160;<a class="body01link" href="#"><img class="inlineImg" onclick="javascript:processCountrySelector(document.sendUrl);" src="imgs/go_ovr.png" alt="Go" border="0"/></a>
</div>
<input type="hidden" value="value" name="remember">
&#160;
</div>
</td>
</tr>
</tbody>
</table>
</form>
 
</body>
</html>