>"; if(!calWin || calWin.closed) { calWin = window.open("", "calWindow", "scrollbars=yes,resizeable=yes,height=" + height + ",width=" + width); } else { calWin.focus(); } calWin.document.write(out); calWin.document.close(); return false; } function CalendarPopup_GetDate(tbName, formatNum) { var todayDate; if(document.forms[0][tbName].value != '') { var theDate; var theDateArr = document.forms[0][tbName].value.split("/"); if(theDateArr.length != 3) { theDateArr = document.forms[0][tbName].value.split("."); if(theDateArr.length != 3) theDateArr = document.forms[0][tbName].value.split("-"); } if(theDateArr.length == 3) { switch(formatNum) { case 1: // In: MM/DD/YYYY Out: MM/DD/YYYY theDate = theDateArr[0].concat("/").concat(theDateArr[1]).concat("/").concat(theDateArr[2]); break; case 2: // In: DD/MM/YYYY Out: MM/DD/YYYY theDate = theDateArr[1].concat("/").concat(theDateArr[0]).concat("/").concat(theDateArr[2]); break; case 3: // In: YYYY/MM/DD Out: MM/DD/YYYY theDate = theDateArr[1].concat("/").concat(theDateArr[2]).concat("/").concat(theDateArr[0]); break; case 4: // In MM.DD.YYYY Out: MM.DD.YYYY theDate = theDateArr[0].concat("/").concat(theDateArr[1]).concat("/").concat(theDateArr[2]); break; case 5: // In DD.MM.YYYY Out: MM.DD.YYYY theDate = theDateArr[1].concat("/").concat(theDateArr[0]).concat("/").concat(theDateArr[2]); break; case 6: // In YYYY.MM.DD Out: MM.DD.YYYY theDate = theDateArr[1].concat("/").concat(theDateArr[2]).concat("/").concat(theDateArr[0]); break; case 7: // In MM-DD-YYYY Out: MM-DD-YYYY theDate = theDateArr[0].concat("/").concat(theDateArr[1]).concat("/").concat(theDateArr[2]); break; case 8: // In DD-MM-YYYY Out: MM-DD-YYYY theDate = theDateArr[1].concat("/").concat(theDateArr[0]).concat("/").concat(theDateArr[2]); break; case 9: // In YYYY-MM-DD Out: MM-DD-YYYY theDate = theDateArr[1].concat("/").concat(theDateArr[2]).concat("/").concat(theDateArr[0]); break; } todayDate = new Date(theDate); if(todayDate == NaN) todayDate = new Date(); } else { todayDate = new Date(); } } else { todayDate = new Date(); } return todayDate; } function CalendarPopup_DisplayCalendarByDate(tbName, stringDate, funcName, wdStyle, weStyle, omStyle, sdStyle, mhStyle, dhStyle, cdStyle, tdStyle, gttStyle, formatNum, monthnames, daynames, fdweek, sunNum, satNum, includeYears, lBound, uBound, pad, postbackFunc, showClear, clearText, showGoToToday, goToTodayText, customFunc, calWidth) { var dateToday = new Date(); var lowerDate = new Date(lBound); var upperDate = new Date(uBound); var curDate = new Date(CalendarPopup_GetDate(tbName, formatNum)); var curMonth = curDate.getMonth(); var curYear = curDate.getFullYear(); var todayDate = new Date(stringDate); var monthdays = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); thisday=todayDate.getDay(); thismonth=todayDate.getMonth(); thisdate=todayDate.getDate(); thisyear=todayDate.getFullYear(); if (((thisyear % 4 == 0) && !(thisyear % 100 == 0)) ||(thisyear % 400 == 0)) monthdays[1]++; var outputString = ''; startspaces=thisdate; var prevMonth = thismonth; var prevDay = thisdate; var prevYear = thisyear; var thisPreviousYear = thisyear - 1; var thisNextYear = thisyear + 1; if(prevMonth < 1) { prevMonth = 12; prevYear = prevYear - 1; } if(thisdate > monthdays[prevMonth - 1]) prevDay = monthdays[prevMonth - 1]; var nextMonth = thismonth + 2; var nextDay = thisdate; var nextYear = thisyear; if(nextMonth > 12) { nextMonth = 1; nextYear = nextYear + 1; } if(thisdate > monthdays[nextMonth - 1]) nextDay = monthdays[nextMonth - 1]; while (startspaces > 7) startspaces-=7; startspaces = thisday - startspaces + 1; startspaces = startspaces - fdweek; if (startspaces < 0) startspaces+=7; outputString = outputString + ' 0) outputString = outputString + ' width=\"' + calWidth + 'px\"'; outputString = outputString + ' style=\"border-right: black 1px solid;border-top: black 1px solid;border-left: black 1px solid;border-bottom: black 1px solid;\" border=0 cellspacing=0px cellpadding=2px>'; if(includeYears == false) outputString = outputString + "<"; else outputString = outputString + "<
<<"; outputString = outputString + '' + monthnames[thismonth] + ' ' + thisyear + ''; if(includeYears == false) outputString = outputString + ">"; else outputString = outputString + ">
>>"; outputString = outputString + ''; outputString = outputString + '' + daynames[0] + ''; outputString = outputString + '' + daynames[1] + ''; outputString = outputString + '' + daynames[2] + ''; outputString = outputString + '' + daynames[3] + ''; outputString = outputString + '' + daynames[4] + ''; outputString = outputString + '' + daynames[5] + ''; outputString = outputString + '' + daynames[6] + ''; outputString = outputString + ''; for (s=0;s'; if((lowerAmount > 0 && upperAmount < 0) || (upperAmount > 0 && lowerAmount < 0)) outputString = outputString + "" + theDate + ""; else if(s!=sunNum && s!=satNum) outputString = outputString + "" + theDate + ""; else outputString = outputString + "" + theDate + ""; } count=1; while (count <= monthdays[thismonth]) { for (b = startspaces;b<7;b++) { if(b == 0) outputString = outputString + ''; if((thismonth == dateToday.getMonth() && count == dateToday.getDate() && thisyear == dateToday.getFullYear()) || (count==curDate.getDate() && thismonth == curMonth && thisyear == curYear && document.forms[0][tbName].value != '')) { if (count==curDate.getDate() && thismonth == curMonth && thisyear == curYear && document.forms[0][tbName].value != '') outputString = outputString + ''; else if(thismonth == dateToday.getMonth() && count == dateToday.getDate() && thisyear == dateToday.getFullYear()) outputString = outputString + ''; } else { if (count <= monthdays[thismonth]) { if(b!=sunNum && b!=satNum) { outputString = outputString + ''; } else { outputString = outputString + ''; } } else { outputString = outputString + ''; } } if (count <= monthdays[thismonth]) { var theCurDate = new Date((thismonth + 1) + "/" + count + "/" + thisyear); var lowerAmount = (lowerDate - theCurDate); var upperAmount = (theCurDate - upperDate); if((thismonth == dateToday.getMonth() && count == dateToday.getDate() && thisyear == dateToday.getFullYear()) || (count==curDate.getDate() && thismonth == curMonth && thisyear == curYear && document.forms[0][tbName].value != '')) { if (count==curDate.getDate() && thismonth == curMonth && thisyear == curYear && document.forms[0][tbName].value != '') { if((lowerAmount > 0 && upperAmount < 0) || (upperAmount > 0 && lowerAmount < 0)) outputString = outputString + "" + count + ""; else outputString = outputString + "" + count + ""; } else if(thismonth == dateToday.getMonth() && count == dateToday.getDate() && thisyear == dateToday.getFullYear()) { if((lowerAmount > 0 && upperAmount < 0) || (upperAmount > 0 && lowerAmount < 0)) outputString = outputString + "" + count + ""; else outputString = outputString + "" + count + ""; } } else if(b!=sunNum && b!=satNum && count != thisdate) if((lowerAmount > 0 && upperAmount < 0) || (upperAmount > 0 && lowerAmount < 0)) outputString = outputString + "" + count + ""; else outputString = outputString + "" + count + ""; else if(b!=sunNum && b!=satNum) if((lowerAmount > 0 && upperAmount < 0) || (upperAmount > 0 && lowerAmount < 0)) outputString = outputString + "" + count + ""; else outputString = outputString + "" + count + ""; else if((lowerAmount > 0 && upperAmount < 0) || (upperAmount > 0 && lowerAmount < 0)) outputString = outputString + "" + count + ""; else outputString = outputString + "" + count + ""; } else { var month, year; if(thismonth == 11) { month = 1; year = thisyear + 1; } else { month = thismonth + 2; year = thisyear; } outputString = outputString + "" + (count - monthdays[thismonth]) + ""; } outputString = outputString + ''; count++; } outputString = outputString + ''; startspaces=0; } if(showGoToToday) { var shortDate = (dateToday.getMonth() + 1) + "/" + dateToday.getDate() + "/" + dateToday.getFullYear(); outputString = outputString + "" + goToTodayText + " " + CalendarPopup_DetermineDate(shortDate, formatNum, pad) + ""; } if(showClear) outputString = outputString + "" + clearText + ""; outputString = outputString + ''; return outputString; } function CalendarPopup_DetermineDate(inDate, formatNum, pad) { var theDateArr = inDate.split("/"); if(theDateArr.length != 3) { theDateArr = document.getElementById(tbName).value.split("."); if(theDateArr.length != 3) { theDateArr = document.getElementById(tbName).value.split("-"); } } if(pad) { if(parseInt(theDateArr[0]) < 10 && theDateArr[0].length == 1) theDateArr[0] = '0' + theDateArr[0]; if(parseInt(theDateArr[1]) < 10 && theDateArr[1].length == 1) theDateArr[1] = '0' + theDateArr[1]; if(parseInt(theDateArr[2]) < 10 && theDateArr[2].length == 1) theDateArr[2] = '0' + theDateArr[2]; } var theDate; switch(formatNum) { case 1: // In: MM/DD/YYYY Out: MM/DD/YYYY theDate = theDateArr[0].concat("/").concat(theDateArr[1]).concat("/").concat(theDateArr[2]); break; case 2: // In: MM/DD/YYYY Out: DD/MM/YYYY theDate = theDateArr[1].concat("/").concat(theDateArr[0]).concat("/").concat(theDateArr[2]); break; case 3: // In: MM/DD/YYYY Out: YYYY/MM/DD theDate = theDateArr[2].concat("/").concat(theDateArr[0]).concat("/").concat(theDateArr[1]); break; case 4: // In MM.DD.YYYY Out: MM.DD.YYYY theDate = theDateArr[0].concat(".").concat(theDateArr[1]).concat(".").concat(theDateArr[2]); break; case 5: // In MM.DD.YYYY Out: DD.MM.YYYY theDate = theDateArr[1].concat(".").concat(theDateArr[0]).concat(".").concat(theDateArr[2]); break; case 6: // In MM.DD.YYYY Out: YYYY.MM.DD theDate = theDateArr[2].concat(".").concat(theDateArr[0]).concat(".").concat(theDateArr[1]); break; case 7: // In MM-DD-YYYY Out: MM-DD-YYYY theDate = theDateArr[0].concat("-").concat(theDateArr[1]).concat("-").concat(theDateArr[2]); break; case 8: // In MM-DD-YYYY Out: DD-MM-YYYY theDate = theDateArr[1].concat("-").concat(theDateArr[0]).concat("-").concat(theDateArr[2]); break; case 9: // In MM-DD-YYYY Out: YYYY-MM-DD theDate = theDateArr[2].concat("-").concat(theDateArr[0]).concat("-").concat(theDateArr[1]); break; } return theDate; } function CalendarPopup_SelectDate(tbName, theDate, formatNum, pad, postbackFunc, customFunc) { document.forms[0][tbName].value = CalendarPopup_DetermineDate(theDate, formatNum, pad); eval(postbackFunc + "();"); if(customFunc != "") eval(customFunc + "('" + theDate + "', '" + tbName + "');"); } function CalendarPopup_ClearDate(tbName, postbackFunc, customFunc) { document.forms[0][tbName].value = ''; eval(postbackFunc + "();"); if(customFunc != "") eval(customFunc + "('', '" + tbName + "');"); } // -->
Skip to content..
Skip to left column..
Skip to right column..
Sutter County Seal - Click to go to the home page.
Sutter County website banner Official Records Search
Sutter County website banner Online Services Channel
Sutter County website banner Sutter Buttes - the smallest mountain range Sutter Buttes - the smallest mountain range Sutter County website banner
 
spacer  
Sutter County is in the process of migrating existing web applications to our new website. This web application will reside on our temporary website until a migration is fully completed.
 View Cart
Sutter County Grantor/Grantee Index Date Search
 
Specific Date or Start of Date Range:
End of Date Range (Leave blank for specific date):
  
 
.filler