function thisMovie(A){if(navigator.appName.indexOf("Microsoft")!=-1){return window[A]}else{return document[A]}}function hideTable(){var A=document.getElementById("hideFlash0").getElementsByTagName("td");document.getElementById("hideFlash1").style.display="none";document.getElementById("hideFlash2").style.display="none";document.getElementById("hideFlash4").style.display="none";document.getElementById("hideFlash5").style.display="none";document.getElementById("hideFlash6").style.display="none";for(var C=0;C<A.length;C++){var B=A[C];B.style.visibility="hidden"}document.getElementById("showFlash0").style.visibility="visible"}function popup_kill(A){dead=setTimeout("Modalbox.hide()",3000)}function OpenWin(C,B,D,A,E){this.x=(screen.width-D)/2;this.y=(screen.height-A-60)/2;E="top="+this.y+",left="+this.x+",width="+D+",height="+A+","+E;newwindow=window.open(C,B,E);if(window.focus){newwindow.focus()}}function CheckNumber(B){retval=false;var A;for(A=0;A<=B.length-1;A++){if((B.charCodeAt(A)>=48)&&(B.charCodeAt(A)<=57)){retval=true}else{retval=false;break}}return retval}function CheckPass(B){retval=false;var A;for(A=0;A<=B.length-1;A++){mcode=B.charCodeAt(A);if(((mcode>=64)&&(mcode<=90))||((mcode>=97)&&(mcode<=122))||((mcode>=48)&&(mcode<=57))||(mcode==45)||(mcode==95)||(mcode==46)){retval=true}else{retval=false;break}}return retval}function CheckEmail(B){var A=/^([A-Za-z0-9\_\-]+\.)*[A-Za-z0-9\_\-]+@[A-Za-z0-9\_\-]+(\.[A-Za-z0-9\_\-]+)+$/;if(B.search(A)==-1){return false}else{return true}}function trim(A){return A.replace(/^\s+|\s+$/g,"")}function stripPHP(A){A=trim(A);A=A.replace(/<\?php/g,"");A=A.replace(/<\?/g,"");A=A.replace(/\?>/g,"");return A}function activeTabSearch(B){var A=["baihat","casi","nhacsi","album","playlist","videoclips"];for(var C=0;C<A.length;C++){$("active_"+A[C]).style.display="none"}$("active_"+A[B]).style.display="block"}function setWaiting(B){var A=$(B);if(A){A.innerHTML='<center><img src="'+IMAGE_WAITING+'"></center>'}}function CheckFile(A){extension=A.substr(A.length-3,A.length);extension=extension.toLowerCase();if(extension.search("mp3")!=-1||extension.search("wma")!=-1){return true}else{return false}}function CheckFileImg(A){extension=A.substr(A.length-3,A.length);extension=extension.toLowerCase();if(extension.search("jpeg")!=-1||extension.search("jpg")!=-1){return true}else{return false}};