function changePageLinks(pId) {
	return;
	var node=document.getElementById('pagelinks');
	var arr=node.getElementsByTagName("div");
	for (var i=0;i<arr.length;i++) {
		if (arr[i].style.display!='none' && arr[i].id!=pId) arr[i].style.display='none';
		if (arr[i].id==pId) arr[i].style.display='block';
	}
}


function reg_form() {


	var fname=document.getElementById('fname').value;
	var lname=document.getElementById('lname').value;
	var email=document.getElementById('mail').value;
	var firm=document.getElementById('firm').value;
	var position=document.getElementById('position').value;
	var branch=document.getElementById('branch').value;
	
	var str=document.getElementById('str').value;
	var pk=document.getElementById('pk').value;
	var place=document.getElementById('place').value;
	
	var tel=document.getElementById('tel').value;
	var fax=document.getElementById('fax').value;
	var web=document.getElementById('web').value;
	var mail=document.getElementById('mail').value;
	
	
	if (!fname || fname=='') { alert('Моля попълнете "Име"!'); return;}
	if (!lname || lname=='') { alert('Моля попълнете "Фамилия"!'); return;}
	if (!firm || firm=='') { alert('Моля попълнете "Фирма/Организация"!'); return;}
	
	if ((!email || email=='') || !((email.indexOf(".") > 2) && (email.indexOf("@") > 0))) { alert('Моля попълнете правилно "e-mail"!'); return;}
	if (!tel || tel=='') { alert('Моля попълнете правилно "Телефон"!'); return;}
	if (!fax || fax=='') { alert('Моля попълнете правилно "Факс"!'); return;}
	
	if (!str || str=='') { alert('Моля попълнете правилно "улица"!'); return;}
	if (!pk || pk=='') { alert('Моля попълнете правилно "Пощенски код"!'); return;}
	if (!place || place=='') { alert('Моля попълнете правилно "Населенео място"!'); return;}
		
	document.form.submit();
}

function contacts_form() {


	var fname=document.getElementById('fname').value;
	var lname=document.getElementById('lname').value;
	var email=document.getElementById('mail').value;	
	var comment=document.getElementById('comment').value;
	
	
	if (!fname || fname=='') { alert('Моля попълнете "Име"!'); return;}
	if (!lname || lname=='') { alert('Моля попълнете "Фамилия"!'); return;}	
	if ((!email || email=='') || !((email.indexOf(".") > 2) && (email.indexOf("@") > 0))) { alert('Моля попълнете правилно "e-mail"!'); return;}
	if (!comment || comment=='') { alert('Моля попълнете правилно "Въпрос/Коментар"!'); return;}
		
	document.form.submit();
}


function openPartners(test)
{	
	window.open ("./content/_partners.html#"+test,"Партньори","status=1, resizable=0, scrollbars=1, height=600, width=500");
	
}

function changeAnchor(test)
{	
	document.location.href="./_partners.html#"+test;
	
}



//~ function setHeight(height) {
	//~ var main=document.getElementById('main');
	//~ if (height==0) {
		//~ var contentcell=document.getElementById('contentcell');
		//~ var leftcell=document.getElementById('leftcell');
		
		//~ alert(contentcell.offsetHeight);
		//~ alert(leftcell.offsetHeight);
		//~ if (contentcell.offsetHeight>900)
			//~ main.style.height=contentcell.offsetHeight;
		//~ else 
			//~ main.style.height=900;
	//~ } else {
		//~ main.style.height=height;
		
	
	//~ }
//~ }
