function JSDept(ParamSite,ParamCategoryLabel,ParamDeptName)
	{
var curForm = document.getElementById('form_map_id');
curForm.ParamSite.value = ParamSite;
curForm.ParamCategoryLabel.value = ParamCategoryLabel;
curForm.ParamDeptName.value = ParamDeptName;
curForm.submit();
	}


function JSShoppingUrl(ParamUrlOut,ParamProductId)
	{

cspHttpServerMethod("7SrogqwBjMUtxHTVS4gHjS4PT0PoxES8jxokFrvTXAbJhsen5d$XbtuvLh56OPSB_g_zHG3V4_SZwT_7e9BIbQTnnK8BEjrMdKcEfkPO$9xkhM_kmutJzWFVvLTpSvpeqGbPOgZvWu5QbLOAHVBckpyfYiomzPV9Ge$9yoPGMHk-",ParamUrlOut,ParamProductId)
	}


function JSVisitUrlOut(ParamUrlOut, ParamProductId)
	{

cspHttpServerMethod("3vrMh7bTW05EBA8aorbu15A69o8rZEtJjH9k8MdcpJsKZk4VeyOGbSq2OUb8HuoJy7VjPtfWtQg6yBeMtjkJxwQTaibsgi_ikgvMFoa1Nhw-",ParamUrlOut,ParamProductId)
	}

function GetNbConnected()
	{


	}

function submitenter(Paramfield, ParamEvent, ParamadSenseKeywords)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (ParamEvent) keycode = ParamEvent.which;
else return true;
if (keycode == 13)
  {
  SetSessionAdSenseSearch(Paramfield, ParamadSenseKeywords);
   return false;
   }
else
   return true;
}

function SetSessionAdSenseSearch(Paramfield, ParamadSenseKeywords)
{
cspHttpServerMethod("SF0jVkjdkyiB9MVRR1TO8GdcA1lfZ7Z09jTIPomGgv9HOssBoFo7Jbw0WKSMCVv8YV4LrfQaqqDwws3iGxsnv7vYQTMoia5G5wcqUvOfvO3doBHI4TvAej$QifYi6POt",ParamadSenseKeywords)
Paramfield.form.submit();
}

function ForgottenPwd(ParamLogin)
{
if (ParamLogin == null) {ParamLogin = document.getElementById('loginForm').LoginEmail.value;}
cspHttpServerMethod("NLAuL9L2npJrO4ZNUUHBCmdcA1lfZ7Z09jTIPomGgv8OwnEvY0sabelYcpvt$pelaPVqHujGn0stI$Iovwoq1oVUbAwr4ZvzeCJRLJt5Zsdqn8jPL4vkyd7hSJQE4tk0",ParamLogin)
}

function CheckLoginClient(ParamLogin, ParamPassword, ParamCookieChecked)
{

if (ParamLogin == null) {ParamLogin = document.getElementById('loginForm').LoginEmail.value;}
if (ParamPassword == null) {ParamPassword = document.getElementById('loginForm').LoginPassword.value;}
if (ParamCookieChecked == null) {ParamCookieChecked = document.getElementById('loginForm').storecookie.checked;}
cspHttpServerMethod("snTJVToHotPId4n_lwOZ2mdcA1lfZ7Z09jTIPomGgv8pElGpdgP8Gfz8HRfaIdHRA2VtNlNeyy_EYbhK4049J9tSF4Vh_a1B9uaqaXqrruSzD022is7us2rNPSf8nnoZ",ParamLogin,ParamPassword,ParamCookieChecked)
}

function CheckCookie()
{
cspHttpServerMethod("cy4Zh2CvDb$YTO9HBeVo2GdcA1lfZ7Z09jTIPomGgv9uLxVFKKCtAnFBg8llX9oH2C9HFS_ecCteahb_2oWhhIVUbAwr4ZvzeCJRLJt5Zsdqn8jPL4vkyd7hSJQE4tk0")
}


function MyMiniSite()
{
cspHttpServerMethod("6A1L577PDHHwXeE24fkL1mdcA1lfZ7Z09jTIPomGgv_sHE3wy70Vdmwaoo6xa4unOx2tpSUURK4_yV46Xo9tIJyfYiomzPV9Ge$9yoPGMHk-")
}

function Disconnect()
{
cspHttpServerMethod("VC8aGXeOzq6XGASY7HtFI2dcA1lfZ7Z09jTIPomGgv_ly3fgwTHJZlxL3vYd62XqMaCckCUTiGrli$XK9ukME6XWTYq4UDhp0gLktKuq59s-")
}




function setComments(ParamSite,ParamUrl)
{

var curCountryIP = 'France';
cspHttpServerMethod("IeDMmSvzq$t5l3KN1SoMYGD62XjZP9DcEZH$EEM6UTzKCKHTtF8YpVn6txzukSdNhVRsDCvhm$N4IlEsm3lmx2qfyM8vi_TJ3uFIlATi2TQ-",ParamSite,ParamUrl,document.getElementById('form_comments_id').comments_message.value,curCountryIP)
}

function ContactAccount(ParamID)
{
var curCountryIP = geoip_country_name();
cspHttpServerMethod("LWkfN2VXTAt57P3soLkMpxhGWBi9FZlqxPd1mcwTy9snFsQqXSb0ZWciCYnjfpVpT43YIBW0BlIzC4mXYWywl$eNoj8HIk$qUA7IxhTygKk-",ParamID,document.getElementById('form_product_contact_id').product_email.value,document.getElementById('form_product_contact_id').product_phone.value,document.getElementById('form_product_contact_id').product_name.value, document.getElementById('form_product_contact_id').product_message.value, 0,'','',curCountryIP, 0)
}

function JSFunction1(ParamID)
{
cspHttpServerMethod("G_$tnXYbT7AJZ$0V0nKW2y4PT0PoxES8jxokFrvTXAYd9BQhzE_2XB0opI9Y8_ZL$aSySFF6I50wsnQfauviBB2UJEGkfRFhDcWKuHpw8w10yP14wnvhgz2Wwiy_s1FXDBsBeAYCmDTzkS_tvwdfDqNoAn7QFBQzo0MYV1CKAcA-",ParamID)
}

function JSFunction2(ParamFormObj)
{
cspHttpServerMethod("P$6TgiG3n_dCpHbgyiNswciYTAGGukbP0Jyj$UjwKtK6sLpb0BEdZr2AkREZk1CbDBsBeAYCmDTzkS_tvwdfDqNoAn7QFBQzo0MYV1CKAcA-",ParamFormObj.alertEmail.value,ParamFormObj.urlID.value)
}

function JSLinkSelect(ParamSite)
{
cspHttpServerMethod("FVBwTZcg0U_3Myz4sM2tgS4PT0PoxES8jxokFrvTXAYMTDvJPlZYoRbU0lrsxYEL2xmkS$SzkVddF8mai2dI1SgHxei7KCKanlykO1LUau6FVGwMK_Gb83giUSybeWbHap$Izy_L5Mne4UiUBOLZNA--",ParamSite)
}

function JSSearchCrit1(ParamForm, ParamCategoryLabel)
{
	var strForm = '';
document.getElementById('id_dyn_crit').style.color = 'red';
document.getElementById('id_dyn_crit').innerHTML = 'Chargement des annonces en cours ...<img src="/site_v2/images/load.gif" /> ...<br/><br/>Savez-vous qu il faut 1 minute pour creer une annonce sur Eostis?<br/>';

}

function JSSearchCrit(ParamForm, ParamCategoryLabel)
{
	var strForm = '';
var strEditLabel = '';
	for(i=0; i<ParamForm.length; i++)
		{
		ParamForm.elements[i].disabled = true;
		if ((ParamForm.elements[i].type == 'select-one') && (ParamForm.elements[i].value != '+++') && (ParamForm.elements[i].name != ''))
			{ 
			if (ParamForm.elements[i].value != 'OTHERS')
				{ 
				strForm += ParamForm.elements[i].name;
				strForm += ':';
				strForm += ParamForm.elements[i].value;
				strForm += ',' ;
   				} 
			else 
				{ 
				strEditLabel = ParamForm.elements[i].name;
   				} 
   			} 
   		} 
cspHttpServerMethod("EK8lDrPDokEc6Na55ZCZ1C4PT0PoxES8jxokFrvTXAblDbGm8wKiu0GA$QPN0U8aYaQr6RH6bKPmvy8XFReWqw--",strForm,ParamCategoryLabel,strEditLabel)
}

function JSDynCritsDelayed(ParamUrlId)
{

cspHttpServerMethod("VeN7RNa1$xHeas5vGIYL3y4PT0PoxES8jxokFrvTXAax8f7xiDwVjVvclnIRzAFvOvfOzTuAz$JhccbiYpguSs_CXJhXSniyNu2taEToxLM-",ParamUrlId)
}



function JSDynCrits(ParamUrlId)
{


cspHttpServerMethod("VeN7RNa1$xHeas5vGIYL3y4PT0PoxES8jxokFrvTXAax8f7xiDwVjVvclnIRzAFvOvfOzTuAz$JhccbiYpguSs_CXJhXSniyNu2taEToxLM-",ParamUrlId)


}

function SaveProduct(ParamForm)
	{




	var strForm = '';
	for(i=0; i<ParamForm.elements.length; i++)
		{
		strForm += ParamForm.elements[i].name + '<<=>>';
		strForm += ParamForm.elements[i].value + '<<SEP>>';
   	} 
var curCountryIP = 'France';

cspHttpServerMethod("CKsTPVE0fH2tQGo19iLA19NLRaqgokJ_7QVQnPWbrgPhFpjW2ttIlsPrOhD$snxgdlX4ITWomxGYp6u$OqIPZw--",'FormEditProduct',strForm,'',curCountryIP)




	}

function SaveProductDyn()
	{
	var strForm = '';
	for(i=0; i<document.FormEditProductDyn.elements.length; i++)
		{
		strForm += document.FormEditProductDyn.elements[i].name + '<<=>>';
		strForm += document.FormEditProductDyn.elements[i].value + '<<SEP>>';
   	} 

cspHttpServerMethod("CKsTPVE0fH2tQGo19iLA19NLRaqgokJ_7QVQnPWbrgPhFpjW2ttIlsPrOhD$snxgdlX4ITWomxGYp6u$OqIPZw--",'FormEditProductDyn',strForm)
	}

function JSContact(ParamSite)
{
alert('Pour contacter l\'annonceur, utilisez le formulaire en haut a droite de votre ecran.');
$( "#contactform .input" ).before('<br/>');
$( "#contactform textarea" ).css({ width: "250px" });
$( "#contactform" ).dialog( "open" );

}



function JSSearchFullNew(ParamSite,ParamCategoryLabel,ParamKeyWords)
	{
var curForm = document.getElementById('form_searchbar_id');
curForm.ParamSite.value = ParamSite;
curForm.ParamCategoryLabel.value = ParamCategoryLabel;
curForm.ParamKeyWords.value = ParamKeyWords;
curForm.submit();
	}



 	function JSOnLoad() {
	 	//document.getElementById("cse-search-box").submit();
 	} 
 

function JSShop() {
	window.open('http://eostis.zlio.net');
	}
 

		function JSPopUpCategory (ParamCssId, ParamCategoryLabel)
			{
			 cspHttpServerMethod("VVIzcZ9A2Q3nk0whs8_KQTYIaEDPsjw52apGQvqayvxF3iAOo3TJ6konK9TdOxbLPaD2sBolaTl2oHNLQwqReyGqPQJ5aJnEbvmnJEnuQgM-",ParamCssId,ParamCategoryLabel)				
			}
		

		$(function() {
			$('.main_menu li a').live({
			  mouseover: function () {
				var curCategoryLabel = $(this).attr('id');
				var curCssId = 'popup' + curCategoryLabel;
			    if ( ($(this).find('.popup').length == 0) && !(curCategoryLabel.length == 0) )
			    	{
			    	$(this).append('<div class="popup"><div id="' + curCssId + '" class="popup_inner"></div></div>');
				  	JSPopUpCategory(curCssId, curCategoryLabel);
					}  	
			  },
			  mouseout: function () {
			    //$(this).find('.popup').remove();
			  }
			});						
			});
		

		function JSContactUs()
			{
			document.location.href = "mailto:infos@eostis.com?subject=Contacter Eostis";
			}
		

		function JSContactPartner()
			{
			document.location.href = "mailto:infos@eostis.com?subject=Demande de partenariat";
			}
		
if (document.getElementById("form_product_contact_id")) {document.getElementById("form_product_contact_id").product_email.value = '';}
if (document.getElementById("form_product_contact_id")) {document.getElementById("form_product_contact_id").product_phone.value = '';}
if (document.getElementById("form_product_contact_id")) {document.getElementById("form_product_contact_id").product_name.value = '';}
if (document.getElementById("form_product_contact_id")) {document.getElementById("form_product_contact_id").product_message.value = '';}

