<!--
function send_form(){
	var vl_begin_month_year = window.document.getElementById("vf_date_begin_month").value;
	var vl_end_month_year = window.document.getElementById("vf_date_end_month").value;
	var vl_arr_begin = vl_begin_month_year.split(',,');
	var vl_arr_end = vl_end_month_year.split(',,');
	window.document.getElementById("vf_date_begin_month_hidden").value = vl_arr_begin[0];
	window.document.getElementById("vf_date_begin_year_hidden").value = vl_arr_begin[1];
	window.document.getElementById("vf_date_end_month_hidden").value = vl_arr_end[0];
	window.document.getElementById("vf_date_end_year_hidden").value = vl_arr_end[1];
	window.document.getElementById("form_select").submit();
	}

//This function is similar to previous, but if I use the first in the second form dont work!!!
function send_form2(){
	var vl_begin_month_year = window.document.getElementById("vf_date_begin_month").value;
	var vl_end_month_year = window.document.getElementById("vf_date_end_month").value;
	var vl_arr_begin = vl_begin_month_year.split(',,');
	var vl_arr_end = vl_end_month_year.split(',,');
	window.document.getElementById("vf_date_begin_month_hidden2").value = vl_arr_begin[0];
	window.document.getElementById("vf_date_begin_year_hidden2").value = vl_arr_begin[1];
	window.document.getElementById("vf_date_end_month_hidden2").value = vl_arr_end[0];
	window.document.getElementById("vf_date_end_year_hidden2").value = vl_arr_end[1];
	window.document.getElementById("form_select2").submit();
	}	
	
function send_form_company(vp_id_company){
	window.document.getElementById("vf_id_company").value = vp_id_company;
	window.document.getElementById("vf_form_company").submit();
	}
	

function change_drop(){
	id = window.document.getElementById("vf_pick_location").value;
	var list= window.document.getElementById("vf_drop_location");
 		for(var i=0;i < list.length;i++){
  			if(list.options[i].value==id){
   				list.options[i].selected = true;
   				}else{
   				list.options[i].selected = false;	
   				}
  			}
	}
	
//This function is similar to previous, but if I use the first in the second form dont work!!!	
function change_drop2(){
	id = window.document.getElementById("vf_pick_location2").value;
	var list= window.document.getElementById("vf_drop_location2");
 		for(var i=0;i < list.length;i++){
  			if(list.options[i].value==id){
   				list.options[i].selected = true;
   				}else{
   				list.options[i].selected = false;	
   				}
  			}
	}
	
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];}}
}
//-->
