// JavaScript Document
// begin top Navigation Script
//activateMenu = function(nav) {
/*function shipsame(form){
alert ('included');

if(form.cntnt01sameasbilling.checked){

     form.cntnt01bill_first.value = form.cntnt01ship_first.value;
     form.cntnt01bill_last.value = form.cntnt01ship_last.value;
     form.cntnt01bill_addr.value = form.cntnt01ship_addr.value;
     form.cntnt01bill_addr2.value = form.cntnt01ship_addr2.value;     
     form.cntnt01bill_city.value = form.cntnt01ship_city.value;
     form.cntnt01bill_zip.value = form.cntnt01ship_zip.value;
     form.cntnt01bill_phone.value = form.cntnt01ship_phone.value;     
     form.cntnt01bill_cell.value = form.cntnt01ship_cell.value;
     
     if(form.cntnt01bill_state.type == "Select"){
          var bStateIdx = form.cntnt01ship_state.selectedIndex;
          form.cntnt01bill_state.options[bStateIdx].selected = true;
     }
     else{
          form.cntnt01bill_state.value = form.cntnt01ship_state.value;
     }
}
else{
     form.cntnt01bill_first.value = "";
     form.cntnt01bill_last.value = "";
     form.cntnt01bill_addr.value = "";
     form.cntnt01bill_addr2.value = "";     
     form.cntnt01bill_city.value = "";
     if(form.cntnt01bill_phone.type == "Select"){
          form.cntnt01bill_state.options[0].selected = true;
     }
     else{
          form.cntnt01bill_state.value = "";
     }
     form.cntnt01bill_city.value = "";
     form.cntnt01bill_zip.value = "";
     form.cntnt01bill_phone.value = "";
     form.cntnt01bill_cell.value = "";
}
}*/
/* currentStyle restricts the Javascript to IE only 
	if (document.all &&
 document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);*/
        
        /* Get all the list items within the menu 

        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {*/
        
           /* If the LI has another menu level 
            if(lis[i].lastChild.tagName=="UL"){*/
            
                /* assign the function to the LI 
             	lis[i].onmouseover=function() {	*/
                
                   /* display the inner menu 
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {   
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}
window.onload= function(){*/
    /* pass the function the id of the top level UL */

    /* remove one, when only using one menu 
    activateMenu('nav'); 
    activateMenu('vertnav'); 
}*/
function window_return()
{
alert ('here');
alert ('href='+this.href);
	//window.close();
	return this.href;
}
function terminate()
{
  var o = new Object();
  o.forename = document.getElementById("txtForename").value;
  o.surname = document.getElementById("txtSurname").value;
  window.returnValue = o; 
}
function popup(location_href,bank) {
//alert ('location_href='+location_href);
  F = window.open("index.php?page=leaving-site&loc="+location_href,"popup","width=400,height=300");
  //var oReturnValue = showModalDialog("index.php?page=notice");
 // alert("F="+F.href.link);
  //alert(F.forename + "\n" + F.surname);
  return false;
}
function f_open_window_max( aURL, aWinName )
{
   var wOpen;
   var sOptions;


   sOptions = 'directories=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,toolbar=yes';
   sOptions = sOptions + ',width=' + (screen.availWidth - 10).toString();
   sOptions = sOptions + ',height=' + (screen.availHeight - 122).toString();
   sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';

   wOpen = window.open( '', aWinName, sOptions );
   wOpen.location = aURL;
   wOpen.focus();
   wOpen.moveTo( 0, 0 );
   wOpen.resizeTo( screen.availWidth, screen.availHeight );
   return wOpen;
}
/*sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
sel = document.getElementsByTagName("select");
for (var i=0; i<sel.length; i++) {
sel[i].style.visibility = 'hidden';
}
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
sel = document.getElementsByTagName("select");
for (var i=0; i<sel.length; i++) {
sel[i].style.visibility = 'visible';
}
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

*/
/* Highlight input text elements */


function SelectAll(id)
{
document.getElementById(id).focus();
document.getElementById(id).select();
}


/* end */