if(top.location != self.location) top.location = self.location;

function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}

function Reply2Some1(texts) {
    if (document.getElementById("message") != null) {
        document.getElementById("message").value = "To "+texts +" : \n";
        document.getElementById("message").focus();
    }
}

function externallinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
       anchor.setAttribute("target","_blank");
 } 
} 
addLoadEvent(externallinks);

function enableImgPopShow() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("img"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("src") && 
       anchor.getAttribute("rel") == "popshow") 
   {
     //anchor.onclick = function () {alert(this.getAttribute("src")); return false;}
   }

 } 
} 
//addLoadEvent(enableImgPopShow);



