<!--

function SubmitIt() {
	document.Form1.submit();
}

function SubmitItPost(Lang, Page) {
	document.Form1.method="post";
    document.Form1.action="Default.asp?L=" + Lang + "&Page=" + Page;
	document.Form1.submit();
}

//To Switch Textbox on Search Start
function SwitchItIE(objValue)
{
   var strUValue;
  
   strUValue = objValue.options[objValue.selectedIndex].value.toUpperCase();
   
   if(strUValue == "DISTRICTSPROVINCE")
   {
       document.all.spnSearch.innerHTML = "<%=strSearchBy%>";
   }
   else if(strUValue == "USINGMAPS")
   {
      document.all.spnSearch.innerHTML = "<%=strSearchByMaps%>";
   }
   else
   {
       document.all.spnSearch.innerHTML = "<%=strEDSearch%>";
   }
   
}

//due to Netscape...refresh page
function SwitchItNS(strLang, strPage)
{
   document.Form1.method="post";
   document.Form1.action="Default.asp?L=" + strLang + "&Page=" + strPage;
   document.Form1.submit();
}

function SubmitMe(strLang, strPage, strED)
{
   document.Form1.txtSubmit.value = "True"; //To identify a submit from an NS refresh
   document.Form1.method="post";
   document.Form1.action="Default.asp?L=" + strLang + "&Page=" + strPage + "&ED=" + strED;
   document.Form1.submit();
}

function SubmitMe2(strLang, strPage, strMapID)
{
   document.Form1.txtSubmit.value = "True"; //To identify a submit from an NS refresh
   document.Form1.txtMapID.value = strMapID;
   document.Form1.method="post";
   document.Form1.action="Default.asp?L=" + strLang + "&Page=" + strPage;
   document.Form1.submit();
}

//Used on the maps page for adjacent districts
function SubmitMe3(strLang, strPage, strED)
{

   if(strED == 0)
   {
      return;
   }
   
   document.Form1.method="post";
   document.Form1.action="Default.asp?L=" + strLang + "&Page=" + strPage + "&ED=" + strED;
   document.Form1.submit();
}

function PopUpWindow( WindowTitle, strED ) {
  window.open("PopUpWindows.asp?ED=" + strED, WindowTitle, "history=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=640,height=480");
}

function SubmitNewSearch(strLang, strPage, strNewSearch)
{
   if(strNewSearch == 0)
   {
      return;
   }
   
   document.Form1.txtHiddenSearchBy.value = strNewSearch 
   
   document.Form1.method="post";
   document.Form1.action="Default.asp?L=" + strLang + "&Page=" + strPage;
   document.Form1.submit();
}

// -->

