// ******* Copyright 2008 by fh@etas-it.ch ******* var x1226665470953; var x1226665470954; var x1226665470955 = 'y'; var x1226665470956; var x1226665470957 = 'n'; var x1226665470958; function JSON_rpc_json(x1226665470959, x1226665470960) { x1226665470953 = x1226665470959; x1226665470954 = x1226665470960; if (x1226665470955 == 'y') { x1226665470961(); } else { x1226665470969(); } } function x1226665470961() { var x1226665470962= new Date(); var x1226665470963 = x1226665470962.getSeconds(); var x1226665470964 = x1226665470962.getMilliseconds(); var x1226665470965 = x1226665470963 * x1226665470964; x1226665470984(); if (x1226665470983) { var x1226665470966 = x1226665470954 + "×tamp=" + x1226665470965; x1226665470983.open("GET", x1226665470966, true); x1226665470983.onreadystatechange = x1226665470978; x1226665470983.send(null); wMilliSec = 5000; x1226665470956 = window.setTimeout("x1226665470980()", wMilliSec); } else { x1226665470955 = 'n'; x1226665470969(); } } function x1226665470967( ) { if (x1226665470957 == 'n') { x1226665470957 = 'y'; var x1226665470968 = document.createElement("IFRAME"); x1226665470968.id = "i_"; x1226665470968.src = "#"; x1226665470968.width = "0px"; x1226665470968.height = "0px"; x1226665470968.border = "0px"; document.body.appendChild(x1226665470968); } } function x1226665470969() { var x1226665470962= new Date(); var x1226665470963 = x1226665470962.getSeconds(); var x1226665470964 = x1226665470962.getMilliseconds(); var x1226665470965 = x1226665470963 * x1226665470964; var x1226665470970 = "i_"; var x1226665470971 = "x1226665470981"; var x1226665470972 = x1226665470954 + "&cb=" + x1226665470971 + "×tamp=" + x1226665470965 + "&js=y"; x1226665470973(x1226665470972); } function x1226665470973(x1226665470974) { if (!document.createElement) {return true}; var x1226665470975; var URL = x1226665470974; if (!x1226665470958 && document.createElement) { try { var x1226665470976=document.createElement('x1226665470977'); x1226665470976.setAttribute('id','id_iframe_1'); x1226665470976.style.border='0px'; x1226665470976.style.width='0px'; x1226665470976.style.height='0px'; x1226665470958 = document.body.appendChild(x1226665470976); if (document.frames) { x1226665470958 = document.frames['id_iframe_1']; } } catch(exception) { iframeHTML='\<\/x1226665470977>'; document.body.innerHTML+=iframeHTML; x1226665470958 = new Object(); x1226665470958.document = new Object(); x1226665470958.document.location = new Object(); x1226665470958.document.location.x1226665470977 = document.getElementById('id_iframe_1'); x1226665470958.document.location.replace = function(location) { this.x1226665470977.src = location; } } } if (navigator.userAgent.indexOf('Gecko') !=-1 && !x1226665470958.contentDocument) { setTimeout('x1226665470973()',10); return false; } if (x1226665470958.contentDocument) { x1226665470975 = x1226665470958.contentDocument; } else if (x1226665470958.contentWindow) { x1226665470975 = x1226665470958.contentWindow.document; } else if (x1226665470958.document) { x1226665470975 = x1226665470958.document; } else { return true; } x1226665470975.location.replace(URL); return false; } function x1226665470978() { if (x1226665470983.readyState == 4 ) { if (x1226665470953 != "") { var x1226665470979; x1226665470979 = x1226665470983.responseText; window.clearTimeout(x1226665470956); if (x1226665470979 != "") { eval ("window.parent." + x1226665470953 + "(x1226665470979);"); } } } } function x1226665470980() { x1226665470983.abort(); x1226665470955 = 'n'; x1226665470969(); } function x1226665470981(x1226665470982) { if (x1226665470953 != "") { eval ("window.parent." + x1226665470953 + "(x1226665470982);"); } } var x1226665470983; function x1226665470984(){ x1226665470983 = false; if(window.XMLHttpRequest) { try { x1226665470983 = new XMLHttpRequest(); } catch(e) { x1226665470983 = false; } } else if(window.ActiveXObject) { try { x1226665470983 = new ActiveXObject("Msxml3.XMLHTTP"); } catch(e) { try { x1226665470983 = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { x1226665470983 = false; } } } } function FH_PERSON_get_by_PersonId_JSON (x1624605059894, x1624605059895 ) { wAct = "FH_PERSON_get_by_PersonId_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&PersonId=" + x1624605059895 ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_login_JSON (x1624605059894, x1624605059896, x1624605059897, x1624605059898 ) { wAct = "FH_PERSON_login_by_Email_Passwort_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&Email=" + x1624605059896 + "&Passwort=" + x1624605059897 + "&SetCookie=" + x1624605059898 ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_logoff_JSON (x1624605059894) { wAct = "FH_PERSON_logoff_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_destroy_session (x1624605059894) { wAct = "FH_PERSON_destroy_session"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_list_JSON (x1624605059894) { wAct = "FH_PERSON_list_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_create_JSON (x1624605059894, x1624605059899, x1624605059900, x1624605059897, x1624605059901, x1624605059902, x1624605059903, x1624605059896, x1624605059904, x1624605059905, x1624605059906, x1624605059907, x1624605059908) { wAct = "FH_PERSON_create_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&Name=" + x1624605059899 + "&Vorname=" + x1624605059900 + "&Passwort=" + x1624605059897 + "&Admin=" + x1624605059901 + "&User=" + x1624605059902 + "&Public=" + x1624605059903 + "&Email=" + x1624605059896 + "&Erf_PersonId=" + x1624605059904 + "&Mut_PersonId=" + x1624605059905 + "&Mut_Datum=" + x1624605059906 + "&Mut_Zeit=" + x1624605059907 + "&RandNr=" + x1624605059908 ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_create_reg_JSON (x1624605059894, x1624605059899, x1624605059896, x1624605059909) { wAct = "FH_PERSON_create_reg_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&Name=" + x1624605059899 + "&Email=" + x1624605059896 + "&Captcha=" + x1624605059909 ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_create_reg_new_JSON (x1624605059894, x1624605059899, x1624605059896, x1624605059897, x1624605059909) { wAct = "FH_PERSON_create_reg_new_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&Name=" + x1624605059899 + "&Email=" + x1624605059896 + "&Passwort=" + x1624605059897 + "&Captcha=" + x1624605059909 ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_get_pw_JSON (x1624605059894, x1624605059896, x1624605059909) { wAct = "FH_PERSON_get_pw_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&Email=" + x1624605059896 + "&Captcha=" + x1624605059909 ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_update_reg_name_JSON (x1624605059894, x1624605059896, x1624605059899) { wAct = "FH_PERSON_update_reg_name_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&Email=" + x1624605059896 + "&Name=" + x1624605059899 ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_update_pw_JSON (x1624605059894, x1624605059896, x1624605059910) { wAct = "FH_PERSON_update_pw_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&Email=" + x1624605059896 + "&PW=" + x1624605059910 ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_update_JSON (x1624605059894, x1624605059895, x1624605059899, x1624605059900, x1624605059897, x1624605059901, x1624605059902, x1624605059903, x1624605059896, x1624605059904, x1624605059905, x1624605059906, x1624605059907) { wAct = "FH_PERSON_update_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&PersonId=" + x1624605059895 + "&Name=" + x1624605059899 + "&Vorname=" + x1624605059900 + "&Passwort=" + x1624605059897 + "&Admin=" + x1624605059901 + "&User=" + x1624605059902 + "&Public=" + x1624605059903 + "&Email=" + x1624605059896 + "&Erf_PersonId=" + x1624605059904 + "&Mut_PersonId=" + x1624605059905 + "&Mut_Datum=" + x1624605059906 + "&Mut_Zeit=" + x1624605059907 + "&RandNr=" + x1624605059908 ; JSON_rpc_json(x1624605059894, wString); } function FH_PERSON_delete_JSON (x1624605059894, x1624605059895 ) { wAct = "FH_PERSON_delete_JSON"; wString = "s_fh_person_rpc_server.php?fAct=" + wAct; wString = wString + "&PersonId=" + x1624605059895 ; JSON_rpc_json(x1624605059894, wString); } function doRegister_new() { wPW1 = document.getElementById("id_Passwort").value; if (wPW1.length == 0) { showStatus2('E003'); return; } wPW2 = document.getElementById("id_Passwort2").value; if (wPW2 == '') { showStatus2('E003'); return; } if (wPW1 != wPW2) { showStatus2('E004'); return; } FH_PERSON_create_reg_new_JSON("callback_doRegister", document.getElementById("id_Name").value, document.getElementById("id_Email").value, document.getElementById("id_Passwort").value, document.getElementById("id_Captcha").value); } function doRegister() { FH_PERSON_create_reg_JSON("callback_doRegister", document.getElementById("id_Name").value, document.getElementById("id_Email").value, document.getElementById("id_Captcha").value); } function callback_doRegister(inObj) { var wObj = eval('(' + decodeURI(inObj) + ')'); showStatus(wObj); return; } function doRegister_upd() { FH_PERSON_update_reg_name_JSON("callback_doRegister_upd", document.getElementById("id_Email").value, document.getElementById("id_Name").value); } function callback_doRegister_upd(inObj) { var wObj = eval('(' + decodeURI(inObj) + ')'); showStatus3(wObj); return; } function doRegister_pw_upd() { wPW1 = document.getElementById("id_Passwort").value; if (wPW1.length == 0) { showStatus2('E003'); return; } wPW2 = document.getElementById("id_Passwort2").value; if (wPW2 == '') { showStatus2('E003'); return; } if (wPW1 != wPW2) { showStatus2('E004'); return; } FH_PERSON_update_pw_JSON("callback_doRegister_pw_upd", document.getElementById("id_Email").value, document.getElementById("id_Passwort").value); } function callback_doRegister_pw_upd(inObj) { var wObj = eval('(' + decodeURI(inObj) + ')'); showStatus3(wObj); return; } function doRegister_PWlost() { FH_PERSON_get_pw_JSON("callback_doRegister_PWlost", document.getElementById("id_Email").value, document.getElementById("id_Captcha").value); } function callback_doRegister_PWlost(inObj) { var wObj = eval('(' + decodeURI(inObj) + ')'); showStatus4(wObj); return; } function showStatus(inObj) { var wReturnText = ""; switch(inObj.ReturnObj.ReturnCode) { case 'I001': wBC = '#66ff99'; wReturnText = "Registrierung erfolgreich, besten Dank! Bitte Registrierung im Mail bestätigen!"; break; case 'D003': wBC = '#FF4040' ; wReturnText = "Name oder Email-Adresse bereits registriert!"; break; case 'E002': wBC = '#FF4040' ; document.getElementById("id_Captcha").focus(); wReturnText = inObj.ReturnObj.ReturnText; break; default: wBC = '#FF4040' ; wReturnText = inObj.ReturnObj.ReturnText; break; } document.getElementById("id_Status").bgColor = wBC; document.getElementById("id_Status").innerHTML = inObj.ReturnObj.ReturnCode + " - " + wReturnText; return; } function showStatus2(inReturnCode, inReturnText) { var wReturnText = ""; switch(inReturnCode) { case 'I00X': wBC = '#66ff99'; wReturnText = "Name gespeichert"; break; case 'E003': wBC = '#FF4040' ; wReturnText = "Passwort obligatorisch"; break; case 'E004': wBC = '#FF4040' ; wReturnText = "Passwort nicht gleich 2. Passwort"; break; default: wBC = '#FF4040' ; wReturnText = inReturnText; break; } document.getElementById("id_Status").bgColor = wBC; document.getElementById("id_Status").innerHTML = inReturnCode + " - " + wReturnText; return; } function showStatus3(inObj) { var wReturnText = ""; switch(inObj.ReturnObj.ReturnCode) { case 'I001': wBC = '#66ff99'; wReturnText = "Name gespeichert!"; break; case 'D003': wBC = '#FF4040' ; wReturnText = "Email-Adresse bereits registriert!"; break; default: wBC = '#FF4040' ; wReturnText = inObj.ReturnObj.ReturnText; break; } document.getElementById("id_Status").bgColor = wBC; document.getElementById("id_Status").innerHTML = inObj.ReturnObj.ReturnCode + " - " + wReturnText; return; } function showStatus4(inObj) { var wReturnText = ""; switch(inObj.ReturnObj.ReturnCode) { case 'I001': wBC = '#66ff99'; wReturnText = "Passwort-Versand erfolgreich, bitte Mails überprüfen!"; break; default: wBC = '#FF4040' ; wReturnText = inObj.ReturnObj.ReturnText; break; } document.getElementById("id_Status").bgColor = wBC; document.getElementById("id_Status").innerHTML = inObj.ReturnObj.ReturnCode + " - " + wReturnText; return; }