PageSourceSearch

https://proslipsis.gr/cm_javascript.js

js proslipsis.gr collected 2026-10-02 13:02:33 UTC 5,022 bytes, 138 lines download raw bytes

1// phpMyContent Manager v2.0 
2// 19/06/04 
3// Code By Nick Mathioudakis (mailto:[email protected])
4// 
5// cm_javascript.js
6// phpMyContent reusable JavaScript library
7
8function MM_findObj(n, d) { //v4.0
9  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
10    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
11  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
12  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
13  if(!x && document.getElementById) x=document.getElementById(n); return x;
14}
15
16function MM_reloadPage(init) {  //reloads the window if Nav4 resized
17  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
18    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
19  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
20}
21MM_reloadPage(true);
22
23function MM_showHideLayers() { //v3.0
24  var i,p,v,obj,args=MM_showHideLayers.arguments;
25  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
26    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
27    obj.visibility=v; }
28}
29
30function MM_swapImgRestore() { //v3.0
31  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
32}
33
34function MM_preloadImages() { //v3.0
35  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
36    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
37    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
38}
39
40function MM_swapImage() { //v3.0
41  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
42   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
43}
44
45function MM_openBrWindow(theURL,winName,features) { //v2.0
46  window.open(theURL,winName,features);
47}
48
49function movein(which){
50  // td rollover menu 1.0
51  // ex. <td class="NavText" id=choice1 onmouseover=movein(choice1)  
52  // ex. style="CURSOR: hand; BACKGROUND-COLOR: #EEEEEC"  onclick="location.href=''"  
53  // ex. onmouseout=moveout(choice1)>&nbsp;Menu Item 1</td>
54  which.style.background='#B6D8E0'
55}
56
57function moveout(which){
58  // td rollover menu 1.0
59  which.style.background='#EEEEEC'
60}
61
62function cm_GetSystemDate() { 
63    tdate = new Date();
64    CurYear = tdate.getYear();
65    CurYear=(CurYear<2000)?1900+CurYear:CurYear;
66    CurMonth = tdate.getMonth() + 1;
67    CurDayOw = tdate.getDay();
68    CurDay= tdate.getDate();
69    if (CurDayOw == 1) { CurDayOw = "ÄåõôÝñá" };
70    if (CurDayOw == 2) { CurDayOw = "Ôñßôç" };
71    if (CurDayOw == 3) { CurDayOw = "ÔåôÜñôç" };	
72    if (CurDayOw == 4) { CurDayOw = "ÐÝìðôç" };	
73    if (CurDayOw == 5) { CurDayOw = "ÐáñáóêåõÞ" };
74    if (CurDayOw == 6) { CurDayOw = "ÓÜââáôï" };
75    if (CurDayOw == 0) { CurDayOw = "ÊõñéáêÞ" };
76	
77	if (CurMonth == 1) { CurMonth = "Éáíïõáñßïõ" };
78	if (CurMonth == 2) { CurMonth = "Öåâñïõáñßïõ" };
79	if (CurMonth == 3) { CurMonth = "Ìáñôßïõ" };
80	if (CurMonth == 4) { CurMonth = "Áðñéëßïõ" };
81	if (CurMonth == 5) { CurMonth = "Ìáúïõ" };
82	if (CurMonth == 6) { CurMonth = "Éïõíßïõ" };
83	if (CurMonth == 7) { CurMonth = "Éïõëßïõ" };
84	if (CurMonth == 8) { CurMonth = "Áõãïýóôïõ" };
85	if (CurMonth == 9) { CurMonth = "Óåðôåìâñßïõ" };
86	if (CurMonth == 10) { CurMonth = "Ïêôùâñßïõ" };
87	if (CurMonth == 11) { CurMonth = "Íïåìâñßïõ" };
88	if (CurMonth == 12) { CurMonth = "Äåêåìâñßïõ" };
89   return CurDayOw + ", " + CurDay + " " + CurMonth + " " + CurYear;  
90}
91
92 function cm_GetDate() { 
93   document.write(cm_GetSystemDate());
94 }
95 
96  function cm_GetDateTime() { 
97	tdate = new Date();
98	CurHour = tdate.getHours();
99	CurMinutes = tdate.getMinutes();
100    return cm_GetSystemDate() + " " + CurHour + ":" + CurMinutes;
101  }  
102  
103 function DoSearch() {
104   if (searchForm.search_radio[0].checked) {
105        if (searchForm.search_text.value == "") return 0; 
106		var nmUrl = "http://www.google.com.gr/search?q=" + searchForm.search_text.value + "&ie=UTF-8&hl=el";
107		window.open(nmUrl,'proslipsisSearchWindow','');
108   } else if (searchForm.search_radio[1].checked) {
109     //alert('ÕÐÏ ÊÁÔÁÓÊÅÕÇ');
110	 window.location = "cmCat_search.php?str=" + searchForm.search_text.value;
111   }
112 } 
113 
114  function nmJobs(i) {
115    if (i == 1) { 
116       window.location = "cmCat_Ads.php";
117     } else	{   
118        window.location = "cmCat_newAd.php";
119	   //alert('Ç proslipsis.gr ðáñÝ÷åé óôïõò ÷ñÞóôåò ôïõ äéáäéêôýïõ äùñåÜí áããåëßåò åñãáóßáò. \nÇ õðçñåóßá áíáíåíþíåôå êáé èá åßíáé óýíôïìá êïíôÜ óáò .');
120    }
121   }
122   
123   function nmAlertJobs() {
124     alert("Õðçñåóßá \"Åéäïðïßçóç áããåëéþí\"\n\nÇ õðçñåóßá âñßóêåôå óå ðéëïôéêü óôÜäéï, óýíôïìá êïíôÜ óáò.");
125   }
126   
127   	function moveinBOX(which){
128	   which.style.background='#eaeaea';
129	}
130	
131	function moveoutBOX(which){
132	   which.style.background='#FFFFFF';
133	}
134	
135	function MM_displayStatusMsg(msgStr) { //v1.0
136	  status=msgStr;
137	  document.MM_returnValue = true;
138	}		

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.