<!-- my js -->

function inquiry()
    {  
var OpenWindow=window.open("", "inqwin", "height=570,width=450");
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>TuscanyHolidayVilla.com :: Inquiry 2011</TITLE>")
OpenWindow.document.write("<BODY bgcolor='#D8D8A3'>")
OpenWindow.document.write("<FONT style='color:444444; font-family: verdana, arial, helvetica, sans-serif; font-size: 10pt'>")
OpenWindow.document.write("<form action='fred-p.php' method='post'>")
OpenWindow.document.write("<P><b>Tuscany Holiday Villa: Inquiry</b><br>")

OpenWindow.document.write("<P>Your name:<br>") 
OpenWindow.document.write("<INPUT NAME='name' Size=50 Type='text'><br><br>")

OpenWindow.document.write("<P>Your email address:<br>") 
OpenWindow.document.write("<INPUT NAME='email' Size=50 Type='text'><br>")
OpenWindow.document.write("<i>Please be accurate. If your email address is <br>incorrect, we will be unable to contact you.</i><br><br>")

OpenWindow.document.write("<P>Please write your message below:<br>")
OpenWindow.document.write("<TEXTAREA NAME='comments' ROWS=9 COLS=50></TEXTAREA><br><br>")

OpenWindow.document.write("<P align='center'>")
OpenWindow.document.write("<INPUT TYPE='submit' Value='Send'>&nbsp;&nbsp;")
OpenWindow.document.write("<INPUT TYPE='reset' Value='Clear'><br><br></p>")
OpenWindow.document.write("<font size='-1'>")
OpenWindow.document.write("<P>Thanks for your inquiry.<br>")
OpenWindow.document.write("You will receive a response from us soon.</p>")
OpenWindow.document.write("<a href='' onClick='self.close()'>Close Window</a> </font>")

OpenWindow.document.write("</FORM>")
OpenWindow.document.write("</FONT>")
OpenWindow.document.write("</HTML>")
    }

function helpmeinq()
    {  
var OpenWindow=window.open("", "helpmeinqwin", "height=625,width=450");
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>Rental Inquiry - www.TuscanyHolidayVilla.com</TITLE>")
OpenWindow.document.write("<BODY bgcolor='#D8D8A3'>")
OpenWindow.document.write("<FONT style='color:444444; font-family: verdana, arial, sans-serif; font-size: 10pt'>")
OpenWindow.document.write("<form action='fred-p.php' method='post'>")
OpenWindow.document.write("<input name='inquiry' type='hidden' value='Vacation planning inquiry'>")
OpenWindow.document.write("<p>Your name:<br>") 
OpenWindow.document.write("<INPUT NAME='name' Size=50 Type='text'>")
OpenWindow.document.write("<p>Your email address:<br>") 
OpenWindow.document.write("<INPUT NAME='email' Size=50 Type='text'><br>")
OpenWindow.document.write("<i>Please be accurate. If your email address is <br>incorrect, we will be unable to contact you.</i><br>")
OpenWindow.document.write("<p>Number of people:&nbsp;&nbsp;")
OpenWindow.document.write("<INPUT NAME='#people' Size=27 Type='text'>")
OpenWindow.document.write("<p>Your holiday dates:<br>")
OpenWindow.document.write("<INPUT NAME='dates' Size=50 Type='text'>")
OpenWindow.document.write("<p>Approximate weekly budget for accommodation:<br>")
OpenWindow.document.write("<INPUT NAME='budget' Size=50 Type='text'>")
OpenWindow.document.write("<p>Do you want a pool? shared or private?<br>")
OpenWindow.document.write("<INPUT NAME='pool' Size=50 Type='text'>")
OpenWindow.document.write("<p>Arrival airport:&nbsp;&nbsp;")
OpenWindow.document.write("<INPUT NAME='airport' Size=32 Type='text'>")
OpenWindow.document.write("<p>Will you have a car?&nbsp;&nbsp;")
OpenWindow.document.write("<INPUT NAME='car' Size=26 Type='text'>")
OpenWindow.document.write("<p>Other comments or questions:<br>")
OpenWindow.document.write("<TEXTAREA NAME='comments' ROWS=3 COLS=50></TEXTAREA>")
OpenWindow.document.write("<p align='center'>")
OpenWindow.document.write("<INPUT TYPE='submit' Value='Send'>&nbsp;&nbsp;")
OpenWindow.document.write("<INPUT TYPE='reset' Value='Clear'>")
OpenWindow.document.write("<p><a href='' onClick='self.close()'>Close Window</a>")
OpenWindow.document.write("</FORM>")
OpenWindow.document.write("</FONT>")
OpenWindow.document.write("</HTML>")
    } 


   
/***********************************************
* Image Thumbnail viewer- © Dynamic Drive (www.dynamicdrive.com)
* Last updated Sept 26th, 03'. This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="left" id="dragbar"><span id="closetext" onClick="closepreview()">Close</span> </div><img src="'+which+'">'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")

