﻿function getgenericlink(mainurl, appendedstr, descr) {
    if ((mainurl != null) && (appendedstr != null)) {
        if (mainurl != "") {
            document.write('<a href="' + mainurl + appendedstr +'">' + descr + '</a>')
        }
        else {
            document.write('<a href="' + document.location.href.toString() + appendedstr+ '">' + descr + '</a>')
        }
    }
    
};
