1onLoadArr = new Array; 2function onLoadPage(){ 3 var n 4 for(n=0;n<onLoadArr.length; n++){ 5 objType = typeof(onLoadArr[n]) 6 if(objType=="string"){ 7 eval(onLoadArr[n]) 8 }else if(objType == "function"){ 9 onLoadArr[n]() 10 } 11 //alert(onLoadArr[n]) 12 } 13 14 15} 16var agt,MSIE 17agt=navigator.userAgent.toLowerCase(); 18NAV = agt.indexOf('netscape')!=-1 19FFOX=agt.indexOf('firefox')!=-1 20MSIE =agt.indexOf('msie')!=-1 21var viewPortSupport = function(){ 22 //return false 23 var d= document.createElement("DIV"), 24 de = function(){delete d; return false;} 25 try{ 26 d.style.width = "calc(100vw - 10px)" 27 //alert(d.style.width) 28 if(d.style.width.length<1){return de()} 29 30 }catch(e){return de()} 31 de() 32 return true 33}() 34//alert(viewPortSupport) 35 36var CIO 37function openCal(p){ 38 CIO= document.getElementById(p) 39 MSIE?openDialog2("/admin/html/culc.html",205,290):WOpener("/admin/html/culc.html",205,290); 40} 41function setCal(day1, month1, year1){ 42 CIO.innerHTML=day1 + "/" + month1 + "/" + year1 43 eval("fo01.p_day.value='"+day1+"'") 44 eval("fo01.p_month.value='"+month1+"'") 45 eval("fo01.p_year.value='"+year1+"'") 46 47} 48function deleteNode( nodeObj){ 49 inOb = nodeObj.parentNode 50 try{ 51 inOb.removeChild(nodeObj) 52 }catch(e){ 53 try{ 54 nodeObj.removeMe(true) 55 }catch(e){ 56 try{ 57 nodeObj.removeNode(true) 58 }catch(e){ 59 return false 60 } 61 } 62 } 63 return true 64} 65 66var popstageS 67function WOpener(lnk,winwid ,winhigh,scrol,resize ){ 68 69 if(resize==null)resize=0 70 if(scrol==null)scrol=0 71 if(popstageS!=null){popstageS.close();} 72 if(winwid==null){winwid = 100} 73 if(winhigh==null){winhigh=100} 74 popstageS = window.open(lnk,'tour', 'width='+winwid+',height='+winhigh+',scrollbars='+scrol+',left=50,top=20,menubar=0,location=0,toolbar=0,status=0,resizable='+resize) 75 76 sti=setTimeout("WOpenerCheck()",500) 77 78 } 79 function WOpenerCheck(){ 80 window.popstageS.focus() 81 } 82 flashShow=function(w,h,s,name, returnOnly, flashVars){ 83 if(name==null)name="fl999" 84 if(!flashVars){ 85 flashVars="" 86 } 87 var htm = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+w+'" height="'+h+'" id="'+name+'" align="middle">'+ 88 '<param name="allowScriptAccess" value="always" >'+ 89 '<param name="movie" value="'+s+'" >'+ 90 '<param name="menu" value="false" >'+ 91 '<param name="quality" value="high" >'+ 92 '<param name="flashvars" value="'+ flashVars+'" >'+ 93 '<param name="wmode" value="transparent" >'+ 94 '<param name="bgcolor" value="#ffffff" >'+ 95 '<param name="allowFullScreen" value="true" >'+ 96 '<embed src="'+s+'" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="'+w+'" height="'+h+'" name="'+name+'" flashvars="'+ flashVars +'" align="middle" allowScriptAccess="always" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" >'+ 97 '</object>' 98 if(!returnOnly){ 99 document.write(htm) 100 } 101 return htm 102 103 } 104 105function getFlashMovie(movieName) { 106 var isIE = navigator.appName.indexOf("Microsoft") != -1; 107 return (isIE) ? window[movieName] : document[movieName]; 108} 109function emailVal(string){ 110valid = false 111for (n=3;n<string.length;n++){ 112 if(string.charAt(n)=="@" && n < (string.length - 5) ){ 113 for(nn=string.length-5;nn<string.length-2;nn++){ 114 if(string.charAt(nn)=="."){ 115 valid = true 116 } 117 } 118 } 119} 120return valid 121} 122function mapPointer(L,T){ 123 124} 125function phoneVal(string){ 126 string = string.split(" "); 127 string = string.join(""); 128 string = string.split("-"); 129 string = string.join(""); 130 p_phone_digits = 0 131 re = false 132 for (n=0;n< string.length;n++){ 133 if (!isNaN(string.charAt(n))){ 134 p_phone_digits++ 135 if(p_phone_digits>7){ 136 re = true 137 break; 138 } 139 } else { 140 p_phone_digits = 0 141 } 142 } 143 return re; 144} 145 146 147 148 149 150function toMany(p){ 151 if(p.value.length>400){ 152 tmp=p.value.substring(1,400) 153 p.value=tmp 154 } 155 156} 157function getStyle(oElm, strCssRule){ 158 var strValue = ""; 159 if(document.defaultView && document.defaultView.getComputedStyle){ 160 strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule); 161 } 162 else if(oElm.currentStyle){ 163 strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1){ 164 return p1.toUpperCase(); 165 }); 166 strValue = oElm.currentStyle[strCssRule]; 167 } 168 return strValue; 169} 170 171function ajaxObj(url, Qform, Method){ 172 //prompt('', url) 173 if(!Method) Method = "POST" 174 if (!Qform)Qform = "" 175 var xmlHttp; 176 var xmlHttp; 177 try { 178 // Firefox, Opera 8.0+, Safari 179 xmlHttp=new XMLHttpRequest(); 180 }catch (e){ // Internet Explorer 181 try { 182 xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); 183 }catch (e){ 184 try{ 185 xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 186 }catch (e){ 187 alert("Your browser does not support AJAX!"); 188 return false; 189 } 190 } 191 } 192 //xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); 193 xmlHttp.open(Method,url,true); 194 xmlHttp.send(Qform) 195 return xmlHttp 196} 197function clrPx(p){ 198return eval(p.substring(0,p.indexOf("px"))) 199} 200function openDialog(lnk,wi,hi){ 201 dial = window.showModalDialog("dlFrame.asp?lnk="+lnk,window,'dialogHeight:'+hi+'px;dialogWidth:'+wi+'px;status:0;help:0;center:1;help:1;unadorned:1;scroll:no;status:yes;') 202 return dial 203 } 204function openDialog2(lnk,wi,hi){ 205 dial = window.showModalDialog("/admin/html/dlFrame.asp?"+lnk,window,'dialogHeight:'+hi+'px;dialogWidth:'+wi+'px;status:0;help:0;center:1;help:1;unadorned:1;scroll:no;status:yes;') 206 return dial 207 } 208function compr(str,comp){ 209 tmpA=" "+str+" " 210 tmpB=" "+comp+" " 211 if(tmpB.indexOf(tmpA)>-1) 212 return str 213 else
214 return "" 215 } 216function LTrim( value ) { 217 var re = /\s*((\S+\s*)*)/; 218 return value.replace(re, "$1"); 219} 220 221// Removes ending whitespaces 222function RTrim( value ) { 223 var re = /((\s*\S+)*)\s*/; 224 return value.replace(re, "$1"); 225} 226 227// Removes leading and ending whitespaces 228function trim( value ) { 229 return LTrim(RTrim(value)); 230} 231function replaceQuerystring(p_key, p_val, p_query){ 232 var didnt_replace = true 233 var tmpReturn = "" 234 arrQueryTokkens = p_query.split("&") 235 for( n=0; n<arrQueryTokkens.length; n++){ 236 237 tokken = arrQueryTokkens[n].split("=") 238 if ( tokken.length>0){ 239 //alert(tokken[0]) 240 if (tokken[0] == p_key){ 241 if (p_val.length>0 ){ 242 tokken[1] = p_val 243 arrQueryTokkens[n] = tokken.join( "=") 244 }else{ 245 arrQueryTokkens[n] = "" 246 } 247 didnt_replace = false 248 break; 249 } 250 } 251 } 252 if( didnt_replace ){ 253 if (p_val.length >0 ){ 254 tmpReturn = arrQueryTokkens.join("&") + "&" + p_key + "=" + p_val 255 }else{ 256 tmpReturn = arrQueryTokkens.join("&") 257 } 258 }else{ 259 tmpReturn = arrQueryTokkens.join("&") 260 } 261 //tmpReturn = replace(tmpReturn, \&&\g, "&") 262 return tmpReturn 263} 264document.myGetElementsByClassName = function(className) { 265 var children = document.getElementsByTagName('*') || document.all; 266 var elements = new Array(); 267 268 for (var i = 0; i < children.length; i++) { 269 var child = children[i]; 270 var classNames = child.className.split(' '); 271 for (var j = 0; j < classNames.length; j++) { 272 if (classNames[j] == className) { 273 elements.push(child); 274 break; 275 } 276 } 277 } 278 return elements; 279 } 280function insertAfter(parent, node, referenceNode){ 281 if(referenceNode.nextSibling){ 282 parent.insertBefore(node, referenceNode.nextSibling); 283 } else { 284 parent.appendChild(node); 285 } 286} 287 288 289 290 291function setCookie(c_name,value,expiredays){ 292 var exdate=new Date(); 293 exdate.setDate(exdate.getDate()+expiredays); 294 document.cookie=c_name+ "=" +escape(value)+ 295 ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); 296 } 297 298function getCookie(c_name){ 299if (document.cookie.length>0) 300 { 301 c_start=document.cookie.indexOf(c_name + "="); 302 if (c_start!=-1) 303 { 304 c_start=c_start + c_name.length+1; 305 c_end=document.cookie.indexOf(";",c_start); 306 if (c_end==-1) c_end=document.cookie.length; 307 return unescape(document.cookie.substring(c_start,c_end)); 308 } 309 } 310return ""; 311} 312Array.prototype.contains = function (element){ 313 for (var i = 0; i < this.length; i++) 314 { 315 if (this[i] == element) 316 { 317 return true; 318 } 319 } 320 return false; 321}; 322Array.prototype.indexOf = function (element){ 323 for (var i = 0; i < this.length; i++) 324 { 325 if (this[i] == element) 326 { 327 return i; 328 } 329 } 330 return -1; 331}; 332 333 334function trace(p){ 335 try{ 336 console.log(p) 337 // trace.caller 338 } catch(e){} 339 340} 341var formElements = { 342 initMonths : function(o){ 343 var t,n 344 for(n=0; n<13; n++){ 345 t= document.createElement("OPTION") 346 t.value=n; 347 t.innerHTML = n?n:'×××ש'; 348 o.appendChild(t) 349 } 350 }, //initMonths 351 initDays : function(o){ 352 var t,n 353 for(n=0; n<31; n++){ 354 t= document.createElement("OPTION") 355 t.value=n; 356 t.innerHTML = n?n:'×××'; 357 o.appendChild(t) 358 } 359 }, //initDays 360 initYears : function(o){ 361 var t,n 362 for(n=1940; n<1991; n++){ 363 t= document.createElement("OPTION") 364 t.value= n>1940?n:0; 365 t.innerHTML = n>1940?n:'×©× ×'; 366 o.appendChild(t) 367 } 368 }, //initDays 369 valuesOnly: function(o, regX){ 370 var lastValue = o.value 371 function rememberLast(){ 372 lastValue = o.value 373 } 374 function check(){ 375 if(!o.value.length) return 376 if(!regX.test(o.value)){ 377 o.value = lastValue 378 } 379 rememberLast() 380 381 } 382 o.onkeyup = check 383 o.onkeydown = check 384 o.onpaste = check 385 o.onchange = check 386 o.oncut = check 387 o.onfocus = check //input.ondrop 388 o.onblur =check 389 } // valuesOnly 390 391 392} 393 394 395_$$ = function(x){return " return "+ x +".getElementsByTagName(p)"} 396 397function hasClass(ele,cls) { 398 return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); 399} 400function addClassName(ele,cls) { 401 if (!this.hasClass(ele,cls)) ele.className += " "+cls; 402} 403function removeClassName(ele,cls) { 404 if (hasClass(ele,cls)) { 405 var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); 406 ele.className=ele.className.replace(reg,' '); 407 } 408} 409function switchTitles(str, alt){ 410 if(str){ 411 if(trim(str).length>0){ 412 return str 413 } 414 } 415 return alt 416} 417var request = function(p){ 418 var ME = this 419 ME.x="a" 420 url = document.location.href 421 qMarkIndex = url.indexOf("?") 422 ME.queryString = {} 423 if(qMarkIndex>
4230){ 424 var query =url.substring(url.indexOf("?")+1, url.length) 425 queryArr = query.split("&") 426 for(var n=0; n<queryArr.length; n++){ 427 t= queryArr[n].split("=") 428 if(t.length>1){ 429 ME.queryString[t[0]] = decodeURI(t[1]) 430 } 431 } 432 } 433 return ME 434}() 435 436 437 438function getPageInnerSize(){ 439 if( typeof( window.innerWidth ) == 'number' ) { 440 //Non-IE 441 return {width:window.innerWidth, height:window.innerHeight} 442 }else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 443 //IE 6+ in 'standards compliant mode' 444 return {width: document.documentElement.clientWidth, height: document.documentElement.clientHeight} 445 } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 446 //IE 4 compatible 447 return {width: document.body.clientWidth, height: document.body.clientHeight} 448 } 449} 450function merge(a,b){ 451 var m=function(c){for(var t in c) a[t] = c[t]} 452 for(var n=1;n<arguments.length;n++) m(arguments[n]) 453 return a 454 455 456} 457 458/* URL encode / decode http://www.webtoolkit.info/ */ 459var Url = { 460 // public method for url encoding 461 encode: function(string) { 462 return escape(this._utf8_encode(string)); 463 }, 464 // public method for url decoding 465 decode: function(string) { 466 return this._utf8_decode(unescape(string)); 467 }, 468 // private method for UTF-8 encoding 469 _utf8_encode: function(string) { 470 string = string.replace(/\r\n/g, "\n"); 471 var utftext = ""; 472 473 for (var n = 0; n < string.length; n++) { 474 var c = string.charCodeAt(n); 475 if (c < 128) { 476 utftext += String.fromCharCode(c); 477 } 478 else if ((c > 127) && (c < 2048)) { 479 utftext += String.fromCharCode((c >> 6) | 192); 480 utftext += String.fromCharCode((c & 63) | 128); 481 } 482 else { 483 utftext += String.fromCharCode((c >> 12) | 224); 484 utftext += String.fromCharCode(((c >> 6) & 63) | 128); 485 utftext += String.fromCharCode((c & 63) | 128); 486 } 487 } 488 return utftext; 489 }, 490 // private method for UTF-8 decoding 491 _utf8_decode: function(utftext) { 492 var string = ""; 493 var i = 0; 494 var c = c1 = c2 = 0; 495 496 while (i < utftext.length) { 497 c = utftext.charCodeAt(i); 498 if (c < 128) { 499 string += String.fromCharCode(c); 500 i++; 501 } 502 else if ((c > 191) && (c < 224)) { 503 c2 = utftext.charCodeAt(i + 1); 504 string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); 505 i += 2; 506 } 507 else { 508 c2 = utftext.charCodeAt(i + 1); 509 c3 = utftext.charCodeAt(i + 2); 510 string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); 511 i += 3; 512 } 513 } 514 return string; 515 } 516} 517 518var loadToHeader={} 519var loadToHeader = function(tag, p){ 520 if(loadToHeader[tag+"~"+p])return l 521 var l = document.createElement(tag) 522 merge(l,p) 523 $("head")[0].appendChild(l) 524 loadToHeader[tag+"~"+p] = l 525 return l 526} 527 528var between = function(a,b){ 529 if(a>b) 530 return this>=b && this<=a 531 else 532 return this>=a && this<=b 533} 534Number.prototype.between = between; 535Number.prototype.formatComma=function(){ 536 var val=this 537 while (/(\d+)(\d{3})/.test(val.toString())){ 538 val = val.toString().replace(/(\d+)(\d{3})/, '$1'+','+'$2'); 539 } 540 return val; 541 542} 543String.prototype.between = between; 544Date.prototype.between = between; 545String.prototype.Case=function(a){ 546 if(typeof(a)=="object"){ 547 for(var n=0;n<a.length;n++) if(this==a[n])return true 548 } 549 return false 550} 551 552dhtmlLoadScriptLoaded = {} 553function dhtmlLoadScript(url, ol, oe){ 554 url = /^\//.test(url)?document.location.protocol+"//" + document.location.host + url:url; 555 556 var onLoad = function(){ 557 dhtmlLoadScriptLoaded[url].status="loaded" 558 //trace(dhtmlLoadScriptLoaded[url].a + ' ' + url ) 559 for(var n=0;n<dhtmlLoadScriptLoaded[url].a.length;n++)dhtmlLoadScriptLoaded[url].a[n]() 560 dhtmlLoadScriptLoaded[url].a=[] 561 } 562 if(dhtmlLoadScriptLoaded[url]&&dhtmlLoadScriptLoaded[url].status=="loaded"){ 563 if(ol)dhtmlLoadScriptLoaded[url].a.push(ol) 564 onLoad() 565 //trace("allready loaded " ) 566 return 567 } 568 if(dhtmlLoadScriptLoaded[url]&&dhtmlLoadScriptLoaded[url].status=="loading"){ 569 if(ol)dhtmlLoadScriptLoaded[url].a.push(ol) 570 // trace("inLoadingProccess") 571 return 572 } 573 dhtmlLoadScriptLoaded[url]={status:"loading", a:[], url:url} 574 if(ol)dhtmlLoadScriptLoaded[url].a.push(ol) 575 var e = document.createElement("script"); 576 e.onload=onLoad 577 e.onerror=function(){ 578 dhtmlLoadScriptLoaded[url].stautus="err" 579 trace("error loading " + url) 580 if(oe)oe() 581 } 582 e.src = url; 583 e.type="text/javascript"; 584 document.getElementsByTagName("head")[0].appendChild(e); 585} 586 587loadCssLoaded={} 588var loadCss = function(url, ol,oe){ 589 url = /^\//.test(url)?document.location.protocol+"//" + document.location.host + url:url; 590 trace(url) 591 var onLoad = function(){ 592 loadCssLoaded[url]=true 593 if(ol)ol() 594 } 595 if(loadCssLoaded[url]===true){ 596 onLoad() 597 trace("allready loaded " + url) 598 return 599 } 600 if(loadCssLoaded[url]==1){ 601 trace("inLoadingProccess") 602 return 603 } 604 loadCssLoaded[url]=1 605 var css = document.createElement("LINK") 606 css.onload=onLoad 607 css.onerror=function(){ 608 loadCssLoaded[url]=false 609 trace("error loading " + url) 610 if(oe)oe() 611 } 612 css.type = "text/css" 613 css.rel = "stylesheet" 614 css.href = url 615 $("HEAD")[0].appendChild(css) 616 617} 618var initDomItem = function(s,fClass,a){ 619 var o=$(s)[0] 620 o.sclassInit = fClass
621 o.sclassInit(a) 622 return o 623} 624var regExpEmail = /^[a-zA-Z0-9@\-\.\'\_]+$/ 625var regExpemailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; 626var regNumbers = /^[0-9]+$/ 627var regNumbersArr = /^[0-9]{3,9}((\,[0-9]{3,9})+)?$/
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.