<!--
function GoToContinent() {

   var index = document.continent.continenturl.selectedIndex;
   var url   = document.continent.continenturl.options[index].value;

   if (index != 0) {
     window.open(url,"_self");
   }

return false;

} // end GoToContinent function

// Navigation via pull-down menu
function GoToCountry() {

   var index = document.country.countryurl.selectedIndex;
   var url   = document.country.countryurl.options[index].value;

   if (index != 0) {
     window.open(url,"_self");
   }

return false;

} // end GoToCountry function

// Navigation via pull-down menu
function GoToSector() {

   var index = document.sector.sectorurl.selectedIndex;
   var url   = document.sector.sectorurl.options[index].value;

   if (index != 0) {
     window.open(url,"_self");
   }

return false;

} // end GoToSector function


// Verify input
function VerifyTerms() {

if (window.document.login.readagreement.checked == false) {
    alert('Please indicate that you have read our Terms of Business by ticking the appropriate checkbox');
    return false;
}

} // end Verify function

// Expand/collapse
function expandCollapse() {
for (var i=0; i<expandCollapse.arguments.length; i++) {
  var element = document.getElementById(expandCollapse.arguments[i]);
  element.style.display = (element.style.display == "none") ? "block" : "none";
 }
}

// confirm submission
function confirmSubmission(object,action) {

var message = 'Are you sure you wish to proceed with '+action+' '+object+'?';
var agree = confirm(message);
  if (agree) {
     return true;
  } else {
     return false;
  }
}

// PopUp
function PopUpWindow(URL,width,height) {

var windowprop = "width="+width+",height="+height+",toolbar=0,scrollbars=0,menubar=0";
//alert(windowprop);
window.open(URL,"popup",windowprop);
} // end PopUpWindow


// this function gets the cookie, if it exists
function Get_Cookie( name ) {
	
var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) &&
( name != document.cookie.substring( 0, name.length ) ) )
{
return null;
}
if ( start == -1 ) return null;
var end = document.cookie.indexOf( ";", len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}

// Delete login cookie
function Delete_Cookies() {
document.cookie = "UID=" + ";path=/;" + "expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

function switchImage(image) {

gallery.src = image;


}

//-->
