﻿function clsAthlete(htmlFrag, objectname) { 
	this.asynchronous = new Asynchronous(); //defined in asynchronous.js
	this.fragment = htmlFrag;		
	this.objectname = objectname;
}


function Athlete_getAthleteMenu(){
	var instance = this;
	instance.asynchronous.loading = function(){
		try{
			instance.fragment.innerHTML = "<center><i class=font>loading...</i></center>";
		}catch(e){
			//alert(e);
		}
	}
	instance.asynchronous.complete = function(status, statusText, responseText, responseXML) {
	    //load into an xml doc and read the text of the first childnode
	    try{
	        resp = responseXML.documentElement;	        
	        var shtml = new String();
	          for (i = 0; i < resp.childNodes.length; i++) {
	            shtml += resp.childNodes[i].nodeValue;
	        }
	        instance.fragment.innerHTML = shtml;			
	    }catch(e){
		    //alert(e);
	    }
	}
	instance.asynchronous.call("/webservice/clsAthleteWebService.asmx/GetAthleteMenu");	
}

 
 
clsAthlete.prototype.getathletemenu = Athlete_getAthleteMenu;	
 
	 
	
	