	theeffects = new Array(3,8,9,10,11,12,17,18,19,20,21,22);
/*	theeffects[0] = 0;"Box In";
	theeffects[1] = 1;//"Box Out";
	theeffects[2] = 2;//"Circle In";
	theeffects[3] = 3;//"Circle Out"; ---------------
	theeffects[4] = 4;//"Wipe Up";
	theeffects[5] = 5;//"Wipe Down";
	theeffects[6] = 6;//"Wipe Right";
	theeffects[7] = 7;//"Wipe Left";
	theeffects[8] = 8;//"Vertical Blinds";  ---------------
	theeffects[9] = 9;//"Horizontal Blinds"; ---------------
	theeffects[10] = 10;//"Checkerboard Across"; ---------------
	theeffects[11] = 11;//"Checkerboard Down"; ---------------
	theeffects[12] = 12;//"Random Dissolve"; ---------------
	theeffects[13] = 13;//"Split vertical in";
	theeffects[14] = 14;//"Split vertical out";
	theeffects[15] = 15;//"Split horizontal in";
	theeffects[16] = 16;//"Split horizontal out";
	theeffects[17] = 17;//"Stripes left down"; ---------------
	theeffects[18] = 18;//"Stripes left up"; ---------------
	theeffects[19] = 19;//"Stripes right down"; ---------------
	theeffects[20] = 20;//"Stripes right up"; ---------------
	theeffects[21] = 21;//"Random bars horizontal"; ---------------
	theeffects[22] = 22//"Random bars vertical"; ---------------
	theeffects[23] = 23;//"Random";
*/
/* pentru home */
function refresh() 
	{
		if(document.getElementById("image1")!=null)
		{
			var the_image = image1;
			transeffect = theeffects[Math.round(Math.random() * (theeffects.length-1))];
			the_image.filters.item(0).Apply();
			the_image.filters.item(0).Transition = transeffect;
			the_image.filters.item(0).Play(1.0);
			the_image.style.visibility="inherit";
		}
	}

function putBanner()
	{
		var temp = '<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="122" height="70">';
		temp +='<param name="movie" value="/eKontentLorenaFiles/intro/images/13.swf"><param name="wmode" value="transparent"><param name="quality" value="high"></OBJECT>';
		
		/*var temp = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="122" height="70">';
		temp +='     <param name="movie" value="/eKontentLorenaFiles/intro/images/13.swf">';
		temp +='     <param name="quality" value="high">';
		temp +='     <embed src="/eKontentLorenaFiles/intro/images/13.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="122" height="70"></embed>';         
		temp +='</object>';*/
		document.write(temp);
	}

/* pentru header */
function logout()
	{
		document.forms['KSPLogoutForm'].action='http://www.lorena.ro/formparser.jsp';
		document.getElementById( 'KSPLogoutForm' ).submit();
	}

/* pentru footer */
function valideazaNewsLetter()
	{
		var temp = '';
		if (document.getElementById('Email').value.length == 0)
			temp += "Email address is required. \n";	
		if (temp!='')
		{			
			alert(temp);
			return;
		}
		document.getElementById('KSPFillForm').action='../../../../formparser.jsp';
		document.getElementById('KSPFillForm').submit();
	}

function validateEmail(obj) 
	{ 
	
		var bVali = true;	
	
		if (obj.value != "") {
	
			aMail = obj.value.split("@")
			if (aMail.length != 2) {
				bVali = false;
			} else {
				usuaExp = /[a-z_0-9\.]/;
				if (!usuaExp.test(aMail[0])) {
					bVali = false;
				} else {
					aHost = aMail[1].split(".");
					if (aHost.length < 2) {
						bVali = false;
					}
				}
	
			}
	
		}
	
		if (!bVali) {
			alert("Email address is invalid!");
			obj.focus();	
		}
	}

/* pentru register */
function umpleTexteUsers()
	{
		
		/*document.getElementById('t1').innerHTML = 'Client type: ';
		document.getElementById('t2').innerHTML = '<input type="radio" name="tip" onclick="changeLocation();"> Company';
		document.getElementById('t3').innerHTML = '<input type="radio" checked name="tip"> Private person';*/
		document.getElementById('t4').innerHTML = 'Surname : ';
		document.getElementById('t5').innerHTML = '<p>Name</p>: ';
		document.getElementById('t6').innerHTML = 'Country: ';
		document.getElementById('t7').innerHTML = 'City: ';
		document.getElementById('t8').innerHTML = 'Email: ';
		document.getElementById('t9').innerHTML = 'Phone: ';
		document.getElementById('t10').value = '  Register  ';
		document.getElementById('t11').value = '     Reset     ';
		document.getElementById('t14').value = 'User Name (Fiscal Code)';
		document.getElementById('t15').value = 'Password';
		document.getElementById('t16').value = 'Password Confirmation';
		
	}

