function show( id, method, velocity ){ if(method==undefined) method='slide'; if(velocity==undefined) velocity='slow'; if(method=='slide') $("#" + id).slideDown(velocity); else if(method=='fade') $("#" + id).fadeIn(velocity); else if(method=='show') $("#" + id).show(velocity); else if(method=='toggle') $("#" + id).toggle(velocity); } function hide( id, method, velocity ){ if(method==undefined) method='slide'; if(velocity==undefined) velocity='slow'; if(method=='slide') $("#" + id).slideUp(velocity); else if(method=='fade') $("#" + id).fadeOut(velocity); else if(method=='show') $("#" + id).hide(velocity); else if(method=='toggle') $("#" + id).toggle(velocity); } function checkType( type, module, filename ){ if( module=='video'){ if(type=='video/mpeg') return true; else if(type=='video/avi') return true; else if(type=='video/x-msvideo') return true; else if(type=='video/quicktime') return true; else if(type=='video/x-sgi-movie') return true; else if(type=='application/x-shockwave-flash') return true; else if(type=='application/octet-stream') return true; else if(type=='video/x-flv') return true; else{ var kv = filename.split('.'); if(kv[ parseInt(kv.length-1) ]=='flv') return true; else return false; } }else if( module=='picture'){ if(type=='image/gif') return true; else if(type=='image/jpeg') return true; else if(type=='image/png') return true; else if(type=='image/bmp') return true; //else if(type=='image/tiff') return true; else return false; } } function htmlEncode( string ) { if(string.length>0){ string = escape(string); string = string.replace(/\//g,"%2F"); string = string.replace(/\?/g,"%3F"); string = string.replace(/=/g,"%3D"); string = string.replace(/&/g,"%26"); string = string.replace(/@/g,"%40"); //alert(string); } return string; } function replaceChars( string ) { if(string.length>0){ string = string.replace(/ü/g,"ü"); string = string.replace(/Ü/g,"ü"); string = string.replace(/á/g,"á"); string = string.replace(/Á/g,"á"); string = string.replace(/é/g,"é"); string = string.replace(/É/g,"é"); string = string.replace(/í/g,"í"); string = string.replace(/Í/g,"í"); string = string.replace(/ő/g,"õ"); string = string.replace(/Ő/g,"Õ"); string = string.replace(/ó/g,"ó"); string = string.replace(/Ó/g,"ó"); string = string.replace(/ú/g,"ú"); string = string.replace(/Ú/g,"ú"); string = string.replace(/ű/g,"ű"); string = string.replace(/Ű/g,"ű"); } return string; } function changeFontSize( direction, obj ){ if(obj.style){ size=parseInt((obj.style.fontSize ? obj.style.fontSize : 10)); if(direction=='up'){ obj.style.fontSize=parseInt(size+1)+'pt'; } else if(direction=='down'){ obj.style.fontSize=parseInt(size-1)+'pt'; } } if(obj.childNodes.length>0){ for(var i=0; i1){ //document.getElementById('logincheck_div').innerHTML!=' ' || alert("A megadott azonosító már foglalt!"); return false; } } } if(newpass!=newpass2){ alert("A két jelszó nem egyezik!"); return false; } return true; } function checkProfileForm( form ){ var pass; var newpass; var newpass2; for(var i=0; i