PageSourceSearch

https://vratzadnes.com/lib/lib_functions.js

js vratzadnes.com collected 2026-10-02 06:10:21 UTC 11,581 bytes, 49 lines download raw bytes

1function startTime(){function checkTime(i){if(i<10){i="0"+i}return i}var today=new Date()
2var h=today.getHours()
3var m=today.getMinutes()
4var s=today.getSeconds()
5m=checkTime(m)
6s=checkTime(s)
7document.getElementById('txt').innerHTML=h+":"+m+":"+s
8t=setTimeout('startTime()',500)}function getElement(id){return document.getElementById?document.getElementById(id):document.all?document.all(id):null;}function show_element(id){obj=getElement(id);obj.style.display='none';}function hide_element(id){obj=getElement(id);obj.style.display='';}function show_hide(id){var obj=getElement(id)
9if(obj.style.display=='none'){obj.style.display='';}else{obj.style.display='none';}}function credits(ref){cl=document.getElementById('credits');cl.innerHTML="design by: <a href='http://www.pmd-studio.com/?ref="+ref+"' title='web design & programming' rel='folow' target='_blank'><b>pmd</b>studio</a>";cl.style.display="";}function redirect(url){if(url!="")document.location=url;}function clear_text(form){if((form.Search.value=='search')||(form.Search.value=='òúðñè â ñàéòà')||(form.Search.value=='òúðñè')||(form.Search.value=='search the site')||form.Search.value=='òúðñåíå'){form.Search.value="";}}function set_text(form,text){if(form.Search.value==""){form.Search.value=text;}}function do_search(form){if(form.Search.value!=""){form_submit(form);}}function form_submit(form){form.submit();}function popImage(imageURL,imageTitle){PositionX=100;PositionY=100;defaultWidth=500;defaultHeight=500;var AutoClose=true;if(parseInt(navigator.appVersion.charAt(0))>=4){var isNN=(navigator.appName=="Netscape")?1:0;var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;var imageURL=imageURL;imageURL=imageURL.replace(' ','%20');if(isNN){imgWin=window.open('about:blank','',optNN);}if(isIE){imgWin=window.open('about:blank','',optIE);}with(imgWin.document){writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');writeln('width=100-(document.body.clientWidth-document.images[0].width);');writeln('height=100-(document.body.clientHeight-document.images[0].height);');writeln('window.resizeTo(width,height);}');writeln('if (isNN){');writeln('window.innerWidth=document.images["bigPicture"].width;');writeln('window.innerHeight=document.images["bigPicture"].height;}}');writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');if(!AutoClose)writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
10else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');writeln('<img name="bigPicture" src='+imageURL+' style="display:block"></body></html>');close();}}function MM_reloadPage(init){if(init==true)with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)location.reload();}MM_reloadPage(true);function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}function MM_validateForm(){var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;for(i=0;i<(args.length-2);i+=3){test=args[i+2];val=MM_findObj(args[i]);if(val){nm=val.id;if((val=val.value)!=""){if(test.indexOf('isEmail')!=-1){p=val.indexOf('@');if(p<1||p==(val.length-1))errors+='- '+nm+' òðÿáâà äà ñúäúðæà âàëèäåí e-mail àäðåñ.\n';}else if(test!='R'){num=parseFloat(val);if(isNaN(val))errors+='- '+nm+' òðÿáâà äà ñúäúðæà öèôðè.\n';if(test.indexOf('inRange')!=-1){p=test.indexOf(':');min=test.substring(8,p);max=test.substring(p+1);if(num<min||max<num)errors+='- '+nm+' òðÿáâà äà ñúäúðæà öèôðè ìåæäó '+min+' è '+max+'.\n';}}}else if(test.charAt(0)=='R')errors+='- '+nm+' å çàäúëæèòåëíî.\n';}}if(errors)alert('Ìîëÿ âúâåäåòå âñè÷êè çàäúëæèòåëíè ïîëåòà!:\n'+errors);document.MM_returnValue=(errors=='');}function pub_img_view(imageURL){PositionX=100;PositionY=100;defaultWidth=500;defaultHeight=500;var AutoClose=true;imageTitle="";if(parseInt(navigator.appVersion.charAt(0))>=4){var isNN=(navigator.appName=="Netscape")?1:0;var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;var imageURL=imageURL;imageURL=imageURL.replace(' ','%20');if(isNN){imgWin=window.open('about:blank','',optNN);}if(isIE){imgWin=window.open('about:blank','',optIE);}with(imgWin.document){writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');writeln('width=100-(document.body.clientWidth-document.images[0].width);');writeln('height=100-(document.body.clientHeight-document.images[0].height);');writeln('window.resizeTo(width,height);}');writeln('if (isNN){');writeln('window.innerWidth=document.images["bigPicture"].width;');writeln('window.innerHeight=document.images["bigPicture"].height;}}');writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');if(!AutoClose)writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
11else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');writeln('<img name="bigPicture" src=web/pub/'+imageURL+' style="display:block"></body></html>');close();}}function navbar_rollover(){if(!document.getElementById||!document.createTextNode){return;}var n=document.getElementById('navbar');if(!n){return;}var lis=n.getElementsByTagName('li');for(var i=0;i<lis.length;i++){lis[i].onmouseover=function(){this.className=this.className?'cur':'over';}
12lis[i].onmouseout=function(){this.className=this.className=='cur'?'cur':'';if(i==1)this.className=this.className?'cur1':'';}}}window.onload=navbar_rollover;function popupContent(content){PositionX=100;PositionY=100;defaultWidth=500;defaultHeight=500;var AutoClose=true;if(parseInt(navigator.appVersion.charAt(0))>=4){var isNN=(navigator.appName=="Netscape")?1:0;var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}var optNN='scrollbars=yes,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;var optIE='scrollbars=yes,width=350,height=500,left='+PositionX+',top='+PositionY;if(isNN){Win=window.open('about:blank','',optNN);}if(isIE){Win=window.open('about:blank','',optIE);}with(Win.document){write(content);close();}}function popup_window(url,w,h){var width=w;var height=h;var from_top=350;var from_left=500;var toolbar='no';var location='no';var directories='no';var status='no';var menubar='no';var scrollbars='yes';var resizable='yes';var atts='width='+width+'show,height='+height+',top='+from_top+',screenY=';atts+=from_top+',left='+from_left+',screenX='+from_left+',toolbar='+toolbar;
12atts+=',location='+location+',directories='+directories+',status='+status;atts+=',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;window.open(url,'win_name',atts);}function swap_image(object,src){obj=document.getElementById(object)
13obj.src=src;}function change_class(object,class_name){var x=document.getElementById(object)
14x.className=class_name}var areal=Math.random()+"";var real=areal.substring(2,6);function check_values(){var valid_antibot=document.getElementById("valid_antibot").value;if(real!==valid_antibot){alert("Ant-Bot check failed.....\nPlease enter the 4 digits as they appear.");return false;}}function isUndefined(a){return typeof a=='undefined';}function trim(a){return a.replace(/^s*(S*(s+S+)*)s*$/,"$1");}function botCheckInfo(){alert("To prevent automatic programs (bots)\n from submitting spam through this form,\n we have added a simple validationncheck to the form. You must enter nthese 4 digits in the box provided innorder to submit the form.");}function duplicateRow(tableID,dplRow){if(dplRow===undefined)dplRow=0;else
15dplRow=parseInt(dplRow);table=document.getElementById(tableID);var newRow=table.tBodies[0].rows[dplRow].cloneNode(true);table.tBodies[0].appendChild(newRow);}function deleteRow(tableID,minRows){if(parseInt(minRows)<=0)minRows=1;var table=document.getElementById(tableID);if(table.rows.length>minRows)table.deleteRow(table.rows.length-1);}function screen_resolution(){var today=new Date();var the_cookie="users_resolution_width="+screen.width;document.cookie=the_cookie;}screen_resolution();function swap_style(style,element){var n=document.getElementById(element);n.className=style;}var min=8;var max=18;function increaseFontSize(size){if(!size)size=10;var p=document.getElementsByTagName('p');for(i=0;i<p.length;i++){if(p[i].style.fontSize){var s=parseInt(p[i].style.fontSize.replace("px",""));}else{var s=size;}if(s!=max){s+=1;}p[i].style.fontSize=s+"px"}}function decreaseFontSize(size){if(!size)size=10;var p=document.getElementsByTagName('p');for(i=0;i<p.length;i++){if(p[i].style.fontSize){var s=parseInt(p[i].style.fontSize.replace("px",""));}else{var s=size;}if(s!=min){s-=1;}p[i].style.fontSize=s+"px"}}function printPreview(){var OLECMDID=7;var PROMPT=1;var WebBrowser='<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';document.body.insertAdjacentHTML('beforeEnd',WebBrowser);WebBrowser1.ExecWB(OLECMDID,PROMPT);WebBrowser1.outerHTML="";}function isValidEmailAddress(emailAddress){var pattern=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);return pattern.test(emailAddress);}
16
17
18
19
20function get(url) {
21  // Return a new promise.
22  return new Promise(function(resolve, reject) {
23    // Do the usual XHR stuff
24    var req = new XMLHttpRequest();
25    req.open('GET', url);
26
27    req.onload = function() {
28      // This is called even on 404 etc
29      // so check the status
30      if (req.status == 200) {
31        // Resolve the promise with the response text
32        resolve(req.response);
33      }
34      else {
35        // Otherwise reject with the status text
36        // which will hopefully be a meaningful error
37        reject(Error(req.statusText));
38      }
39    };
40
41    // Handle network errors
42    req.onerror = function() {
43      reject(Error("Network Error"));
44    };
45
46    // Make the request
47    req.send();
48  });
49}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.