/**
 *
 *
 * @version $Id: common.js,v 1.1 2008/04/16 07:12:30 testwww Exp $
 * @copyright 2004
 **/

// common usefull vars
//var isIEx = (navigator.userAgent.indexOf('Opera') != -1) ? 1 : 0;
var isOpr = (navigator.userAgent.indexOf('Opera') != -1) ? 1 : 0;
var isFox = (navigator.userAgent.indexOf('Firefox') != -1) ? 1 : 0;
var isMnk = (navigator.userAgent.indexOf('SeaMonkey') != -1) ? 1 : 0;
var isNet = (navigator.userAgent.indexOf('Netscape') != -1) ? 1 : 0;


// common usefull functions
function reload()
{
	window.location = window.location;
}


function SafeMailLinkHiper(user, domain, attribs, altAContent) 
{
   if(!attribs)
      attribs = '';
   if(!altAContent)
      altAContent = user + '@' + domain;
                        
    document.write('<a '+ attribs +' href="mailto:' + user + '@' + domain + '">' + altAContent + '</a>');
}
                
function SafeMailLinkSuper(user, domain) 
{
   window.location = 'mailto:' + user + '@' + domain; 
}
