var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
function focusToInput() {
document.getElementById('commenttext').focus();
}
function watchKeyEvent(e) {
var keynum
if(window.event) { // IE
keynum = e.keyCode;
} else if(e.which) { // Netscape/Firefox/Opera
keynum = e.which;
}
if (keynum == 13) {
submitter();
}
}
function stopDelete() {
document.getElementById('phandle').value='99999999';
}
function addsmiley(p_text) {
document.getElementById('commenttext').value = document.getElementById('commenttext').value + p_text;
}
function submitter() {
if (document.getElementById('fastanswers').checked) {
document.getElementById('humanoid').value = "computer";
}
document.getElementById('commentform').submit();
}
function DraugiemSay( title, url, titlePrefix ){
window.open(
'http://www.draugiem.lv/say/ext/add.php?title=' + encodeURIComponent( title ) +
'&link=' + encodeURIComponent( url ) +
( titlePrefix ? '&titlePrefix=' + encodeURIComponent( titlePrefix ) : '' ),
'',
'location=1,status=1,scrollbars=0,resizable=0,width=530,height=400'
);
return false;
}
}