
 window.defaultStatus="www.fair.pl";
 ptr_img=new Image;
 empty_img=new Image;
 ptr_img.src="graphics/mimg/button_ptr.gif";
 empty_img.src="graphics/mimg/spacer.gif";

nn=(document.layers)? true : false;
ie=(document.all)? true : false;

function clear_najblizsze()
{
	var obj = document.getElementById("najblizsze");
	obj.checked = false;
}


function get_more_imprezy(month,year,target_struct)
{
	if (typeof(var_for_check)!='undefined') {   
	
	document.flang.fairsource.value = document.flang.fairtarget.value;
	document.flang.fairtarget.value = target_struct;
	document.flang.fairaction.value = '';
	
	var month2;
	
	if (month.length == 1) month2 = '0'+month;
	else month2 = month;		
	
	document.flang.data_targow.value = month2 + year;
	
	document.flang.nazwa.value  = '';
	document.flang.miasto.value = '';
	document.flang.branza.value = '';
	
	document.flang.page_num.value=1;
	
	document.flang.submit();
	}
}


function get_object_info(obj_id,obj_kod) {

 if (typeof(var_for_check)!='undefined') {    
 
  document.flang.temp_source.value=document.flang.fairsource.value;
  document.flang.fairsource.value=document.flang.fairtarget.value;
  document.flang.sr.value=0;
	 
  document.flang.fairaction.value="info_struct";  
  
  document.flang.obj_id.value=obj_id;
  document.flang.obj_kod.value=obj_kod;
 
  
  document.flang.p.value=-1;
  //document.flang.page_num.value=""; 
  //document.flang.id_organi.value=""; 
  
  
  
  document.flang.submit()
 }
 }
  

function inicjuj() {	
	
	/*
	if(nn) {
  		document.captureEvents(Event.MouseClick);
	}
	document.onclick = mouseKlik;
*/
        
}

 function fsubmit(vlang) {

  if (typeof(var_for_check)!='undefined') {
  	if (vlang=="pol") { document.flang.verpol.value=1;}
	else  { document.flang.verpol.value=0;}
	
	document.flang.submit();
  }	
 }

function fdddd(pnum) {
	document.flang.page_num.value = pnum;
    document.flang.submit();
}

 function cennik_submit(varg, p) {

 if (typeof(var_for_check)!='undefined') {
  document.flang.fairsource.value=document.flang.fairtarget.value;
  document.flang.fairtarget.value=varg; 
  document.flang.page_num.value=""; 
  document.flang.p.value=p; 
  document.flang.id_organi.value=""; 
  document.flang.submit()
 }
 }   
 function przeslij_submit(varg, p) {

 if (typeof(var_for_check)!='undefined') {
  document.flang.fairsource.value=document.flang.fairtarget.value;
  document.flang.fairtarget.value=varg; 
  document.flang.page_num.value=""; 
  document.flang.p.value=p; 
  document.flang.id_organi.value=""; 
  document.flang.submit()
 }
 }   
 function choice_submit(varg, vargoption) 
 {
  	if (typeof(var_for_check)!='undefined') 
	{
		 document.flang.fairaction.value="";
		 document.flang.menu_param.value='';
		 document.flang.firm_type.value='';
		 document.flang.zkonf.value='';
		 document.flang.rodzaj.value='';
		 document.flang.kategoria.value='';
		 document.flang.history.value='';
		  
		  document.flang.fairtarget.value=varg; 
		  document.flang.targi.value=vargoption; 
		  document.flang.page_num.value=""; 
		  document.flang.data_targow.value=""; 
		  document.flang.branza.value=""; 
		  document.flang.id_lokalizacji.value=""; 
		  //document.flang.p.value=0; 
		  document.flang.form_action.value = 'show_form';
		  document.flang.sr.value=0;
  
			if (typeof(vargoption)!='undefined')
			{
			  document.flang.menu_param.value = vargoption;
			  document.flang.firm_type.value = vargoption;
			  
			  if (vargoption=='zaplecze')
				  document.flang.zkonf.value=true;
			}
			
			document.flang.miasto.value="";
			document.flang.nazwa.value="";
			document.flang.najblizsze.value="";
		  
			document.flang.polozenie.value="";
			document.flang.kuchnia.value="";
			document.flang.ulica.value="";
			  
			document.flang.kraj.value = "";
			 
			document.flang.kod_doc.value="";
			document.flang.desired_art_id.value="";
			document.flang.desired_art_kod.value="";
			document.flang.id_organi.value=""; 
			document.flang.hotele_jakie.value=vargoption;  
	  
			  //alert(document.flang.verpol.value);
			
			if (varg=='cennik_reklam')
			   document.flang.verpol.value = vargoption;	 
			
			if (varg=='przeslij_dane')
			   document.flang.verpol.value = vargoption;
			
			
			   
			 document.flang.art_target_box.value="";
			 

		 
			 document.flang.submit()
	 }
 }   

 function direct_search(varg, p_num, id_organi, miasto) {
	 
 if (typeof(var_for_check)!='undefined') {
  document.flang.fairtarget.value=varg; 
  document.flang.targi.value="P"; 
  document.flang.miasto.value=miasto; 
  document.flang.page_num.value=p_num; 
  document.flang.p.value=""; 
  document.flang.id_organi.value=id_organi;
  document.flang.sr.value=1;
  document.flang.najblizsze.value='on';
  document.flang.submit()
  }
 } 

 function search_per_organi(varg, id_organi,lPZ) {
	 
window.alert(typeof(var_for_check)!='undefined');
 if (typeof(var_for_check)!='undefined') {
window.alert(lPZ==undefined);
  if (typeof(lPZ)=='undefined') {
   document.flang.targi.value="P";
   document.flang.PZ.value="P";  
 }
 else {  document.flang.PZ.value=lPZ;
	document.flang.targi.value=lPZ; }

  document.flang.fairtarget.value=varg; 
  document.flang.page_num.value=""; 
  document.flang.p.value=""; 
  document.flang.id_organi.value=id_organi;
  document.flang.sr.value=1;
  document.flang.page_num.value=1;
  document.flang.najblizsze.value='on';
  document.flang.miasto.value='';
  document.flang.nazwa.value='';
  document.flang.ulica.value='';
  document.flang.polozenie.value='';
  document.flang.submit()
 }
 } 

 function reklama_submit(varg) {

 if (typeof(var_for_check)!='undefined') {

  document.flang.fairtarget.value="cennikreklam"; 
  document.flang.p.value=varg; 
  document.flang.page_num.value=""; 
  document.flang.id_organi.value=""; 
  document.flang.submit()
 }
 }   

 function get_details(pos_id) {
 
  document.flang.fairaction.value="struct_by_article_id";
  document.flang.p.value=pos_id;
	 
  get_art();
 }
 
 function get_art()
 {
 
if (typeof(var_for_check)!='undefined') {
  
	document.flang.fairsource.value=document.flang.fairtarget.value;  
  //document.flang.fairtarget.value=""; //docelowo dla wszystkich   
  //document.flang.page_num.value=""; 
  //document.flang.id_organi.value=""; 
  document.flang.obj_id.value="";
  document.flang.obj_kod.value="";
  document.flang.submit()
 
 }
 }

 
 function get_art_kod_doc(kod_doc)
 {
	 document.flang.kod_doc.value = kod_doc;
	 document.flang.fairaction.value = "struct_by_kod_doc";
	 document.flang.menu_param.value = "";
	 
	 get_art();
 }
 
 function get_extended_doc(kod_doc) {

 if (typeof(var_for_check)!='undefined') {

  document.flang.fairtarget.value="targiart"; //docelowo dla wszystkich
  document.flang.kod_doc.value=kod_doc;
  document.flang.p.value=-1;
  document.flang.obj_id.value="";
  document.flang.obj_kod.value="";
  document.flang.submit()

 }
 }

 function get_extdoc_byobjid(obj_id,obj_kod) {

 if (typeof(var_for_check)!='undefined') {
  
  document.flang.fairtarget.value="hoteleart"; //docelowo dla wszystkich
  document.flang.obj_id.value=obj_id;
  document.flang.obj_kod.value=obj_kod;
  document.flang.p.value=-1;
//  document.flang.page_num.value=""; 
  document.flang.id_organi.value=""; 
  document.flang.submit()
 }
 }


 function get_extdoc_byobjid_rest(obj_id,obj_kod) {

 if (typeof(var_for_check)!='undefined') 
 {
	  document.flang.fairtarget.value="restauracjeart"; //docelowo dla wszystkich
	  document.flang.obj_id.value=obj_id;
	  document.flang.obj_kod.value=obj_kod;
	  document.flang.p.value=-1;
	//  document.flang.page_num.value=""; 
	  document.flang.id_organi.value=""; 
	  document.flang.submit()
 }
}


 

 function get_extdoc_byobjid_obsl(obj_id,obj_kod) {

 if (typeof(var_for_check)!='undefined') {
  
  document.flang.fairtarget.value="obslugaart"; //docelowo dla wszystkich
  document.flang.obj_id.value=obj_id;
  document.flang.obj_kod.value=obj_kod;
  document.flang.p.value=-1;
//  document.flang.page_num.value=""; 
  document.flang.id_organi.value=""; 
  document.flang.submit()
 }
 }

 function bannerclick(bannerlink) {
 if (typeof(var_for_check)!='undefined') {

	open_wind("main/banner/getbannercontent.php?bannerlink="+bannerlink,800,600);

 }
 }

 function linkclick(vlink) 
 {
	 if (typeof(var_for_check)!='undefined') 
	 {
		open_wind("main/gettolink.php?url="+escape(vlink),800,600);
	
	 }
 }

 function SetStatus(varg,vptr) {
 if (typeof(var_for_check)!='undefined') {
  	window.status=varg;
        if (typeof(vptr)=="string") {
         obj=eval("document."+vptr);
         obj.src=ptr_img.src;
        }
	return true;
 }
 }

 function ClearStatus(vptr) {
 if (typeof(var_for_check)!='undefined') {
  	window.status="";
        if (typeof(vptr)=="string") {
         obj=eval("document."+vptr);
         obj.src=empty_img.src;
        }
	return true;
 }
 }
 
 
 function back2sinterf() 
 {

	if (typeof(var_for_check)!='undefined') 
	{
  		var history_list  	= document.flang.history.value;
		var history_table 	= history_list.split(',');
		var history_last 	= history_table.length - 1; 
		
		//document.flang.fairtarget.value=document.flang.fairsource.value;
		document.flang.fairtarget.value = history_table[(history_last!=0 ? history_last - 1 : history_last)];
		document.flang.fairsource.value=document.flang.temp_source.value;
	
		if (document.flang.powrot_listing.value == 1)
		{
			document.flang.miasto.value=document.flang.temp_miasto.value;	
			document.flang.powrot_listing.value=0;	
		}
	 
		document.flang.sr.value=0;
		document.flang.fairaction.value="";		
	
		document.flang.submit();
    }//if
 }

 function test()
 {
	 //alert('TEST_G');
 }
 
 function open_dlgs(vcontent, w, h) {

 	 if (typeof(var_for_check)!='undefined') {
 wnd=window.open(vcontent,"",'width='+w+',height='+h+', status=0,toolbars=0,scrollbars=1');
 //wnd.document.write(vcontent);
 //wnd.document.close();

 }
 }

 function open_wind(vcontent, w, h) {

 if (typeof(var_for_check)!='undefined') {
 wnd=window.open(vcontent,"_blank",'width='+w+',height='+h+',menubar=1,status=1,toolbar=1,scrollbars=1,resizable=1');
 //wnd.document.write(vcontent);
 //wnd.document.close();

 }

 } 
 
 function wyszukaj()
	{
		document.fwyszukaj.fairtarget.value="hotele";
		document.fwyszukaj.submit();
	}
	
/////////////////////////////////////////////////////////////////
// LinkGoBack - generuje link powrotny z artykulu
/////////////////////////////////////////////////////////////////

function LinkGoBack() {

  document.flang.fairtarget.value=document.flang.fairsource.value;  
  
  document.flang.fairaction.value="";
  
  document.flang.page_num.value=""; 
  document.flang.id_organi.value=""; 
  document.flang.obj_id.value="";
  document.flang.obj_kod.value="";
  document.flang.submit()
 
 }


/////////////////////////////////////////////////////////////////
// LinkGoto - generuje link ogolny do struktury o podanej nazwie
/////////////////////////////////////////////////////////////////

function LinkGoto(struct_name) {
 
  if (typeof(var_for_check)!='undefined') {

  document.flang.fairsource.value=document.flang.fairtarget.value;	 
  document.flang.fairtarget.value=struct_name;  
  
  document.flang.fairaction.value="";
  document.flang.p.value=pos_id;
  document.flang.page_num.value=""; 
  document.flang.id_organi.value=""; 
  document.flang.obj_id.value="";
  document.flang.obj_kod.value="";
  document.flang.submit()
 
 }
 }
 
////////////////////////////////////////////////////////////////////
// general_search_submit - dla wyszukiwarki ogólnej
///////////////////////////////////////////////////////////////////
function get_object(name, type)
{
	var collection = document.getElementsByName(name);
	var object     = null;

	for (i=0;i<collection.length;i++)
	{
		if (type.substr(0,1)=="!")
		{	
			if (collection[i].type != type.substr(1))
				object = collection[i];
		}
		else
		{
			if (collection[i].type == type)
				object = collection[i];
		}
	}
	
	return object;
}


function general_search_submit(target_struct_symbol) 
{
	var verpol = document.getElementById("verpol");
	
	var message = "Conajmniej jedno kryterium musi zostać określone...!";
	var result  = false;
	
	switch(target_struct_symbol)
	{
	  /*
    case 'targi_listing':
               		  if (document.flang.targi.value!=="Z") vfield="miasto";  
			  else vfield="id_lokalizacji"; 
                          k=eval("document.flang."+vfield);
       			  document.flang.branza.value      = document.fsearch.branza.value;  
			  document.flang.data_targow.value = document.fsearch.data_targow.value;

			  if (document.fsearch.najblizsze.checked == true)
			    {
				    document.flang.najblizsze.value = 'on';
			    }
			  else
			    {	  
				    document.flang.najblizsze.value = 'off';
			    }

			 document.flang.PZ.value = document.fsearch.PZ.value;
			 break;  
 */
    	case 'hotele_listing' :
	
		    /*var nazwa = document.getElementById("nazwa");
			var ulica   = document.getElementById("ulica");
			var polozenie = document.getElementById("polozenie");
			var kategoria = document.getElementById("kategoria");
			*/
			var nazwa = get_object("nazwa","!hidden");
			var ulica = get_object("ulica","!hidden");
			var polozenie = get_object("polozenie","!hidden");
			var kategoria = get_object("kategoria","!hidden");
			
			result = (nazwa.value=="" && ulica.value=="" && polozenie.value=="" && kategoria.value=="");
		
 			 document.flang.ulica.value = document.fsearch.ulica.value;
			 
			 if (document.fsearch.zkonf.checked == true)
			   {
				    document.flang.zkonf.value = true;
			   }
			 else
			   {	  
				    document.flang.zkonf.value = false;
			   }
			 document.flang.polozenie.value = document.fsearch.polozenie.value;
			 document.flang.kategoria.value = document.fsearch.kategoria.value;
			 break;

		case 'restauracje_listing' :

			/*var nazwa = document.getElementById("nazwa");	
			var kuchnia = document.getElementById("kuchnia");
			var ulica   = document.getElementById("ulica");
			var polozenie = document.getElementById("polozenie");
			*/
			var nazwa = get_object("nazwa","!hidden");
			var kuchnia = get_object("kuchnia","!hidden");
			var ulica = get_object("ulica","!hidden");
			var polozenie = get_object("polozenie","!hidden");
			
			result = (nazwa.value=="" && kuchnia.value=="" && ulica.value=="" && polozenie.value=="");
		
  			document.flang.ulica.value = document.fsearch.ulica.value;
			document.flang.kuchnia.value       = document.fsearch.kuchnia.value;			                       	
			document.flang.polozenie.value = document.fsearch.polozenie.value;
			document.flang.kategoria.value='';
			document.flang.rodzaj.value='';
			 
			 break;

		case 'firmy_listing' :
			/*var nazwa = document.getElementById("nazwa");
			var firm_type = document.getElementById("firm_type");
			*/
			var nazwa = get_object("nazwa","!hidden");
			var firm_type = get_object("firm_type","!hidden");
			
			result = (nazwa.value=="" && firm_type.value=="");
			
			document.flang.firm_type.value = document.fsearch.firm_type.value;
			document.flang.nazwa.value = document.fsearch.nazwa.value;
			document.flang.miasto.value = document.fsearch.miasto.value;
			break;
			 
		default :    // dla imprez !
  
			/*var nazwa  = document.getElementById("nazwa");
			var branza = document.getElementById("branza");
			var data_targow = document.getElementById("data_targow");
			var kraj = document.getElementById("kraj");
			var najblizsze = document.getElementById("najblizsze");
			*/
			var nazwa = get_object("nazwa","!hidden");
			var branza = get_object("branza","!hidden");
			var data_targow = get_object("data_targow","!hidden");
			var kraj = get_object("kraj","!hidden");
			var najblizsze = get_object("najblizsze","!hidden");
			
			result = (nazwa.value=="" && branza.value=="" && data_targow.value=="" && !najblizsze.checked);
			
		   if (document.flang.targi.value!=="Z") 
				vfield="miasto";  
		   else 
			   vfield="kraj"; 
		   k=eval("document.flang."+vfield);
		   document.flang.branza.value      = document.fsearch.branza.value;  
		   document.flang.data_targow.value = document.fsearch.data_targow.value;

		  if (document.fsearch.najblizsze.checked == true)
			{
				document.flang.najblizsze.value = 'on';
			}
		  else
			{	  
				document.flang.najblizsze.value = 'off';
			}

		 document.flang.PZ.value = document.fsearch.PZ.value;
		 break;  
    }

  
	 document.flang.nazwa.value       = document.fsearch.nazwa.value;
	 
	 if (typeof(document.fsearch.miasto) != 'undefined')
	 {
		 document.flang.miasto.value     = document.fsearch.miasto.value;
		 result = (result && (document.fsearch.miasto.value == ""));
	 }
	 
	 document.flang.page_num.value = document.fsearch.page_num.value;
	 
	 if (typeof(document.fsearch.id_lokalizacji) != 'undefined')
	 {
		 document.flang.kraj.value = document.fsearch.id_lokalizacji.value;
		 result = (result && (document.fsearch.id_lokalizacji.value==""));
	 }
	 
	 if (typeof(document.fsearch.kraj) != 'undefined')
	 {
		 document.flang.kraj.value = document.fsearch.kraj.value;
		 result = (result && (document.fsearch.kraj.value==""));
	 }
	 
 	 document.flang.fairsource.value=document.flang.fairtarget.value; 
	 document.flang.fairtarget.value=target_struct_symbol;
	 
	 document.flang.fairaction.value="";
	 
	 document.flang.miastazag.value=0;
	 document.flang.org_request.value = 0;
	 
	 if (result)
		 alert(message);
	 else
		 document.flang.submit();
}

function enter_submit(object)
{
	alert(navigator.appName);
	window.captureEvents(Event.KEYPRESS);
	object.onkeyPress=hit();
}

function hit()
{
	alert('HIT');
}

function submit_test()
{
	alert('SUBMIT TEST');
	alert(EVENT.KEYPRESS);
	return false;
}

/////////////////////////////////////////////////////////////////////////

 function fair_month_submit(data, strukt_docelowa)
 {	 
  	 document.flang.data_targow.value = data;
	 document.flang.page_num.value = 1;
	 document.flang.fairsource.value=document.flang.fairtarget.value; 
	 document.flang.fairtarget.value=strukt_docelowa;
	 
	 document.flang.fairaction.value='';
	 
	 document.flang.submit();   
 }

 
 function obiekt_szukaj(kategoria,rodzaj,zkonf) 
 {
  	 	 
  var strukt_docelowa='hotele_listing';	 
	 
  document.flang.kategoria.value=kategoria;
  document.flang.rodzaj.value=rodzaj;
  document.flang.zkonf.value=zkonf;
  
  document.flang.miasto.value='';
  document.flang.polozenie.value='';
  document.flang.kraj.value='';
  document.flang.kuchnia.value='';
  
  document.flang.fairaction.value='';    
  
  
  var lanc = document.flang.fairtarget.value;
  var tab = lanc.split("_");
  var ind = tab.length-1;
  
  
  if (tab[ind] != 'listing') 
  {
    document.flang.temp_source.value=document.flang.fairsource.value;
    document.flang.fairsource.value=document.flang.fairtarget.value; 
  }
   
  document.flang.fairtarget.value=strukt_docelowa;
    
  
  document.flang.page_num.value = 1;        
  
  document.flang.submit();  
 }
 
 function fill_and_submit(miasto_tmp,polozenie,kraj,strukt_docelowa) 
 { 	 	 
  document.flang.nazwa.value='';
  document.flang.kuchnia.value='';
  document.flang.rodzaj.value='';
  document.flang.kategoria.value='';
  document.flang.zkonf.value='';
      
  document.flang.miasto.value=miasto_tmp;
  document.flang.polozenie.value=polozenie;
  document.flang.kraj.value=kraj;
  
  document.flang.fairaction.value='';
  document.flang.menu_param.value='';
  
  
  var lanc = document.flang.fairtarget.value;
  var tab = lanc.split("_");
  var ind = tab.length-1;
  
  
  if (tab[ind] != 'listing') 
  {
    document.flang.temp_source.value=document.flang.fairsource.value;
    document.flang.fairsource.value=document.flang.fairtarget.value; 
  }
  
  //document.flang.temp_source.value=document.flang.fairsource.value;
  //document.flang.fairsource.value=document.flang.fairtarget.value; 
  document.flang.fairtarget.value=strukt_docelowa;
      
  document.flang.page_num.value = 1; 
  //document.fsearch.page_num.value;
   
  //alert("***");
  document.flang.submit();
 }

 
 function organizator_submit(id, target_struct)
 {
	 document.flang.fairaction.value='';
	 document.flang.miastazag.value='';
	 
	 document.flang.org_request.value = 1;
	 document.flang.page_num.value  = 1;
	 document.flang.id_organi.value = id;
	 document.flang.fairsource.value = document.flang.fairtarget.value;
	 document.flang.fairtarget.value = target_struct;
	 document.flang.submit();   	
}
 
 
 function fill_and_submit2(miasto_tmp,polozenie,kraj,strukt_docelowa) 
 { 	 	 
  window.opener.flang.miasto.value=miasto_tmp;
  window.opener.flang.polozenie.value=polozenie;
  window.opener.flang.kraj.value=kraj;
  window.opener.flang.fairaction.value='';    
  window.opener.flang.temp_source.value=window.opener.flang.fairsource.value;
  window.opener.flang.fairsource.value=window.opener.flang.fairtarget.value;
  window.opener.flang.fairtarget.value=strukt_docelowa;
  
  window.opener.flang.page_num.value = 1;

  //document.fsearch.page_num.value;
   
  //alert("***");
  
  window.opener.flang.target="_blank";
  window.opener.flang.submit();
  window.opener.flang.target='_self';
 }
 
 
 function fill_and_submit_rest(kuchnia,strukt_docelowa) 
 { 	 
  document.flang.kuchnia.value=kuchnia;  
  document.flang.miasto.value='';
  document.flang.polozenie.value='';
  document.flang.kraj.value='';
  document.flang.fairaction.value='';
  
  var lanc = document.flang.fairtarget.value;
  var tab = lanc.split("_");
  var ind = tab.length-1;
  
  if (tab[ind] != 'listing') 
  {
    document.flang.temp_source.value=document.flang.fairsource.value;
    document.flang.fairsource.value=document.flang.fairtarget.value; 
  }
  
  
  document.flang.fairtarget.value=strukt_docelowa;
  
  //document.flang.page_num.value = document.fsearch.page_num.value;
  document.flang.page_num.value = 1;
  
  document.flang.submit();   
 }
 
 function imp_branze_submit(branza, target_struct)
 {
  document.flang.nazwa.value ='';	 
  document.flang.miasto.value ='';
  document.flang.data_targow.value ='';
  
  document.flang.branza.value = branza;
  
  document.flang.fairsource.value = document.flang.fairtarget.value;
  document.flang.fairtarget.value = target_struct;
		 
  document.flang.fairaction.value='';
  document.flang.page_num.value = 1;	 	 	 
  
  document.flang.najblizsze.value = 'on';
  
  document.flang.submit();
  
 }
 
 function fill_and_submit_firms(kategoria, miasto, nazwa, target_struct)
 {	 	
	 
	 document.flang.firm_type.value = kategoria;
	 document.flang.miasto.value = miasto;
	 document.flang.nazwa.value = nazwa;
	 
	
	 
	 document.flang.fairsource.value = document.flang.fairtarget.value;
	 document.flang.fairtarget.value = target_struct;
	
	 
	 document.flang.fairaction.value='';
	 document.flang.page_num.value = 1;
	 
	 
	 
	 document.flang.submit();
 }

