function xmlhttpPost(strURL, id ) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {    		
        if (self.xmlHttpReq.readyState == 4 && self.xmlHttpReq.status == 200 ) {

        	$('#'+id).empty().html(self.xmlHttpReq.responseText);       	
        }
    }
    self.xmlHttpReq.send(null);
}

//function GetMyCash() {
//	xmlhttpPost( '/parea/get_mycash.asp', 'myCash' );	
//}

function GetMyGameBar( pResetYN, pAppendGame, pDeleteGame  ) {
	//document.getElementById( 'divTabHot_sub3' ).innerHTML = '';	
	xmlhttpPost( '/game/gamebar_mygame.asp?addgame='+pAppendGame+'&delgame='+pDeleteGame + '&reset='+(pResetYN ? 'Y' : 'N' ) , 'divTabHot_sub3' );	
}

function GetMyGameBar_View( pGameList ) {
	//document.getElementById( 'divTabHot_sub3' ).innerHTML = ''; 
	xmlhttpPost( '/game/gamebar_mygame_view.asp?mygame='+pGameList , 'divTabHot_sub3' );
}
