﻿
function init()
    {try
        {//checkSVG()
        }
	catch(e)
		{}
	finally	
		{}
     
    }


function Media(id, media) 
    { 
        if (document.getElementById) 
        {document.getElementById(id).innerHTML = media; 
        } 
    } 

function OpenPopup(path)
    {
    window.open(path,"_blank","height=550,width=650,status=yes,toolbar=no,menubar=no,location=no,resizable=no")
    }
    
function OpenScrollPopup(path)
    {
    window.open(path,"_blank","height=550,width=670,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no")
    }
    
 function AsyncVerif(url)
    {var objXmlDoc = new ActiveXObject("Msxml2.DOMDocument");
    if (objXmlDoc != null)
        {var objHttp = new ActiveXObject("Microsoft.XMLHTTP");
        objHttp.open ("GET",encodeURI(url) , false) 
        objHttp.send()
        
        
        var s = new String
        s=objHttp.responseText
        if (s!="0")
            {
            window.open("../inc/async/ShowDoublon.aspx?IdContact=" + s,"","height=550,width=650,status=yes,toolbar=no,menubar=no,location=no,resizable=yes")
            }
        }
        
    }
    
    
    function Bookmark(url, site){	if( navigator.appVersion.lastIndexOf("Mac") !=-1 || navigator.appVersion.lastIndexOf("X11")!=-1 ) {		alert("Cette option ne fonctionne pas sur Macintosh. \n \nVeuillez taper :   D");	}	else		window.external.AddFavorite( url , site  );}
