var today = new Date();var today_day = today.getDate();var today_month = today.getMonth()+1;var today_year = today.getFullYear();var currDateString = new String(today_year+''+today_month+''+today_day);window.document.frmQuickFind.blkArrivalDate.value = currDateString;function setArrivalDate(value, type){var currDay = window.document.frmQuickFind.SrchFromDay.value;var currMonth = window.document.frmQuickFind.SrchFromMonth.value;var currYear = window.document.frmQuickFind.SrchFromYear.value;if(currDay.length==1){currDay = '0'+currDay;}if(currMonth.length==1){currMonth = '0'+currMonth;}if(value.length==1){ //see if lenght is 1 (day, month), if yes: 1 = 01, 2 = 02, ....value = '0'+value;}if(type==1) { //day to changecurrDateString = new String(currYear+''+currMonth+''+value);}else if(type==2) {currDateString = new String(currYear+''+value+''+currDay);}else if(type=3) {currDateString = new String(value+''+currMonth+''+currDay);}window.document.frmQuickFind.blkArrivalDate.value = currDateString;}      