<!-- 
function trim_field_value(form_name, field){
	var re = /( )*/;
	var the_form = document.forms[form_name];
	var the_value =  eval('the_form.' + field + '.value');
	var trim_value = the_value.replace(re, "");

	return trim_value;
}

function check_mail_validity(form_name, mail){
	var reg=/^[a-z0-9]+([-_\.]?[a-z0-9])+@[a-z0-9]+([-_\.]?[a-z0-9])+\.[a-z]{2,4}?$/;
	var the_form = document.forms[form_name];
	var text = eval('the_form.' + mail + '.value');
	var result = text.match(reg);
	
	return result;
}

function checkFeedbackForm(strCheckFirstName, strCheckEmail, strValidEmail)
{
	var obj_form = document.forms['FeedbackForm'];

	trim_name_bg = trim_field_value('FeedbackForm', 'f_name');	
	if (!trim_name_bg){
		alert(strCheckFirstName);
		obj_form.f_name.focus();
		return false;
	}
	
	trim_email = trim_field_value('FeedbackForm', 'f_email');	
	if (!trim_email){
		alert(strCheckEmail);
		obj_form.f_email.focus();
		return false;
	} else 
	{
		valid_email = check_mail_validity('FeedbackForm', 'f_email')
		if (!valid_email) {
			alert(strValidEmail);
			obj_form.f_email.focus();
			return false;
		}
	}
}

function checkRequestClientsForm(strCheckContactName, strCheckCompany, strCheckPhone)
{
	var obj_form = document.forms['RequestClientsForm'];

	trim_name_bg = trim_field_value('RequestClientsForm', 'f_contact_name');	
	if (!trim_name_bg){
		alert(strCheckContactName);
		obj_form.f_contact_name.focus();
		return false;
	}
	
	trim_name_bg = trim_field_value('RequestClientsForm', 'f_company');	
	if (!trim_name_bg){
		alert(strCheckCompany);
		obj_form.f_company.focus();
		return false;
	}
	
	trim_name_bg = trim_field_value('RequestClientsForm', 'f_phone');	
	if (!trim_name_bg){
		alert(strCheckPhone);
		obj_form.f_phone.focus();
		return false;
	}
	
}

function checkRequestPartnersForm(strCheckContactName, strCheckCompany, strCheckEmail, strValidEmail, strCheckPhone, strCheckFax, strCheckStores, strCheckActivity, strCheckRequest)
{
	var obj_form = document.forms['RequestPartnersForm'];
	
	trim_name_bg = trim_field_value('RequestPartnersForm', 'f_company');	
	if (!trim_name_bg){
		alert(strCheckCompany);
		obj_form.f_company.focus();
		return false;
	}

	trim_name_bg = trim_field_value('RequestPartnersForm', 'f_contact_name');	
	if (!trim_name_bg){
		alert(strCheckContactName);
		obj_form.f_contact_name.focus();
		return false;
	}
	
	trim_email = trim_field_value('RequestPartnersForm', 'f_email');	
	if (!trim_email){
		alert(strCheckEmail);
		obj_form.f_email.focus();
		return false;
	} else 
	{
		valid_email = check_mail_validity('RequestPartnersForm', 'f_email')
		if (!valid_email) {
			alert(strValidEmail);
			obj_form.f_email.focus();
			return false;
		}
	}
	
	trim_name_bg = trim_field_value('RequestPartnersForm', 'f_phone');	
	if (!trim_name_bg){
		alert(strCheckPhone);
		obj_form.f_phone.focus();
		return false;
	}
	
	trim_name_bg = trim_field_value('RequestPartnersForm', 'f_fax');	
	if (!trim_name_bg){
		alert(strCheckFax);
		obj_form.f_fax.focus();
		return false;
	}
	
	trim_name_bg = trim_field_value('RequestPartnersForm', 'f_stores');	
	if (!trim_name_bg){
		alert(strCheckStores);
		obj_form.f_stores.focus();
		return false;
	}
	
	trim_name_bg = trim_field_value('RequestPartnersForm', 'f_activity');	
	if (!trim_name_bg){
		alert(strCheckActivity);
		obj_form.f_activity.focus();
		return false;
	}
	
	trim_name_bg = trim_field_value('RequestPartnersForm', 'f_request');	
	if (!trim_name_bg){
		alert(strCheckRequest);
		obj_form.f_request.focus();
		return false;
	}
	
}

 function windowOpener (fileName) 
 {
	newW = window.open(fileName, "gallery_big","scrollbars=yes,resizable=yes,width=800,height=600");
	if (!newW.closed)
	{
		newW.focus();
	}
}



	
// -->