
function writemail(a,b,c,d,e){

//a = name e.g tzache
//b = domain name e.g alcor
//c = extension e.g. com.au
//d = link
//e = class name
//f = command line e.g. subject line

//This function will replace the following code: <a href="mailto:a@b.c?f" class="e">d</a>

if (d){
   if (e){
      the_string = "<a class='"+e+"' href='mailto:"+a+"@"+b+"."+c+"'>"+d+"</a>";
    } else {
      the_string = "<a href='mailto:"+a+"@"+b+"."+c+"'>"+d+"</a>";
    }  
 } else {
   if (e){
      the_string = "<a class='"+e+"' href='mailto:"+a+"@"+b+"."+c+"'>"+a+"@"+b+"."+c+"</a>";
    } else {
      the_string = "<a href='mailto:"+a+"@"+b+"."+c+"'>"+a+"@"+b+"."+c+"</a>";
    }  
 }
return (the_string);
}
