function stripPhone(nr)
{
    alert(nr);
}

function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}

function initPopup()
{
	
	if (!document.getElementsByTagName){ return; }
	var anchors = document.getElementsByTagName("a");

	// loop through all anchor tags
	for (var i=0; i<anchors.length; i++){
		var anchor = anchors[i];

		if (anchor.getAttribute("href") && (anchor.getAttribute("target") == "popup")){
			anchor.onclick = function () {window.open (this.href, "popup","status=1,width=800,height=600"); return false;}
	
		}
	}
}

addLoadEvent(initPopup);
