// JavaScript Document
function openInfoWindow(url)
		{
		window.open(url, '_blank' , 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=540,height=450');
		
		}

function openInfoWindowSized(url, width)
		{
		 if (typeof(width) == 'undefined') {
        width = 760;
    }
		var windowsVars = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + width +',height=450';
		window.open(url, '_blank' , windowsVars);
		
		}
		
function openInfoWindowSN(url, width, name)
		{
		 if (typeof(width) == 'undefined') {
		         width = 500;
  			  }
		var windowsVars =  'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + width +',height=540';
		window.open(url, name ,windowsVars);
		}		
		
function confirmLink(theLink, confirmMsg)
{
  
    if (confirmMsg == '') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg);
    if (is_confirmed) {
	    // add vars to href link
        theLink.href += '&js_confirmed=yes';
    }

    return is_confirmed;
} // end of the 'confirmLink()' function

function checkAllSpaces(objectToCheck)
{

var checkStrOK = true;	
var checkStr = objectToCheck;	
	// check it is not just spaces
		
		for (i = 0;  i < checkStr.value.length;  i++)
		{
			ch = checkStr.value.charAt(i);
			
			if (ch != " ")
			{
				checkStrOK = false;
				
				break;
			}
		}
return checkStrOK;
} // end checkAllSpaces