function regg_verify(){

	if((isWhitespace(document.regg.nume.value)) || (isWhitespace(document.regg.prenume.value)) || (!isEmail(document.regg.email.value)) || (isWhitespace(document.regg.mesaj.value))){

		if(isWhitespace(document.regg.nume.value)){ 

			document.forms['regg'].nume.value = 'Introduceti numele';

			//document.forms['regg'].nume.className = "inputserr";

			document.getElementById('nume').style.color = "#0C293B";

		//	document.getElementById('nume_').className = "cnt_err";

		}
		
		if(isWhitespace(document.regg.prenume.value)){ 

			document.forms['regg'].prenume.value = 'Introduceti prenumele';

		//	document.forms['regg'].prenume.className = "inputserr";

			document.getElementById('prenume').style.color = "#0C293B";

		}
		
		
		if(!isEmail(document.regg.email.value)){ 

			document.forms['regg'].email.value = 'Introduceti adresa de email';

		//	document.forms['regg'].email.className = "inputserr";

			document.getElementById('email').style.color = "#0C293B";

		}
		
		
		if(isWhitespace(document.regg.mesaj.value)){ 

			document.forms['regg'].mesaj.value = 'Scrieti mesajul';
			
			document.getElementById('mesaj').style.color = "#0C293B";

		}

		return false;

	}

	else return true;

}





function clearTxt(txtId){

	if ((document.getElementById(txtId).value == "Introduceti numele") || (document.getElementById(txtId).value == "Introduceti prenumele") || (document.getElementById(txtId).value == "Introduceti adresa de email") || (document.getElementById(txtId).value == "Scrieti mesajul")){

		document.getElementById(txtId).value = "";

		//document.getElementById(txtId).style.color = "#881835";

	}

}




















function contact_email_verify(){
	if((isWhitespace(document.contact_us.company.value)) || (!isAlphabetic(document.contact_us.city.value)) || (!isAlphabetic(document.contact_us.state.value)) || (isWhitespace(document.contact_us.country.value)) || (isWhitespace(document.contact_us.website.value)) || (!isInteger(document.contact_us.phone.value)) || (!isInteger(document.contact_us.fax.value)) || (isWhitespace(document.contact_us.question.value))){
	if(isWhitespace(document.contact_us.company.value)){ document.getElementById('company_txt').style.display = "block"; }
	if(!isAlphabetic(document.contact_us.city.value)){ document.getElementById('city_txt').style.display = "block"; }
	if(!isAlphabetic(document.contact_us.state.value)){ document.getElementById('state_txt').style.display = "block"; }
	if(isWhitespace(document.contact_us.country.value)){ document.getElementById('country_txt').style.display = "block"; }
	if(isWhitespace(document.contact_us.website.value)){ document.getElementById('website_txt').style.display = "block"; }
	if(!isInteger(document.contact_us.phone.value)){ document.getElementById('phone_txt').style.display = "block"; }
	if(!isInteger(document.contact_us.fax.value)){ document.getElementById('fax_txt').style.display = "block"; }
	if(isWhitespace(document.contact_us.question.value)){ document.getElementById('question_txt').style.display = "block"; }
	return false;
	}
	else return true;
}

function MyCshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
	document.getElementById('myc'+i).style.display = "none";
//	document.getElementById('mc'+i).className = "myc";
	}
	document.getElementById('myc'+id).style.display = "block";
//	document.getElementById('mc'+id).className = "mycSel";
}


function MyCPshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
	document.getElementById('mycp'+i).style.display = "none";
//	document.getElementById('mc'+i).className = "myc";
	}
	document.getElementById('mycp'+id).style.display = "block";
//	document.getElementById('mc'+id).className = "mycSel";
}



function MyPFshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
	document.getElementById('mypf'+i).style.display = "none";
//	document.getElementById('mc'+i).className = "myc";
	}
	document.getElementById('mypf'+id).style.display = "block";
//	document.getElementById('mc'+id).className = "mycSel";
}
















function MyBshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
	document.getElementById('myb'+i).style.display = "none";
//	document.getElementById('mc'+i).className = "myc";
	}
	document.getElementById('myb'+id).style.display = "block";
//	document.getElementById('mc'+id).className = "mycSel";
}







function MyCchCls (id, cls)
{
	if (document.getElementById('myc'+id).style.display != "block")
	{
		document.getElementById('mc'+id).className = cls;
	}
}

function MyRshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
		document.getElementById('myr'+i).style.display = "none";
		document.getElementById('mr'+i).className = "myc";
	}
	document.getElementById('myr'+id).style.display = "block";
	document.getElementById('mr'+id).className = "mycSel";
}

function MyRchCls (id, cls)
{
	if (document.getElementById('myr'+id).style.display != "block")
	{
		document.getElementById('mr'+id).className = cls;
	}
}

function MyTshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
		document.getElementById('myt'+i).style.display = "none";
		document.getElementById('mt'+i).className = "myc";
	}
	document.getElementById('myt'+id).style.display = "block";
	document.getElementById('mt'+id).className = "mycSel";
}

function MyTchCls (id, cls)
{
	if (document.getElementById('myt'+id).style.display != "block")
	{
		document.getElementById('mt'+id).className = cls;
	}
}

function MyAshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
		document.getElementById('mya'+i).style.display = "none";
		document.getElementById('ma'+i).className = "myc";
	}
	document.getElementById('mya'+id).style.display = "block";
	document.getElementById('ma'+id).className = "mycSel";
}

function MyAchCls (id, cls)
{
	if (document.getElementById('mya'+id).style.display != "block")
	{
		document.getElementById('ma'+id).className = cls;
	}
}



scrollStep=1

timerTop=""
timerBottom=""

function scrollDivTop(id){
  clearTimeout(timerBottom) 
  document.getElementById(id).scrollTop+=scrollStep
  timerBottom=setTimeout("scrollDivTop('"+id+"')",10)
}

function scrollDivBottom(id){
  clearTimeout(timerTop)
  document.getElementById(id).scrollTop-=scrollStep
  timerTop=setTimeout("scrollDivBottom('"+id+"')",10)
}

function stopMe(){
  clearTimeout(timerBottom) 
  clearTimeout(timerTop)
}




function expandMultDiv (divId)
{
	var e = document.getElementById(divId);
	if (e.className == "hidden")
	{
		e.className = "block";
	}
	else if (e.className == "block")
	{
		e.className = "hidden";
	}
    return(true);
}
function expandDiv (divId, divNr)
{
	var e = document.getElementById(divId);
	if (e.className == "hidden")
	{
		for (i=1;i<=divNr;i++)
		{
			document.getElementById('exp'+i).className = "hidden";
		}
		e.className = "block";
	}
	else if (e.className == "block")
	{
		for (i=1;i<=divNr;i++)
		{
			document.getElementById('exp'+i).className = "hidden";
		}
	}
    return(true);
}
