<!-- begin


function validate_form(form){
	email = form.email;
	name = form.name.value;
	comp = form.companie.value;
	if(name.length < 3 || name.length > 60){
		alert('Va rugam completati campul nume!');
		form.name.focus();
		form.name.style.border='2px solid red';
		return false;
	}else{
		form.name.style.border='1px solid #CCBDA6';
	}
	if(comp.length < 3 || comp.length > 60){
		alert('Va rugam completati campul companie!');
		form.companie.focus();
		form.companie.style.border='2px solid red';
		return false;
	}else{
		form.companie.style.border='1px solid #CCBDA6';
	}
	
	with (email){
		apos=value.indexOf("@");
		dotpos=value.lastIndexOf(".");
		if (apos<1||dotpos-apos<2){
			alert('Va rugam introduceti o adresa de e-mail valida!');
			form.email.focus();
			form.email.style.border='2px solid red';
			return false;
		}else{
			form.companie.style.border='1px solid #CCBDA6';
			return true;
		}
	}
}

/*
	fj_common
*/
/*
document.onmousedown = function(){for (a in document.links) document.links[a].onfocus = document.links[a].blur;}
*/
function launch(url, w, h, r, s, m, t)
{
	var hWnd = window.open(url,"pop","width="+w+",height="+h+",resizable="+r+",scrollbars="+s+",menubar="+m+",toolbar="+t+"");
}

function confirmAct(msg)
{
	var agree=confirm(msg);
	if (agree)
		return true;
	else
		return false ;
}



/*
	fj_rollover
*/

/*
	Header Information------------------------------------[Do Not Remove This Header]--
	Title: OO Dom Image Rollover
	Description: This script makes it easy to add rollover/ mousedown 
  	effects to any image on the page, including image submit buttons. Automatically 
  	preloads images as well. Script works in all DOM capable browsers- IE5+, NS6+, 
  	Opera7+.
	
	Legal: Copyright 2005 Adam Smith
	Author Email Address: ibulwark@hotmail.com
	Date Created: June 6, 2005
	Website: Codevendor.com | eBadgeman.com
	Script featured on Dynamic Drive: http://www.dynamicdrive.com
	-----------------------------------------------------------------------------------
*/

function imageholderclass(){
	this.over=new Array();
	this.down=new Array();
	this.src=new Array();
	this.store=store;
	
	function store(src, down, over){
		var AL=this.src.length;
		this.src[AL]=new Image(); this.src[AL].src=src;
		this.over[AL]=new Image(); this.over[AL].src=over;
		this.down[AL]=new Image(); this.down[AL].src=down;
	}
}

var ih = new imageholderclass();
var mouseisdown=0;

function preloader(t){
	for(i=0;i<t.length;i++){
		if(t[i].getAttribute('srcover')||t[i].getAttribute('srcdown')){
			
			storeimages(t[i]);
			var checker='';
			checker=(t[i].getAttribute('srcover'))?checker+'A':checker+'';
			checker=(t[i].getAttribute('srcdown'))?checker+'B':checker+'';
			
			switch(checker){
			case 'A' : mouseover(t[i]);mouseout(t[i]); break;
			case 'B' : mousedown(t[i]); mouseup2(t[i]); break;
			case 'AB' : mouseover(t[i]);mouseout(t[i]); mousedown(t[i]); mouseup(t[i]); break;
			default : return;			
			}
			
			if(t[i].src){t[i].setAttribute("oldsrc",t[i].src);}
		}
	}
}
function mouseup(t){
	var newmouseup;
	if(t.onmouseup){
		t.oldmouseup=t.onmouseup;
		newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("srcover");this.oldmouseup();}

	}
	else{newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("srcover");}}
	t.onmouseup=newmouseup;
}

function mouseup2(t){
	var newmouseup;
	if(t.onmouseup){
		t.oldmouseup=t.onmouseup;
		newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("oldsrc");this.oldmouseup();}
		}
	else{newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("oldsrc");}}
	t.onmouseup = newmouseup;
}

function mousedown(t){
	var newmousedown;
	if(t.onmousedown){
		t.oldmousedown=t.onmousedown;
		newmousedown=function(){if(mouseisdown==0){this.src=this.getAttribute("srcdown");this.oldmousedown();}}
	}
	else{newmousedown=function(){if(mouseisdown==0){this.src=this.getAttribute("srcdown");}}}
	t.onmousedown=newmousedown;
}

function mouseover(t){
	var newmouseover;
	if(t.onmouseover){
		t.oldmouseover=t.onmouseover;
		newmouseover=function(){this.src=this.getAttribute("srcover");this.oldmouseover();}
	}
	else{newmouseover=function(){this.src=this.getAttribute("srcover");}}
	t.onmouseover=newmouseover;
}

function mouseout(t){
	var newmouseout;
	if(t.onmouseout){
		t.oldmouseout=t.onmouseout;
		newmouseout=function(){this.src=this.getAttribute("oldsrc");this.oldmouseout();}
	}
	else{newmouseout=function(){this.src=this.getAttribute("oldsrc");}}
	t.onmouseout=newmouseout;
}

function storeimages(t){
	var s=(t.getAttribute('src'))?t.getAttribute('src'):'';
	var d=(t.getAttribute('srcdown'))?t.getAttribute('srcdown'):'';
	var o=(t.getAttribute('srcover'))?t.getAttribute('srcover'):'';
	ih.store(s,d,o);
}

function preloadimgsrc(){
	if(!document.getElementById) return;
	var it=document.getElementsByTagName('IMG');
	var it2=document.getElementsByTagName('INPUT');
	preloader(it);
	preloader(it2);
}

if(window.addEventListener){window.addEventListener("load", preloadimgsrc, false);} 
else{
	if(window.attachEvent){window.attachEvent("onload", preloadimgsrc);}
	else{if(document.getElementById){window.onload=preloadimgsrc;}}
}

/*
	fj_win
*/

function imageShow(image,alt){
	posLeft=(screen.availWidth-200)/2;
	posTop=(screen.availHeight-100)/2;
	msg ='<meta http-equiv="imagetoolbar" content="true">';
	msg+='<script>';
	msg+='leftPressed=0;';
	msg+='function ClickCheck(){';
	msg+='if(event.button==1){leftPressed=1;oldMouseX=event.clientX;oldMouseY=event.clientY;}}';
	msg+='document.onmousedown=ClickCheck;';
	msg+='function Release(){leftPressed=0;}';
	msg+='document.onmouseup=Release;';
	msg+='function mouseMoved(){if(leftPressed){mouseX=event.clientX;mouseY=event.clientY;';
	msg+='window.scrollBy(oldMouseX-mouseX,oldMouseY-mouseY);oldMouseX=mouseX;oldMouseY=mouseY;}}';
	msg+='</script>';
	msg+='<html><head><title>'+alt+'</title>';
	msg+='<script>';
	msg+='function CenterImage(){';
	msg+='w=document.images[0].width+26;h=document.images[0].height+29;';
	msg+='scrWidth=screen.availWidth;scrHeight=screen.availHeight;';
	msg+='posLeft=(scrWidth-w)/2;posTop=(scrHeight-h)/2;';
	msg+='if(posLeft<0){posLeft=0;w=scrWidth;}';
	msg+='if(posTop<0){posTop=0;h=scrHeight;}';
	msg+='window.moveTo(posLeft,posTop);window.resizeTo(w,h);';
	msg+='document.getElementById("loading").style.visibility="hidden";';
	msg+='document.getElementById("loading").style.display="none";}';
	msg+='</script>';
	msg+='</head><body onload="CenterImage()">';
	msg+='<div style="position: absolute; left:0px; top:0px;"><img src="'+image+'" ondrag="mouseMoved()" style="cursor: pointer; cursor: hand;"></div>';
	msg+='<div id="loading" style="position: absolute; left: 0px; top: 0px;"><table bgcolor="black" width=200 height=100><td align=center style="font: 11px verdana; color: white;">Loading...</td></table></div>';
	msg+='</body></html>';
	BigImage=window.open('','',"resizable=no,scrollbars=yes,width=216,height=100,left="+posLeft+",top="+posTop);
	BigImage.document.write(msg);
	BigImage.document.close();
}

function winShow(doc,alt,res,scr,men,tol,width,height){
	posLeft=(screen.availWidth-width)/2;
	posTop=(screen.availHeight-height)/2;
	msg='<html><head><title>'+alt+'</title>';
	msg+='<script>';
	msg+='function load(){';
	msg+='scrWidth=screen.availWidth;scrHeight=screen.availHeight;';
	msg+='posLeft=(scrWidth)/2;posTop=(scrHeight)/2;';
	msg+='if(posLeft<0){posLeft=0;}';
	msg+='if(posTop<0){posTop=0;}';
	msg+='window.moveTo(posLeft,posTop);';
	msg+='}';
	msg+='</script>';
	msg+='</head><body onload="load()">';
	msg+='</body></html>';
	BigImage=window.open(doc,'',"resizable="+res+",scrollbars="+scr+",menubar="+men+",toolbar="+tol+",width="+width+",height="+height+",left="+posLeft+",top="+posTop);
	BigImage.document.write(msg);
	BigImage.document.location.href = doc;
	BigImage.document.close();
}

// --> end



