daysOfTheMonth = new Array(
'',
'1st',
'2nd',
'3rd',
'4th',
'5th',
'6th',
'7th',
'8th',
'9th',
'10th',
'11th',
'12th',
'13th',
'14th',
'15th',
'16th',
'17th',
'18th',
'19th',
'20th',
'21st',
'22nd',
'23rd',
'24th',
'25th',
'26th',
'27th',
'28th',
'29th',
'30th',
'31st'
)

months = new Array(
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
)

startDate = Date.parse(document.lastModified)
myLastModified = new Date(startDate)
myModMonth = myLastModified.getMonth()
myModDate = myLastModified.getDate()
myModYear = ''

//do for explorer
if (navigator.appName!="Netscape"){
	if (parseInt(navigator.appVersion)<4){
		myModYear=2000
		}
	else if (parseInt(navigator.appVersion) >=4){
	IE5 = new RegExp("MSIE 5")
	IE4 = new RegExp("MSIE 4")
		if (IE5.exec(navigator.appVersion)){
			if (myLastModified.getYear()==99){
			myModYear = "1999"
			}
			else if (myLastModified.getYear()>99){
			myModYear = myLastModified.getYear()
			}
		}
		else if (IE4.exec(navigator.appVersion)){  
			if (myLastModified.getYear() == 99){
			myModYear="1999"
			}
			else if (myLastModified.getYear() != 99){
			myModYear = '200'+myLastModified.getYear()
			}
		}
	}	
}

//do for Netscape 
else if (navigator.appName=="Netscape"){
	if (parseInt(navigator.appVersion)<4){  //netscape 3
		if (myLastModified.getYear() == 99){
		myModYear="1999"
		}
		else if (myLastModified.getYear() != 99){
		myModYear = "2000"
		}
	}
	else if (parseInt(navigator.appVersion)>=4){ 
	myModYear= "2000"
	}
}
//end last modified script

function go() {
document.location=document.forms['quickLinks'].links.options    [document.forms['quickLinks'].links.selectedIndex].value;

}


//check availability script
myDate= new Date()
        myDay = myDate.getDate()
        myMonth = myDate.getMonth()
theYear = new Date()
myYear = theYear.getYear()

//******

function updateday(form) { 
     document.forms["check"].end_day.selectedIndex = document.forms["check"].arrday.selectedIndex+1
     }

//******

function updatemonth(form) {

	document.forms["check"].end_month.selectedIndex = document.forms["check"].arrmonth.selectedIndex
     }

//******

function updateyear(form) {
	
	document.forms["check"].end_year.selectedIndex = document.forms["check"].arryear.selectedIndex

     }

function setYear(){
if (myYear == 100 || myYear == 2000){
document.forms["check"].arryear.selectedIndex = 1
}
else if (myYear == 99 || myYear == 1999){
document.forms["check"].arryear.selectedIndex = 0
 }
}

//******

function setDay() {
document.forms["check"].arrday.selectedIndex=myDay
}

//******

function setMonth(){
document.forms["check"].arrmonth.selectedIndex=myMonth
}

//******

function set_form() {
setDay()
setMonth()
setYear()


if(myDay >= 27){
        if(myMonth==11){
	document.forms["check"].arrmonth.selectedIndex = 0
	document.forms["check"].arryear.selectedIndex = 1
	document.forms["check"].arrday.selectedIndex = 1
	}
        else if(myMonth!=11){
	document.forms["check"].arrday.selectedIndex = 1
	document.forms["check"].arrmonth.selectedIndex = myMonth+1
	}
       }
else if(myDay < 27){
        document.forms["check"].arrday.selectedIndex = myDay+2
        document.forms["check"].arrmonth.selectedIndex = myMonth
       }  
updateday()
updatemonth()
updateyear()
}
//end check availability script


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}