cards.template = function(){
    this.getLayout = function(form, images){
        var s = ""
        s += "<div id='CardFormContainer'>"
        s += form
        s += "</div>"
        s += "<table id='CardsTable'>"
        s += "<tr>"
        s += "<td colspan='2' class='CardsThemeText'>"
        s += cards.lang.theme
        s += "</td>"
        s += "</tr>"
        s += "<tr>"
        s += "<td>"
        s += images
        s += "</td>"
        s += "<td>"
        s += "<img id='CardsBigImage' src='about:blank' alt=''/>"
        s += "<input type='button' class='CardsSendButton'  onclick='cards.instance.evCards1Click()' value='" + cards.lang.send + "'/>"
        s += "</td>"
        s += "</tr>"
        s += "</table>"
        return s
    }
    this.getForm = function(){
    
        var s = "<table id='CardsFormTable'>"
        s += "<tr>"
        s += "<td colspan='2' class='CardsThemeText'>"
        s += cards.lang.theme
        s += "</td>"
        s += "</tr>"
        s += "<tr>"
        s += "<td class='CardsSendLabel'>"
        s += cards.lang.destination_email
        s += "</td>"
        s += "<td>"
        s += "<input type='text' id='card_destination_email' class='CardInput1'/>"
        s += "</td>"
        s += "</tr>"
        s += "<tr>"
        s += "<td>"
        s += "<img id='CardsPreviewImage' src='about:blank' alt=''/>"
        s += "</td>"
        s += "<td>"
        s += cards.lang.correspondence
        s += "<br/>"
        s += "<textarea id='card_correspondence' class='CardInput2'></textarea>"
        s += "</td>"
        s += "</tr>"
        s += "<tr>"
        s += "<td class='CardsSendLabel'>"
        s += cards.lang.sender_name
        s += "</td>"
        s += "<td>"
        s += "<input type='text' id='card_sender_name' class='CardInput1'/>"
        s += "</td>"
        s += "</tr>"
        
        s += "<tr>"
        s += "<td>"
        s += "</td>"
        s += "<td>"
        s += "<input type='button' class='CardsSendButton' value='" + cards.lang.send + "' onclick='cards.instance.evCards2Click()'/>"
        s += "<input type='button' class='CardsSendButton' value='" + cards.lang.cancel + "' onclick='cards.instance.evCardsCancelClick()'/>"
        
        s += "</td>"
        s += "</tr>"
        s += "<tr>"
        s += "<td colspan='2' id='CardsComunicateText' >"
        s += "</td>"
        s += "</tr>"
        s += "</table>"
        
        return s
    }
}
