// Netventure, http://www.netventure.pl/

/**
 * Writes e-mail address with mailto link on it.
 *
 * Usage: <script type="text/javascript">writeEmail('info', 'domain.com');</script>
 *
 * @param user    substring of e-mail address that is before '@' sign
 * @param domain  substring of e-mail address that is '@' sign
 *
 * @return        <a class="email" href="mailto:info@domain.com">info@domain.com</a>
 */
function writeEmail(user, domain) {
    document.write('<a  href=\"mailto:'+user+'@'+domain+'">'+user+'@'+domain+'</a>');
}

/**
 * Writes any text linked to a given e-mail address.
 *
 * Usage: <script type="text/javascript">writeEmailText('info', 'domain.com', 'mail me');</script>
 *
 * @param user    substring of e-mail address that is before '@' sign
 * @param domain  substring of e-mail address that is '@' sign
 * @param text    string to be anchored
 *
 * @return        <a class="email" href="mailto:info@domain.com">mail me</a>
 */
function writeEmailText(user, domain, text) {
    document.write('<a class="email" href=\"mailto:'+user+'@'+domain+'">'+text+'</a>');
}

/**
 * Writes mailto anchor to be used with other objects (images, etc).
 *
 * Usage: <script type="text/javascript">writeEmailA('info', 'domain.com');</script>
 *
 * @param user    substring of e-mail address that is before '@' sign
 * @param domain  substring of e-mail address that is '@' sign
 *
 * @return        <a class="email" href="mailto:info@domain.com">
 */
function writeEmailA(user, domain) {
    document.write('<a class="email" href="mailto:'+user+'@'+domain+'">');
}



