window.onload = function() {

	getElementsByClassName(document,'myPropsLink').each(function(el) {

		el.onclick = function () {

			window.open('/properties/my_props','_my_props','width=595,height=600,status=0,toolbar=0,location=0,menubar=0,scrollbars=1');
	
			return false;
		
		};
	
	});
	
}

function getElementsByClassName(node, classname) {
	
    var a = [];
    var re = new RegExp('\\b' + classname + '\\b');
    var els = node.getElementsByTagName("*");

    for(var i=0,j=els.length; i<j; i++) {
	
        if(re.test(els[i].className))a.push(els[i]);

	}
	
    return a;
}