var returnUrl = "";
var baseDomain = "http://" + window.location.hostname;
function wopen(url, name, w, h){w += 32;h += 96;wleft = (screen.width - w) / 2;wtop = (screen.height - h) / 2; var win = window.open(url, name, 'width=' + w + ', height=' + h + ', ' + 'left=' + wleft + ', top=' + wtop + ', ' + 'location=no, menubar=no, ' + 'status=no, toolbar=no, scrollbars=no, resizable=no');}
function redirect(url) { window.location = url; }
function n(url) { redirect(url); }
function uncache(url){var d = new Date();var time = d.getTime();return url + '&uct='+time;}
function sS() {var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13){doSearch();return false;}else return true;}
function doSearch() { changeObjectVisibility('divSearch','hidden');changeObjectVisibility('searchProgress','visible');var txtSearch = document.getElementById("txtSearch"); if (txtSearch.value.length >= 3) { n("/search/?q=" + encodeURIComponent(txtSearch.value)); }}
function ssKey() {var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13){doSignup();return false;}else return true;}
function getValue(obj) { if (obj != null) { return obj.options[obj.selectedIndex].value;}}
function getStyleObject(objectId) { if(document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId).style; } else if (document.all && document.all(objectId)) {return document.all(objectId).style; } else if (document.layers && document.layers[objectId]) {return document.layers[objectId]; } else { return false; }}
function changeObjectVisibility(objectId, newVisibility) { var styleObject = getStyleObject(objectId); if(styleObject) { styleObject.visibility = newVisibility; if (newVisibility == "visible") { styleObject.display = 'block'; } else { styleObject.display = 'none'; }return true; } else { return false; }}
function Disable(obj) {try { obj.disabled = true; } catch (exception) { }}
function Enable(obj) {try { obj.disabled = false; } catch (exception) { }}
function HomePage() { if ( ! document.all ) { alert("This function doesn't work under Mozilla Browsers - Netscape or FireFox! \n\nPlease set it at:\n\tEdit/Preferences/Navigator \nmanualy!"); } else { newHomepage.style.behavior='url(#default#homepage)';newHomepage.setHomePage(baseDomain); } }
function textCounter(o, maxlimit) { var charsleft = (maxlimit - o.value.length); document.getElementById('charsleft').innerHTML = charsleft; if (charsleft <= 0) { o.value = o.value.substring(0, maxlimit); }}
function printPage() {window.print();}



$(document).ready(function(){$(document).ScrollToAnchors(630);});
function Bookmark(obj, targetid) { 
$('#bookmarks').show();
$.getIfModified("/ajaxsetbookmark", { tid: targetid}, function(data) { $(obj).parent().TransferTo({to:'bookmarks',className:'trans1', duration: 1000,complete:function(){$('#tbi').html(data);$('#bm_' + targetid).hide(600);}});});
return false;
 }
 
 
 function rmo(obj) { obj.className = "rm_on"; }
function rmb(obj) { obj.className = "rm"; }