function accomSelect1()
{
document.basic1.submit();
}

function accomSelect2()
{
document.basic2.submit();
}

function accomSelect3()
{
document.basic3.submit();
}

function accomSelect4()
{
document.basic4.submit();
}

function accomSelect5()
{
document.basic5.submit();
}

function accomSelect6()
{
document.basic6.submit();
}

function accomSelect7()
{
document.basic7.submit();
}
function nextImage()
{
  
  if ((document.imagez.prf.value) == 1)
    {document.imagez.prf.value = 2;
     var image = document.imagez.image2.value;
	 document.accomimage.src = (image);
   }else{
       if ((document.imagez.prf.value) == 2)
         {
	     document.imagez.prf.value = 3;
	     var image = document.imagez.image3.value;
		 document.accomimage.src = (image);
         }
   else{
    if ((document.imagez.prf.value) == 3)
      {
	   document.imagez.prf.value = 4;
	    var image = document.imagez.image4.value;
		document.accomimage.src = (image);
      }	 
	 else{
    if ((document.imagez.prf.value) == 4)
      {
	   document.imagez.prf.value = 1;
	    var image = document.imagez.image1.value;
		document.accomimage.src = (image);
      }	 
	  } 
    }
   }
 }
 function prevImage()
{
  
  if ((document.imagez.prf.value) == 1)
    {document.imagez.prf.value = 4;
     var image = document.imagez.image4.value;
	 document.accomimage.src = (image);
   }else{
       if ((document.imagez.prf.value) == 2)
         {
	     document.imagez.prf.value = 1;
	     var image = document.imagez.image1.value;
		 document.accomimage.src = (image);
         }
   else{
    if ((document.imagez.prf.value) == 3)
      {
	   document.imagez.prf.value = 2;
	    var image = document.imagez.image2.value;
		document.accomimage.src = (image);
      }	 
	 else{
    if ((document.imagez.prf.value) == 4)
      {
	   document.imagez.prf.value = 3;
	    var image = document.imagez.image3.value;
		document.accomimage.src = (image);
      }	 
	  } 
    }
   }
 }
 function popurl(url, w, h)
{
	if (w==0)
	{
	  w = 400; //default width
	}
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width='+ w + ',height=' + h +'');
	self.name = "mainWin";
	sealWin.focus();
}

function SetMain(strURL)
	{
	    // Refresh the Main window when a link is chosen from this popup
	  var str = new String;
	  window.opener.location.href=strURL;
	}

//
// New set up to allow for more than 4 ECUK Accommodation images
// PRF 29/02/08
//
var thisImage = 0;
var ImageName;
 
function setNext()
 {
	var ImageCount = (aImages.length-1);
	var NewImage;
	if (thisImage == ImageCount)
	    {
		 NewImage = 0;
		}
	else 
		{
			NewImage = thisImage + 1;
		}
		thisImage = NewImage;
		ImageName = aImages[NewImage];
		document.accomimage.src = ('ecuk/images/'+ImageName);
 }

function setPrev()
  {
	var ImgCnt = (aImages.length-1);
	var NwImg;
	if (thisImage == 0)
	   {
		NwImg = ImgCnt;
	   }
	else
		{
		NwImg = thisImage - 1;
		}
		thisImage = NwImg;
		ImageName = aImages[NwImg];
		document.accomimage.src = ('ecuk/images/'+ImageName);
  }	
  
//
// Mountain Lodges
// PRF 17/07/09
//
var thisImage = 0;
var ImageName;
 
function setNextML()
 {
	var ImageCount = (aImagesML.length-1);
	var NewImage;
	if (thisImage == ImageCount)
	    {
		 NewImage = 0;
		}
	else 
		{
			NewImage = thisImage + 1;
		}
		thisImage = NewImage;
		ImageName = aImagesML[NewImage];
		document.accomimagex.src = ('ecuk/images/'+ImageName);
 }

function setPrevML()
  {
	var ImgCnt = (aImagesML.length-1);
	var NwImg;
	if (thisImage == 0)
	   {
		NwImg = ImgCnt;
	   }
	else
		{
		NwImg = thisImage - 1;
		}
		thisImage = NwImg;
		ImageName = aImagesML[NwImg];
		document.accomimagex.src = ('ecuk/images/'+ImageName);
  }	
  
//
// Greek Bungalows
// PRF 29/09/09
//
var thisImage = 0;
var ImageName;
 
function setNextGB()
 {
	var ImageCount = (aImagesGB.length-1);
	var NewImage;
	if (thisImage == ImageCount)
	    {
		 NewImage = 0;
		}
	else 
		{
			NewImage = thisImage + 1;
		}
		thisImage = NewImage;
		ImageName = aImagesGB[NewImage];
		document.accomimageg.src = ('ecuk/images/'+ImageName);
 }

function setPrevGB()
  {
	var ImgCnt = (aImagesGB.length-1);
	var NwImg;
	if (thisImage == 0)
	   {
		NwImg = ImgCnt;
	   }
	else
		{
		NwImg = thisImage - 1;
		}
		thisImage = NwImg;
		ImageName = aImagesGB[NwImg];
		document.accomimageg.src = ('ecuk/images/'+ImageName);
  }	