function correctMyDate(){
    try{
        var dateMatches=[];
        var myDateElems=document.getElementsByTagName("*");
        for(var myDateIndex=0;myDateIndex<myDateElems.length;myDateIndex++){
            if(myDateElems[myDateIndex].id.indexOf("myDate")==0){
                dateMatches.push(myDateElems[myDateIndex].id);
            }
        }
    var dateLen=dateMatches.length;
    for(myDateIndex=0;myDateIndex<dateLen;myDateIndex++){
        getCorrectDate(document.getElementById(dateMatches[myDateIndex]));
    }
    }
catch(e){
    myDate_error("correctMyDate.js error: "+e);
}
return null;
}
function getCorrectDate(myDateId){
    var checkThisDate=myDateId.innerHTML;
    var correctDate=checkThisDate;
    if(checkThisDate.length==10&&checkThisDate.charAt(4)=='-'&&checkThisDate.charAt(7)=='-'){
        correctDate='';
        correctDate=correctDate+checkThisDate.substring(8)+'-'+checkThisDate.substring(5,7)+'-'+checkThisDate.substring(0,4);
    }
    myDateId.innerHTML=correctDate;
    myDateId.style.display='';
}
function myDate_error(myDateError){
    try{
        var myDate_error_myReq=myDate_newXMLHttpRequest();
        var myDate_error_myAction="printJavaScriptError";
        var myDate_error_url=myDate_error_myAction+"?myError="+myDateError;
        myDate_error_myReq.open("GET",myDate_error_url,true);
        myDate_error_myReq.onreadystatechange=null;
        myDate_error_myReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
        myDate_error_myReq.send(null);
    }catch(e){}
}
function myDate_newXMLHttpRequest(){
    var myDate_xmlreq=false;
    if(window.XMLHttpRequest){
        myDate_xmlreq=new XMLHttpRequest();
    }else if(window.ActiveXObject){
        try{
            myDate_xmlreq=new ActiveXObject("Msxml2.XMLHTTP");
        }catch(e1){
            try{
                myDate_xmlreq=new ActiveXObject("Microsoft.XMLHTTP");
            }catch(e2){
                myDate_xmlreq=false;
            }
        }
}
return myDate_xmlreq;
}
