

		
	/* Here is my function to open a new window */
	
		function openWindows(page)
		{
			stuffWindow = window.open(page,'openWin','scrollbars=yes,toolbar=yes,resizable=yes,height=540,width=540')
			stuffWindow.focus()
		}
		 	
	/* Here is my function to open a new small window */
	
		function opensmallWindows(page)
		{
			stuffWindow = window.open(page,'openWin','toolbar=yes,scrollbars=yes,resizable=yes,height=575,width=710')
			stuffWindow.focus()
		}	
		
	/* Here is my function to open a new calendar window */
	
		function opencalendarWindows(page)
		{
			stuffWindow = window.open(page,'openWin','scrollbars=yes,resizable=yes,height=575,width=710')
			stuffWindow.focus()
		}		
		
	
	/* Here is my form validation function for Reservations screen*/		
		
		function validate(form)
		{
		x=document.reserveme
		acode=x.PhoneNumber1.value
		at=x.EmailAddress.value.indexOf("@")
		dot=x.EmailAddress.value.indexOf(".")
		prenum=x.PhoneNumber2.value
		postnum=x.PhoneNumber3.value
		fname=x.FirstName.value
		lname=x.LastName.value
		//cdate=x.Comments.value

		if (fname.length==0)
			{
			alert("Please enter first your name.");
			form.first_name.focus();
			return false;
			}
		if (lname.length==0)
			{
			alert("Please enter last your name.");
			form.last_name.focus();
			return false;
			}
		if (at==-1)
			{
			alert("Not a valid E-Mail.");
			form.cust_email.focus();
			return false;
			}
		if (dot==-1)
			{
			alert("Not a valid E-Mail.");
			form.cust_email.focus();
			return false;
			}
		if (acode.length!=3)
			{
			alert("Please enter Area Code.");
			form.area_code.focus();
			return false;
			}
		if (prenum.length!=3)
			{
			alert("Please enter Phone Number.");
			form.phone_pre.focus();
			return false;
			}
		
		if (postnum.length!=4)
			{
			alert("Please finish Phone Number.");
			form.phone_post.focus();
			return false;
			}
		
		//if (cdate.length==-0)
			//{
//			alert("When do you wish to stay with us?");
//			form.cust_date.focus();
//			return false;
//			}
//			return true;
		}  //end validation function
		
	
						
	/* Here is my rollover effect */	
		
		if (document.images){
			guesthouse1= new Image
			guesthouse2= new Image
			
			guesthouse1.src="photos/FrontDoor.jpg"
			guesthouse2.src="photos/babygrand.jpg"
		}
		else{
			guesthouse1 = ""
			guesthouse2 = ""
			document.guesthouse = ""
		}	//end if loop
		

							//end reservation deletion function
		
	/* Slide show a comin' */
	
		myPix = new Array("photos/FrontDoor.JPG","photos/savannah-picture-window.jpg","photos/family room.JPG","photos/dining  room.bmp","photos/bathroom.JPG","photos/Square.jpg")
		thisPic = 0
		imgCt = myPix.length - 1

		function showcase(direction){
			if (document.images){
				
				thisPic = thisPic + direction
				if (thisPic > imgCt){
						thisPic = 0
					}
				if (thisPic <0){
						thisPic = imgCt
					}
				document.myPicture.src= myPix[thisPic]
			}	//end if loop
		}	//end function	
		
			
			
	
		
	
