function switchAdvanced () {
	if($('advSearchBox').style.display=="none") {
		$('advSearchBox').style.display="block";
		$('advSearchArrow').removeClassName("close");
		$('advSearchArrow').addClassName("open");
	} else {
		$('advSearchBox').style.display="none";
		$('advSearchArrow').removeClassName("open");
		$('advSearchArrow').addClassName("close");
	}
}

function submitCompanyForm() {
	$('theForm').submit();
}

function submitVotingForm(formid) {
	$(formid).submit();
}


function vsubmitCompanyForm() {
	if($('firm_zone').value.length &&
		$('firm_category_id').value.length &&
		$('firm_title').value.length &&
		$('firm_legal_cat').value.length &&
		$('firm_date').value.length &&
		$('firm_sphere').value.length &&
		$('firm_product').value.length &&
		$('firm_prod_spec').value.length &&
		$('c_address').value.length &&
		$('c_tel').value.length &&
		$('c_persone').value.length &&
		$('r_address').value.length &&
		$('r_bank_name').value.length &&
		$('r_bank_num').value.length &&
		$('r_tax_code').value.length &&
		$('r_persone').value.length &&
		$('r_phone').value.length) {
		
			$('theForm').submit();
	} else {
		$('errorRptComp').style.display="block";
	}
}


function submitFeedbackForm() {
	if($('fullname').value.length && $('email').value.length && $('messageBody').value.length) {
		$('theForm').submit();
	} else {
		$('errorrpt').style.display = "block";
	}
}

function submitSearch() {
	if($('query').value.length > 2) {
		$('searchForm').submit();
	}
}

function popItUp(theItem, item_width, item_height) {
	item_width += 20;
	item_height += 20;
	window.open(theItem.src,'Pictures','width='+item_width+',height='+item_height+',status=0,toolbar=0,location=0,scrollbars=0');
}



























