
// ************************************************************************************


// INFO!!!



// ************************************************************************************




function shortPopUp( url, name, width, height, scrollbars )

{ var top = "50"; var left = "50"; 

if( scrollbars == null ) scrollbars = "0"; str = ""; str += "resizable=1,titlebar=0,menubar=0,"; 
str += "toolbar=0,location=0,directories=0,status=0,"; 
str += "scrollbars=" + scrollbars + ","; str += "width=" + width + ","; str += "height=" + height + ","; 
str += "top=" + top + ","; str += "left=" + left;
 window.open( url, name, str );
}





function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Please enter a valid E-mail Address to get a Quick Quote")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Please enter a valid E-mail Address to get a Quick Quote")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Please enter a valid E-mail Address to get a Quick Quote")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Please enter a valid E-mail Address to get a Quick Quote")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Please enter a valid E-mail Address to get a Quick Quote")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Please enter a valid E-mail Address to get a Quick Quote")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Please enter a valid E-mail Address to get a Quick Quote")
		    return false
		 }

 		 return true					
	}

function ValidateForm(){
	var emailID=document.input.emailaddress
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please enter a valid E-mail Address to get a Quick Quote")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	return true
 }



var j = 0;
var myArray = new Array();

myArray[-1] = "<BR><BR><BR><BR>Please Click Next >>";
myArray[0] = "<BR><BR><BR><BR>Please Click Next >>";
myArray[1] = "Drying Area - ";
myArray[2] = "Toilet - ";
myArray[3] = "The Great Room joins the breakfast area and has two large sofas for conversation or viewing of the large TV (with Cable TV and DVD). A music system, games, and a stock of DVDs are also on hand. The views over the lake through the double sliding doors are superb, and make for a great way to spend time.";
myArray[4] = "The Lanai is a covered patio area outside the sliding doors from the Great Room and Master Bedrooms. It is fully equipped with furniture for al-fresco dining, and relaxing by the pool. It is also equipped with a ceiling fan to help cool you down as you take a break from the sun.";
myArray[5] = "The Jacuzzi is an ideal place to relax away the hours with a fine view of the lake wildlife. A pool side control can start or stop the bubbles as you prefer, and a circulation system with the pool helps keep the water fresh and clean";
myArray[6] = "The Pool is covered with a fine wire screen to prevent insect nuisance, and can be heated if necessary to your preferred temperature. A children's pool safety screen is available at the villa, as is a cover to keep the heat in overnight, an outside shower, and underwater lighting for atmospheric evening use. The garage also holds a large collection of children's pool toys.";
myArray[7] = "The lake is home to an amazing array of wildlife including Gators, Herons, Cranes etc.";
myArray[8] = "Lounge Area - ";
myArray[9] = "Kitchen - ";
myArray[10] = "Feature Staircase";
myArray[11] = "An imrpressive entry to the villa is provided and if you are happy to do so the local ducks will be happy to join you for breakfast every morning";
myArray[12] = "In the foyer there is a mirror, table and ornaments.";
myArray[13] = "Bedroom 3 - ";
myArray[14] = "Bedroom 4 - ";
myArray[15] = "Wet Room Bathroom - ";
myArray[16] = "Den - ";
myArray[17] = "Master Bedroom - ";
myArray[18] = "Dining Area - .";
myArray[19] = "Balcony - ";
myArray[20] = "Bedroom 2 -";
myArray[21] = "A Mickey and Minnie themed room.";
myArray[22] = "Real Fireplace";
myArray[23] = "The community provides a safe, quiet location in which to relax after a busy day at the theme parks. There are numerous shops and restaurants including a large twenty four hour Wal-Mart within five minutes drive on the 192. Cumbrian Lakes is centrally situated making it easy to reach all the central attractions in the Orlando and Kissimmee area, for golfers there are at least 50 courses within a 45 minute drive. For beaches, the Atlantic space coast with Kennedy Space Center is only an hour away to the East, with the Gulf Coast less than 90 minutes drive to the West.";
myArray[24] = "<BR><BR><BR><BR>Please Click << Previous";
myArray[25] = "<BR><BR><BR><BR>Please Click << Previous";
myArray[26] = "<BR><BR><BR><BR>Please Click << Previous";

function changeTextUp(){

document.getElementById('guestbook').innerHTML =  myArray[j+1];

j+=1;

}


function changeTextDown(){	

document.getElementById('guestbook').innerHTML = myArray[j-1];
	
j-=1;

  
}

function DisplayText(int){	

document.getElementById('guestbook').innerHTML = myArray[int];
	
  
}


 
/***********************************************
* Drop Down Date select script- by JavaScriptKit.com
* This notice MUST stay intact for use
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and more
***********************************************/
 
var daytext= ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31'];
var monthtext=['January','February','March','April','May','June','July','August','September','October','November','December'];
 
function populatedropdown(dayfield, monthfield, yearfield){
var today=new Date()
var dayfield=document.getElementById(dayfield)
var monthfield=document.getElementById(monthfield)
var yearfield=document.getElementById(yearfield)


for (var i=0; i<31; i++)

dayfield.options[i]=new Option(daytext[i], daytext[i])
dayfield.options[today.getDate()]=new Option(daytext[today.getDate()], daytext[today.getDate()], true, true) //select today's day


for (var m=0; m<12; m++)
monthfield.options[m]=new Option(monthtext[m], monthtext[m])
monthfield.options[today.getMonth()]=new Option(monthtext[today.getMonth()], monthtext[today.getMonth()], true, true) //select today's month
var thisyear=today.getFullYear()
for (var y=0; y<5; y++){
yearfield.options[y]=new Option(thisyear, thisyear)
thisyear+=1
}
yearfield.options[0]=new Option(today.getFullYear(), today.getFullYear(), true, true) //select today's year
}
 
