<!--
var MyABaseURL='http://www.englezaonline.ro/';
function GoToLogIn() {
 sp="https"+":"+"//"+"infocomp.fluidhosting."+"com"+"/ssl.englezaonline.ro/securelogin.php";
 window.location.href=sp;
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function RSwaP() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function DoSwaP() { //v3.0
  var i,j=0,x,a=DoSwaP.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function hLe (TheId, Flag) {
 var d=document;
 if (d.all){
	if (Flag) d.all(TheId).style.borderTop="#FF3300 solid 2px";
	else d.all(TheId).style.borderTop="#CCCCCC solid 2px";
 }
 else if (d.getElementById){
	if (Flag) d.getElementById(TheId).style.borderTop="#FF3300 solid 2px";
	else d.getElementById(TheId).style.borderTop="#CCCCCC solid 2px";
 }
}

function KeySrc(frm){
var pass=true;
if ((frm.sk) && (frm.sk.value == '' || frm.sk.value == 'Introduceti cuvantul sau fraza'))
	pass=false;
if (!pass){
	alert("Introduceti cuvantul sau cuvintele cautate apoi apasati pe Cauta!");
	return false;
}
else
	return true;
}

function BrowseType(v) {
 window.location.href=v;
}

//audio
function AudioStream(FileIndex, Stopped) {
 var AutoRun=1;
 if (GlobAArr[0]=="empty") { alert("The audio file is available for subscribers only."); return; }
 if (Stopped) AutoRun=0;
 if (MyACnst && GlobAArr[FileIndex]) TheFile=MyABaseURL+MyBfURL+GlobAArr[FileIndex]+MyACnst+'/en.mp3';
 else { window.status="Unknown audio file. Player launch cancelled."; return; }
 window.status="Launching Flash Audio Player.";
 var d=document, TheId="embflashplayer";
 var InsWhat='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="288" height="57" id="mp3player5" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+MyABaseURL+'mp3player6.swf?autorun='+AutoRun+'&file='+TheFile+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="'+MyABaseURL+'mp3player6.swf?autorun='+AutoRun+'&file='+TheFile+'" quality="high" bgcolor="#ffffff" width="288" height="57" name="mp3player5" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
 if (d.all) d.all(TheId).innerHTML=InsWhat;
 else if (d.getElementById) d.getElementById(TheId).innerHTML=InsWhat;
}

//Audio_Bitrate_Switch Function
function SwitchBitrate(xflag) {
var d=document;
BiDH='<iframe src="http://www.englezaonline.ro/users/audio_bitrate_switch.php?myflag='+xflag+'" scrolling=no frameborder=no width=1 height=1></iframe>';
 if(d.all)  d.all.BitrateSwitch.innerHTML=BiDH;
 else if(d.getElementById) d.getElementById("BitrateSwitch").innerHTML=BiDH;
}

//printerfriendly
function GoPrinterFriendly(url2go) {
 var ufa='http://www.englezaonline.ro/engleza/';
 var ufb='/printerfriendly/on';
 url2go=ufa+url2go+ufb; 
 window.location.href = url2go;
}

// dictionar
function Validate_Dict_Search(Xfrm) {
 var errors='', d=document, s2=Xfrm.DicSrcTxt.value, inu='Disponibil numai pentru abonati';
 while ((s2.substr(0,1)==" ") && (s2.length!=0)) {s2=s2.slice(1);}
 var MyLen=s2.length;
 while ((s2.substr(MyLen-1,1)==" ") && (s2.length!=0)) {s2=s2.slice(0,-1);MyLen=s2.length;}
 if ((MyLen>2)&&(s2!==inu)) {
	window.open('','TheNEWindow','scrollbars=yes,resizable=yes,width=750,height=400,left=100,top=100,status,menubar,toolbar');
 }
 else {
	if ((MyLen==0)||(s2==inu)) {
		errors = 'Va rugam introduceti textul de cautat in dictionar.';
		Xfrm.DicSrcTxt.value=s2;
		Xfrm.DicSrcTxt.focus();
	}
	else {
		errors = 'Textul cautat trebuie sa contina minimum 3 litere.';
		Xfrm.DicSrcTxt.value=s2;
		Xfrm.DicSrcTxt.focus();
	}
 }
 if (errors) alert(errors);
 d.MyReturnValue = (errors == '');
}

function Open_Dict_Help() { //v4.0
	window.open('http://www.englezaonline.ro/dictionar_help.php','TheDicHelpWindow','scrollbars=yes,resizable=yes,width=750,height=400,left=100,top=100,status,menubar,toolbar');
}

function ToggleStWith(action) { //v4.0
 var d=document, sh='<input name="StartWbox" type="checkbox"';
 if (action==1) d.getElementById("spanStWith").innerHTML=sh+'> Incepe cu';
 else d.getElementById("spanStWith").innerHTML=sh+' disabled> <font color="#999999">Incepe cu</font>';
 return d;
}

function BookMarkIt(site) {
 if (window.external) window.external.AddFavorite(document.location, site+document.title);
 else alert("Sorry! Your browser doesn't support this function.");
}
//-->