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 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'
);
}
function SekomanSay( title, url ){
window.open(
'http://sekoman.lv/home?status=' + encodeURIComponent( title ) +
'&url=' + escape( url ),
'',
''
);
}
function TwitterSay( title ){
window.open(
'http://twitter.com/home?status=' + encodeURIComponent( title ),
'',
''
);
}
function submitFullSearch(orderby, ordering, page) {
document.getElementById('orderby').value = orderby;
document.getElementById('ordering').value = ordering;
document.getElementById('page').value = page;
submitSearch();
}
function clearSearch() {
document.getElementById('searchby').value = 'all';
document.location='http://konkursi.mycompany.lv';
submitSearchZero();
}
function submitSearchZero() {
document.getElementById('page').value = 1;
submitSearch();
}
function submitSearch() {
document.getElementById('searchform').submit();
}
function preview(fieldId) {
var field = document.getElementById(fieldId);
window.open('preview.php?text=' + encodeURIComponent(field.value), '', 'location=0,status=0,scrollbars=1,resizable=1,width=500,height=400,top=200,left=200');
}
function _ow(wu) {
var win = window.open(wu, '_blank');
win.focus();
}
var ow = _ow;
}