
function ShowEmail(user, domain, anchor) {
	var OutText = '';
	OutText += '<a href="mailto:' + user + '@' + domain + '">';
	if (anchor != '') OutText += anchor;
	else OutText += user + '@' + domain;
	OutText  += '</a>';
	document.write(OutText);
}


function doHidePngPopUp(selectedDiv) {
	popdiv=document.getElementById(selectedDiv)
	popdiv.style.visibility="hidden"
}


function doHidePopUp() {
	popdiv=document.getElementById("divpopup")
	popdiv.style.visibility="hidden"
}
	
function doShowPopUp(){
	popdiv=document.getElementById("divpopup")
	popdiv.style.left="50%"
	popdiv.style.marginLeft="-183px"
	if ((is_ie5up) && (is_mac)){ //fix for ie-mac does not accept popdiv.style.top="50%"
		popdiv.style.top="0px"
		popdiv.style.marginTop="0px"
	}else{
		popdiv.style.top="50%"
		popdiv.style.marginTop="-132px"
	}
	popdiv.style.visibility="visible"
}


function VirtualnetChat() 
{
    if(window.location.hostname != 'apollo')
        //Online
        document.write('<iframe src="http://' + window.location.hostname + '/chat.aspx" id="chatframe" height="236" width="260" frameborder="0" scrolling="no"></iframe>');
        //testing
        //document.write('<iframe src="chat_OFF.aspx" id="chatframe" height="159" width="170" frameborder="0" scrolling="no"></iframe>');
        //document.write('<iframe src="chat.aspx" id="chatframe" height="236" width="260" frameborder="0" scrolling="no"></iframe>');
    else
        //for Testing
        document.write('<iframe src="http://' + window.location.hostname + '/VirtualnetWebsite/chat.aspx" id="chatframe" height="236" width="260" frameborder="0" scrolling="no"></iframe>');
}