function registerEvent(element,evnt,handler) {
    if(document.attachEvent!=null)
        element.attachEvent(evnt,handler);
    else if(document.addEventListener!=null) 
        element.addEventListener(evnt.replace(/^on/i,""),handler,true);
    else
        alert("element."+evnt+"="+handler)
}

function ShowBigPicture(obj) {
	if(!obj||!obj.id) return;
	var id=obj.id.replace("Small","");
	var obj2=document.getElementById(id);
	if(!obj2) return;
	registerEvent(obj2,"onmouseout",function mouseout() {ResetPicture(obj2);});
	obj2.style.display="inline";
	obj.style.display="none";
}

function ResetPicture(obj) {
	if(!obj||!obj.id) return;
	var id="Small"+obj.id;
	var obj2=document.getElementById(id);
	obj2.style.display="inline";
	obj.style.display="none";
}

function ImagePopup(id) {
    window.open("softadmin.aspx?id=11&PictureID="+id,"RosaPopup","width=500,height=500,scrollbars,resizable");
}

function goHash(hash) {
	if(location.hash!=hash) location.hash=hash;
}

function Logout() {
    document.getElementById("Logoutform").submit();
}