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.webmycar.com";
titre_site = "WEBmyCAR";
document.write('Ajouter webmycar aux favoris')
}
else
{
document.write('
webmycar en favori : Tapez CTRL+D
')
}
}
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 validate(){
document.forms[0].submit()
}
function enlargepopup(mpopurl){
winpops=window.open(mpopurl,'RTA','width=800,height=600, status=no, directories=no, toolbar=yes, location=no, menubar=no, scrollbars=yes, resizable=yes')
}
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 "";
}
function doIt() {
if (document.body && document.body.clientWidth) {
window.innerWidth = document.body.clientWidth;
}
if (window.innerWidth == 642) {
if (screen.width < 800) {
window.resizeTo(screen.width,screen.height);
} else {
window.resizeTo(820,screen.height);
}
}
}
if ( document.all ) {
document.oncontextmenu = clic_droit;
}
if ( document.layers ) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = clic_droit;
}
function clic_droit(evenement) {
if ( document.all ) {
alert('Internet Explorer for PC');
return false;
}
else if ( document.layers ) {
if ( evenement.which == 3 ) {
alert('Netscape for PC');
return false;
}
if ( evenement.modifiers == 2 ) {
alert('Netscape for Mac');
return false;
}
}
return true;
}