
// Blocage du bouton gauche de la sourie //

/*
function right(e) {
var msg = " Copyright 2010 - Publivite.com ";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);  // Delete this line to disable but not alert user
return false;}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg); // Delete this line to disable but not alert user
return false;}
return true;}
document.onmousedown = right;
*/

// Compteur textarea //

var MaxLen = 1500

function ChangeMAX(inputStr) {
 if (inputStr == "u") {
  MaxLen=140
 } else {
  MaxLen=160
 }
 upperMe(document.forms[0])
}
function upperMe(form) {
 inputStr = form.ad_description.value;
 strlength= inputStr.length;
 if (strlength > MaxLen ) form.ad_description.value=inputStr.substring(0,MaxLen);
 form.num.value = (MaxLen - form.ad_description.value.length);
 form.ad_description.focus();
}

