

imgAcctLogOn =new Array();
//imgAcctLogOn[0] ='../images/goLocal/sidebar_login.gif';
//imgAcctLogOn[1] ='../images/goLocal/sidebar_btn_over.gif';
//imgAcctLogOn[2] ='../images/goLocal/sidebar_sched_over.gif';
//imgAcctLogOn[3] ='../images/goLocal/sidebar_coord_over.gif';
//imgAcctLogOn[4] ='../images/goLocal/sidebar_btn_down.gif';

imgAcctLogOn[0] = '../images/ext/sidebar_login_up.png';
imgAcctLogOn[1] = '../images/ext/sidebar_login_btn_over.png';
imgAcctLogOn[2] = '../images/ext/sidebar_coord_over.png';
imgAcctLogOn[3] = '../images/ext/sidebar_sched_over.png';

imgZipSubmit =new Array();
imgZipSubmit[0] ='../images/goLocal/btn_submit_up.jpg';
imgZipSubmit[1] ='../images/goLocal/btn_submit_over.jpg';
imgZipSubmit[2] ='../images/goLocal/btn_submit_down.jpg';
imgZipSubmit[3] ='../images/goLocal/btn_submit_up.jpg';
imgZipSubmit[4] ='../images/goLocal/btn_submit_up.jpg';

/*
================================================================
Function:		handleLogIn
Summary:
Parameters:
Return Value:
History:			initial -03.23.09 -swc
================================================================
*/
function handleLogIn(iSwitch){
//alert(iSwitch);

   document.images.loginI.src =imgAcctLogOn[parseInt(iSwitch)];
return;
} //handleLogIn

/*
================================================================
Function:		checkAndZeroZIP
Summary:
Parameters:
Return Value:
History:			initial -07.23.09 -swc
================================================================
*/
function checkAndZeroZIP(objZIP){

   objZIP.value =checkInt(objZIP.value);
   if(objZIP.value =='0'){
      objZIP.value ='00000'
   }
   else if(objZIP.value.length ==1){
      objZIP.value =objZIP.value *10000
   }
   else if(objZIP.value.length ==2){
      objZIP.value =objZIP.value *1000
   }
   else if(objZIP.value.length ==3){
      objZIP.value =objZIP.value *100
   }
   else if(objZIP.value.length ==4){
      objZIP.value =objZIP.value *10
   }

return;
} //checkAndZeroZIP


/*
================================================================
Function:			handleZipSubmit
Summary:
Parameters:
Return Value:
History:			initial -06.09.09 -swc
================================================================
*/
function handleZipSubmit(iSwitch){

   switch(iSwitch){
   case 0: //over
      //alert('0');
      document.images.zipSubmit.src =imgZipSubmit[1];
      checkAndZeroZIP(window.document.forms.zipBucket.userZip);
      break;

   case 1: //out
      //alert('1');
      document.images.zipSubmit.src =imgZipSubmit[0];
      break;

   case 2: //down
      //alert('2');
      document.images.zipSubmit.src =imgZipSubmit[2];
      checkAndZeroZIP(window.document.forms.zipBucket.userZip);
      break;

   case 3: //up
      //alert('3');
      document.images.zipSubmit.src =imgZipSubmit[0];
      window.document.forms.changePage.pageStateI.value ='<%=ctrlFlagePROCESSUSERZIP %>';
      window.document.forms.changePage.userZip.value =window.document.forms.zipBucket.userZip.value
      window.document.forms.changePage.submit();
      break;

   }

   //document.images.zipSubmit.src =imgZipSubmit[parseInt(iSwitch)];
   //if(parseInt(iSwitch) ==2){
      //alert('processZip');
      //alert(window.document.forms.zipBucket.userZip.value);
      
      //window.document.forms.changePage.pageStateI.value ='<%=ctrlFlagePROCESSUSERZIP %>';
      //window.document.forms.changePage.userZip.value =window.document.forms.zipBucket.userZip.value
      //alert(window.document.forms.changePage.pageStateI.value);
      //window.document.forms.changePage.submit();
   //}
return;
} //handleZipSubmit

/*
================================================================
Function:		handleGeoSelect
Summary:
Parameters:
Return Value:
History:			initial -08.13.09 -swc
================================================================
*/
function handleGeoSelect(){
var formContents = '';
var formElement = document.getElementById("geoCode").elements;
var iLCV = 0;

   for(iLCV = 0; iLCV < formElement.length; iLCV++)
   {
      formContents += 'type: ' + formElement[iLCV].type + '\n';
      formContents += 'Name: ' + formElement[iLCV].name + '\n';
      formContents += 'Value: ' + formElement[iLCV].value + '\n';
      formContents += 'Checked: ' + formElement[iLCV].checked + '\n';
      if(formElement[iLCV].checked){
         window.document.forms.changePage.geoClusterID.value =formElement[iLCV].value;
      }
   }

   window.document.forms.changePage.geoSelect.value = '1';
   window.document.forms.changePage.pageStateI.value = '<%=ctrlFlagePROCESSUSERZIP %>';
   window.document.forms.changePage.submit();

return;
} //handleGeoSelect



function showFullStory(){

//alert('showthe story...');

   document.getElementById('storyOne').innerHTML = '<%=txtMainStoryFull %>';

}


