X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=basic-data%2Ftemplates%2Fown_templates%2F1502254.tpl;fp=basic-data%2Ftemplates%2Fown_templates%2F1502254.tpl;h=94265f0bf1434cfe70d8f222f566c305e2923ba1;hb=a1797ae2365c0b45e3456fd6bc98b2993ffc87a8;hp=0000000000000000000000000000000000000000;hpb=b097cd5c3065f23e47a0226ee43fa0ce9cc4cd99;p=mirrors%2FKyberia-bloodline.git diff --git a/basic-data/templates/own_templates/1502254.tpl b/basic-data/templates/own_templates/1502254.tpl new file mode 100644 index 0000000..94265f0 --- /dev/null +++ b/basic-data/templates/own_templates/1502254.tpl @@ -0,0 +1,26 @@ +function vymena() { + var browser = navigator.appName; + document.formular.mail_to.value = document.formular.mail_to.value.toLowerCase() ; + if(browser == "Microsoft Internet Explorer") { + xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); + } + else { + xmlhttp = new XMLHttpRequest(); + } + get_id_url = '/ajax/get_id_by_name.php?name='; + get_id_url += document.formular.mail_to.value; + xmlhttp.open("GET", get_id_url); + xmlhttp.onreadystatechange = function() { + if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { + id = xmlhttp.responseText; + document.images['fricon'].src = '/images/nodes/' + id.substr(0, 1) + '/' + id.substr(1, 1) + '/' + id + '.gif'; + } + } + xmlhttp.send(null); +} + +function chngto(name,id) { + document.formular.mail_to.value = name ; + name = name.toLowerCase() ; + document.images['fricon'].src = '/images/nodes/' + id.substr(0, 1) + '/' + id.substr(1, 1)+'/' + id + '.gif'; +} \ No newline at end of file