function closeNote(){
	document.getElementById("notice").style.display = "none";
}


function openClose(popid,status){
	document.getElementById(popid).style.display = status;
}

function getLocation(address){
	window.location = address;	
	
}
//show rollovers
var currantmenu;
function showDrops(menu){
	if (currantmenu){
	document.getElementById(currantmenu).style.display = "none";
	}
	currantmenu = menu;
	if (menu){
	document.getElementById(menu).style.display = "inline";
	}
	
}

function clicker(){
	
	//only do this if image not locked
	//if ((lockimage != 1) && (lockfins != 1)){
	
	var thediv=document.getElementById('displaybox');
	if(thediv.style.display == "none"){
		thediv.style.display = "inline";
		//thediv.innerHTML = "<table width='100%' height='100%'><tr><td align='center' valign='middle' width='100%' height='100%'>test<br><br><a href='#' onclick='return clicker();'>CLOSE WINDOW</a></td></tr></table>";
	}else{
		thediv.style.display = "none";
		//thediv.innerHTML = '';
	}
	return false;
	
	//}
}


//clears the selected text field
function clearField(fields){
	document.getElementById(fields).value = "";
}


var xmlHttp
//get booking form
function sendContact()
{ 

//alert('test');

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }


var url="/includes/gt6.php"
url=url+"?name="+document.getElementById("name").value
url=url+"&mail="+document.getElementById("ggg").value
url=url+"&phone="+document.getElementById("phone").value
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=showForm
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
var reslt;
function showForm() {
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
 	//eval(xmlHttp.responseText);
		//if (xmlHttp.responseText == 1){
		document.getElementById("notice").style.display = "inline";
		//}
		
}
}

 function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}