\n');
}
var t1;
t1 = 0;
function clkRes() {
if (document.forms["teszt1"].r1.value == 1) {
document.forms["teszt1"].r1.value = 0;
document.forms["teszt1"].r1.checked = 0;
setCookie("c_j_att_res", "0", now);
} else {
document.forms["teszt1"].r1.value = 1;
document.forms["teszt1"].r1.checked = 1;
setCookie("c_j_att_res", "1", now);
}
}
function detectFlaPlug() {
if (navigator.plugins) {
if (navigator.plugins["Shockwave Flash"]) {
var flashDescription = navigator.plugins["Shockwave Flash"].description;
flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
}
}
if (flashVersion >= 6) {
if (screen.width != 800 || screen.height != 600) {
var attRes = new String (getCookie('c_j_att_res')) ;
attRes = attRes.toString();
//Ki volt-e pipálva, hogy újra megjelenjen-e a felbontásra figyelmeztető üzenet
if (attRes.length == 0 || attRes == 'null' || attRes == '0') {
document.write('
')
document.write('Az oktatóprogram használatához az ajánlott képernyőfelbontás: 800*600 képpont.
Az Ön jelenlegi képernyőfelbontása: ' + screen.width + '*' + screen.height + ' képpont.
\n');
document.write('
\n');
document.write(' \n');
document.write('')
t1 = document.forms["teszt1"].r1.value;
} else {
//Ki volt pipélva, hogy ne jelenjen meg többet
var oldPage = new String (getCookie('c_j_oldPage')) ;
oldPage = oldPage.toString();
//Van-e info arrol, hogy hol tartott
if (oldPage.length != 0 && oldPage != 'null') {
//Van info, hogy hol tartott, megkérdezzük, hogy akarja-e onnan folytatni
document.write('')
document.write('
')
document.write('')
document.write('')
document.write('')
} else { //első indulás, Nincs infó, ahonnan folytatni tudná
resetCookies();
document.write('')
document.write(' \n');
document.write('')
loaded = true;
return 0
}
}
// 800*600-ban van
} else {
//Ki volt pipélva, hogy ne jelenjen meg többet
var oldPage = new String (getCookie('c_j_oldPage')) ;
oldPage = oldPage.toString();
//Van-e info arrol, hogy hol tartott
if (oldPage.length != 0 && oldPage != 'null') {
//Van info, hogy hol tartott, megkérdezzük, hogy akarja-e onnan folytatni
document.write('')
document.write('
')
document.write('')
document.write('')
document.write('')
} else { //első indulás, Nincs infó, ahonnan folytatni tudná
resetCookies();
document.write('')
document.write(' \n');
document.write('')
loaded = true;
return 0
}
return 0
}
} else {
document.write('')
document.write(' \n');
document.write('a szükséges Macromedia Flash Player telepítő program.
');
document.write(' \n');
}
}
function detectCokSet() {
tmpTime = now;
tmpTime.toString();
setCookie("c_j_test", tmpTime, now);
var getTmpTime = new String (getCookie('c_j_test')) ;
getTmpTime = getTmpTime.toString();
if (getTmpTime.length == 0 || getTmpTime == 'null' || getTmpTime.toString() != tmpTime.toString()) {
return -1
} else {
return 1
}
}
function detectBrowserVer() {
var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
&& (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_nav2 = (is_nav && (is_major == 2));
var is_nav3 = (is_nav && (is_major == 3));
var is_nav4 = (is_nav && (is_major == 4));
var is_nav4up = (is_nav && (is_major >= 4));
var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) ||
(agt.indexOf("; nav") != -1)) );
var is_nav6 = (is_nav && (is_major == 5));
var is_nav6up = (is_nav && (is_major >= 5));
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie3 = (is_ie && (is_major < 4));
var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
var is_ie4up = (is_ie && (is_major >= 4));
var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
var is_ie5_5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
var is_ie5up = (is_ie && !is_ie3 && !is_ie4);
var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
var is_ie6up = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);
var is_opera = (agt.indexOf("opera") != -1);
var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
var is_opera6 = (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1);
var is_opera7 = (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1);
var is_opera7up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5 && !is_opera6);
if (is_opera7up) {
document.write('
Az Opera böngészőhöz szükség van Java(TM) 2 Runtime Environment, Standard Edition 1.4 kiegészítőre!
Letölthető az alábbi linkről: http://java.sun.com/products/plugin (Download J2SE JRE)
\n');
}
var is_js;
if (is_nav2 || is_ie3) is_js = 1.0;
else if (is_nav3) is_js = 1.1;
else if (is_opera7up) is_js = 1.3;
else if (is_opera) is_js = 1.1;
else if ((is_nav4 && (is_minor <= 4.05)) || is_ie4) is_js = 1.2;
else if ((is_nav4 && (is_minor > 4.05)) || is_ie5) is_js = 1.3;
else if (is_nav6) is_js = 1.5;
else if (is_nav6up) is_js = 1.5;
else if (is_ie5up) is_js = 1.3
else is_js = 0.0;
if ((is_opera7up || is_ie6up || is_nav6up) && (is_js >= 1.1)) {
return 1;
} else {
return -1;
}
}
function resetCookies() {
setCookie("c_j_continue", "1", now);
setCookie("c_j_oldPage", "ve00mi1a.htm" , now);
setCookie("c_j_oldModul", "m00" , now);
setCookie("c_j_modulhist", "000000000000" , now);
deleteCookie("c_j_learnsys");
}
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
}
function Browser() {
var b=navigator.appName
if (b=="Netscape") this.b="ns"
else if (b=="Microsoft Internet Explorer") this.b="ie"
else this.b=b
}
//
//Main start
//
var popUpWin=0;
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
window.scrollTo(0,0);
var is //a browser típusa
is=new Browser()
var mag = screen.height;
var szel = screen.width;
var oldPage = 0;
if (detectBrowserVer()==1) {
if (detectCokSet() ==1) {
detectFlaPlug();
} else {
document.write('
A JogtárS Oktatóprogram működéséhez szükség van a cookie-k engedélyezésére.
Az Internet Explorerben az alábbi módon engedélyezheti a cookie-kat:
\n');
document.write('Az Eszközök menüben az Internetbeállítások... pontban válassza az Adatvédelem fület.
Itt ellenőrizheti, hogy nincs-e letiltva a cookie-k használata.
\n');
document.write(' \n');
}
} else {
document.write('
A JogtárS Oktatóprogram futtatásához az Ön böngészőjének verziószáma túl alacsony!
A tökéletes működéshez az alábbi internetes linkekről frissítheti kedvenc böngészőjét:
\n');
document.write(' \n');
document.write(' \n');
document.write(' \n');
document.write(' \n');
}
function goOn() {
var oldPage = new String (getCookie('c_j_oldPage')) ;
oldPage = oldPage.toString();
if (oldPage.length != 0 && oldPage != 'null') {
if (confirm("Szeretné ott folytatni a tanulást, ahol legutóbb abbahagyta? ")) {
deleteCookie("c_j_continue");
setCookie("c_j_continue", "1", now);
} else {
setCookie("c_j_continue", "0", now);
if (confirm("Ebben az esetben a korábbi beállításai törlődnek. Biztos benne? ")) {
//beállítások törlése
resetCookies();
} else {
}
}
} else { //első indulás
resetCookies();
}
//fullScreen('index.htm');
MM_openBrWindow('index.htm','jogMain');
loaded = true;
}
//-->