<!--
// Navigation via pull-down menu
function GoTo() {

   var index = document.navigate.navigation.selectedIndex;
   var url   = document.navigate.navigation.options[index].value;

   var d = new Date();
   var random = '' + d.getDate() + d.getMonth() + d.getFullYear() + d.getHours() + d.getMinutes() + d.getSeconds() + d.getMilliseconds();

   url = url + '?rnd=' + random;


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

return false;

} // end GoTo 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(todelete) {

var message = 'Are you sure you wish to continue to perform this operation on '+todelete+'?';
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";
}


//-->
