
/*  PRINT PAGE ))<<>>(( - - - >> */
function printpage() { 
	window.print()
}


/*  ADD TO BOOKMARK ))<<>>(( - - - >> */
var url = "http://www.self-storage.net.au/"; 
var str = "Self Storage Guide"; 

function addToFavorites(url,str){
if(str=='')str=url;
if (document.all)window.external.AddFavorite(url,str);
else alert('Press CTRL and D to add a bookmark to:\n"'+url+'".');
} 

/*  Hide Email Fields ))<<>>(( - - - >> */
var email00 = "Contact Us";
var email01 = "contact";
var email02 = "@";
var email03 = "self-storage.net.au";
var email04 = email01 + email02 + email03;
function hideEmail0(){
	hideEmail0 = document.write("<a href=" + "mail" + "to:" + email01 + email02 + email03 + ">" + email00 + "</a>");
}


/*  Styling <abbr> in IE ))<<>>(( - - - >> */
 function styleAbbr() {
  var oldBodyText, newBodyText, reg
  if (isIE) {
    oldBodyText = document.body.innerHTML;
    reg = /<abbr([^>]*)>([^<]*)<\/abbr>/g;
    newBodyText = oldBodyText.replace(reg, '<abbr $1><span class=\"abbr\" $1>$2</span></abbr>');
    document.body.innerHTML = newBodyText;
  }
}

window.onload = function(){
  styleAbbr()
};

isIE = (document.all) ? true:false;

		
/*  Form Check ))<<>>(( - - - >> */
function CheckAll(formObject) 
{
	var chk = formObject.checkAll.checked;
	var len = formObject.elements.length;
	for(var i=0; len >i; i++) 
	{
		var elm = formObject.elements[i];
		if (elm.type == "checkbox")
		{
			elm.checked = chk;
		}
	}
}

/*  TOOLTIP FOR TITLES ))<<>>(( - - - >> */
/*var toolTipTag = "a"; 
var toolTipX = 10; 
var toolTipY = -20;

tooltip = {
  name : "toolTip",
  offsetX : toolTipX,
  offsetY : toolTipY,
  tip : null
}

tooltip.init = function () {
	var tipNameSpaceURI = "http://www.w3.org/1999/xhtml";
	if(!tipContainerID){ var tipContainerID = "toolTip";}
	var tipContainer = document.getElementById(tipContainerID);

	if(!tipContainer) {
	  tipContainer = document.createElementNS ? document.createElementNS(tipNameSpaceURI, "div") : document.createElement("div");
		tipContainer.setAttribute("id", tipContainerID);
	  document.getElementsByTagName("body").item(0).appendChild(tipContainer);
	}

	if (!document.getElementById) return;
	this.tip = document.getElementById (this.name);
	if (this.tip) document.onmousemove = function (evt) {tooltip.move (evt)};

	var a, sTitle;
	var anchors = document.getElementsByTagName (toolTipTag);

	for (var i = 0; i < anchors.length; i ++) {
		a = anchors[i];
		sTitle = a.getAttribute("title");
		if(sTitle) {
			a.setAttribute("tiptitle", sTitle);
			a.removeAttribute("title");
			a.onmouseover = function() {tooltip.show(this.getAttribute('tiptitle'))};
			a.onmouseout = function() {tooltip.hide()};
		}
	}
}

tooltip.move = function (evt) {
	var x=0, y=0;
	if (document.all) {//IE
		x = (document.documentElement && document.documentElement.scrollLeft) ? document.documentElement.scrollLeft : document.body.scrollLeft;
		y = (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
		x += window.event.clientX;
		y += window.event.clientY;
		
	} else {//Good Browsers
		x = evt.pageX;
		y = evt.pageY;
	}
	this.tip.style.left = (x + this.offsetX) + "px";
	this.tip.style.top = (y + this.offsetY) + "px";
}

tooltip.show = function (text) {
	if (!this.tip) return;
	this.tip.innerHTML = text;
	this.tip.style.display = "block";
}

tooltip.hide = function () {
	if (!this.tip) return;
	this.tip.innerHTML = "";
	this.tip.style.display = "none";
}

window.onload = function () {
	tooltip.init ();
}
*/
