function onlynum(eventObj, obj)
{
	var keyCode

	// Check For Browser Type
	if (document.all){ 
		keyCode=eventObj.keyCode
	}
	else{
		keyCode=eventObj.which
	}
	var str=obj.value
	if(keyCode!=0){
	if(keyCode!=8){
	if(keyCode==46){ 
			if (str.indexOf(".")>0){
				return false
			}
		}
	if(keyCode==46){ 
			if (str.indexOf(".")>0){
				return false
			}
		}
		if((keyCode<48 || keyCode >58)   &&   (keyCode != 46)){ // Allow only integers and decimal points
			return false
		}
	}}
	return true
}

function contactcheck(){
	if(contact.fname.value==""){
		alert ("Please enter the information for the \"First Name\" field." )
		contact.fname.focus();
		return false;
	}
	if(contact.lname.value==""){
		alert ("Please enter the information for the \"Last Name\" field." )
		contact.lname.focus();
		return false;
	}
	if(contact.email.value == ""){ 
		alert ("Please enter the information for the \"Email\" field." );
		contact.email.focus();   
		return false;
	}
    if ((contact.email.value.indexOf('@', 0) == -1) || (contact.email.value.indexOf('.') == -1)){ 
		alert ("Please fill in a correct email address" );    
		contact.email.focus();
		return false;
	}
	if(contact.phone.value==""){
		alert ("Please enter the information for the \"Phone\" field." );
		contact.phone.focus();
		return false;
	}
	if(contact.gender.value==""){
		alert ("Please choose the information for the \"Gender\" field." );
		contact.gender.focus();
		return false;
	}
	if(contact.city.value==""){
		alert ("Please enter the information for the \"City\" field." );
		contact.city.focus();
		return false;
	}
	if(contact.country.value==""){
		alert ("Please enter the information for the \"Country\" field." );
		contact.country.focus();
		return false;
	}
	if(contact.mailto.value==""){
		alert ("Please choose information for the \"Department\" field." );
		contact.mailto.focus();
		return false;
	}
	if(contact.comment.value==""){
		alert ("Please enter the information for the \"Comment\" field." );
		contact.comment.focus();
		return false;
	}
}

function vtourchosen(idvtour)
 {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById("selimg").innerHTML=xmlHttp.responseText;
        }
      }
	url="vtourchose.php?id="+idvtour;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
  }


nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;
    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

function imgchosen(idimg)
 {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById("selimg").innerHTML=xmlHttp.responseText;
        }
      }
	url="imggalchose.php?id="+idimg;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
  }
 
function vtourchosen(idvtour)
 {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById("selimg").innerHTML=xmlHttp.responseText;
        }
      }
	url="vtourchose.php?id="+idvtour;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
  }
  
  
  function imgchosenar(idimg)
 {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById("selimg").innerHTML=xmlHttp.responseText;
        }
      }
	url="imggalchosear.php?id="+idimg;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
  }
 
function vtourchosenar(idvtour)
 {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        document.getElementById("selimg").innerHTML=xmlHttp.responseText;
        }
      }
	url="vtourchosear.php?id="+idvtour;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
  }