
function mapClick (evt) {
				var x, y;
				
				if (evt) {
					x = evt.pageX;
					y = evt.pageY;
				} else {
					x = event.clientX;
					y = event.clientY;					
				}				
			
				parent.document.forms [0].m_inpHdnMapClickX.value = x;
				parent.document.forms [0].m_inpHdnMapClickY.value = y;
					
				parent.__doPostBack ('','');		
}

function countryClicked (id) {

	parent.document.forms [0].m_inpHdnCntryClick.value = id;
	parent.__doPostBack ('','');

}

function regionClicked (rgn) {

	parent.document.forms [0].m_inpHdnRgnClick.value = rgn;
	parent.__doPostBack ('','');
}


/**************************************************************************
*
* @project     CWC2
* @purpose     MapTips Javascript 
* @copyright
* <b>Copyright (c) 2002, DM Solutions Group Inc.</b>
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/

/* ==================================================================== */
/*  MapTipClear(szLayer, szText)                                        */
/*  Clears the contents of the MapTip DIV (szText can be default text)  */
/* ==================================================================== */
function MapTipClear(szLayer, szText)
{
    if(!szText)
        var szText = '&nbsp;';
        
    MapTipContent( szLayer, szText );
}

/* ==================================================================== */
/*  MapTipContent( szLayer, szText )                                    */
/*  Writes the content to the MapTip DIV                                */
/* ==================================================================== */
function MapTipContent( szLayer, szText )
{
    //window.status = szLayer;
    if(!szLayer)
    {
        alert('no layer specified .. exiting');
        return false;
    }
    
    // Phil Fong (Dec 2004)
    
    var re;
    
    re = /&apos;/g;
    szText = szText.replace (re, "'");		//apostrophe
    re = /&apostrophe;/g;
    szText = szText.replace (re, "'");
    
    // should work for all browsers
    if (document.layers)
    {
        var oLayer;
        if(parentID)
        {
            oLayer = eval('document.' + parentID + '.document.' + szLayer + '.document');
        }
        else
        {
            oLayer = document.layers[szLayer].document;
        }

        oLayer.open();
        oLayer.write(szText);
        oLayer.close();
    }
    else if (parseInt(navigator.appVersion)>=5&&navigator.appName=="Netscape")
    {
        document.getElementById(szLayer).innerHTML = szText;
    }
    else if (document.all)
    {
        document.all[szLayer].innerHTML = szText;
    }
    
    return true;

}
