nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1)
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function addFav()
{
if (nav == "Mic" && ver >= 4)
{
url_site="http://www.car4discount.com";
titre_site = "CAR4DISCOUNT";
document.write('Ajouter car4discount aux favoris
')
}
else
{
document.write('
Faites CTRL+D
pour ajouter ce site
à vos favoris!
')
}
}
function ejs_img_fx(img){
if(img && img.filters && img.filters[0]){
img.filters[0].apply();
img.filters[0].play();
}
}
function openpopup(popurl){
winpops=window.open(popurl,null,'width=370,height=520, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=no, resizable=no')
}
function memberpopup(mpopurl)
{
winpops=window.open(mpopurl,null,'width=560,height=620, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, resizable=yes')
}
function addsitepopup(mpopurl)
{
winpops=window.open(mpopurl,null,'width=520,height=560, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=no, resizable=no')
}
function mailalertpopup(mpopurl)
{
winpops=window.open(mpopurl,null,'width=520,height=560, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=no, resizable=no')
}
function flash(cV,cM)
{
document.write('
');
}
function WebmyPic(chemin)
{
i1 = new Image;
i1.src = chemin;
html = 'Image
';
popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
popupImage.document.open();
popupImage.document.write(html);
popupImage.document.close()
}
function getFieldValue(field)
{
switch(field.type)
{
case "text" :
case "textarea" :
case "password" :
case "hidden" :
return field.value;
case "select-one" :
var i = field.selectedIndex;
if (i == -1) return "";
else return (field.options[i].value == "") ? field.options[i].text : field.options[i].value;
case "select-multiple" :
var allChecked = new Array();
for(i = 0; i < field.options.length; i++)
if(field.options[i].selected)
allChecked[allChecked.length] = (field.options[i].value == "") ? field.options[i].text : field.options[i].value;
return allChecked;
case "button" :
case "reset" :
case "submit" :
return "";
case "radio" :
case "checkbox" :
if (field.checked) { return field.value; } else { return ""; }
default :
if(field[0].type == "radio")
{
for (i = 0; i < field.length; i++)
if (field[i].checked)
return field[i].value;
return "";
}
else if(field[0].type == "checkbox")
{
var allChecked = new Array();
for(i = 0; i < field.length; i++)
if(field[i].checked)
allChecked[allChecked.length] = field[i].value;
return allChecked;
}
else
var str = "";
for (x in field) { str += x + "\n"; }
alert("I couldn't figure out what type this field is...\n\n" + field.name + ": ???\n\n\n" + str + "\n\nlength = " + field.length);
break;
}
return "";
}