function winOpen(href,w,h)
{
msgWindow=window.open(href,"displayWindow","menubar=NO,alwaysRaised=NO,dependent=YES,width="+w+",height="+h);
}

function winOpenScroll(href,w,h)
{
msgWindow=window.open(href,"scrollWindow","menubar=NO,alwaysRaised=NO,dependent=YES,scrollbars=YES,width="+w+",height="+h);
}



function winClose()
{
msgWindow.close()
}

function linkBarClose()
{
frame=parent.frames["center"];
url=frame.document.URL;
newWindow=window.open(url,"body");
}

function backHome()
{
 newWindow=window.open("../main.html","_top");
}

function backHome_it()
{
 newWindow=window.open("../main_it.html","_top");
}

function photoFrameClose()
{
frame=parent.frames["centre"];
url=frame.document.URL;
newWindow=window.open(url,"body");
}


function searchFormClose()
{
frame=parent.frames["result"];
url=frame.document.URL;
newWindow=window.open(url,"body");
form=window.open("./searchFormWin.php","formWindow","menubar=NO,alwaysRaised=NO,dependent=YES,width=260,height=600");
}


function confirmWindow(action,code) {
if (confirm("Are you sure you want to "+action+" booking "+code+" ?"))
   {
   return true;
   }
else
   return false;
}

function confirmMail(){
if (confirm("You are about to send the email. Do you want to continue?"))
   {
   return true;
   }
else
   return false;
}

function confirmBookDelete(){
if (confirm("Are you sure you want to delete this reservation?"))
   {
   return true;
   }
else
   return false;
}

function confirmSendData(){
if (confirm("Your credit card parameters are about to be sent. Do you want to continue?"))
   {
   return true;
   }
else
   return false;
}

function winOpenNoStat(href)
{
placeY = 40;
placeX = 480;
confirmWindow=window.open(href,"helpWindow","menubar=NO,alwaysRaised=YES,scrollbars=NO,dependent=NO,status=NO,toolbar=NO,width=320,height=420");
confirmWindow.moveTo( placeX, placeY );
confirmWindow.focus();
}



