	function usdExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange.php?ex=USD", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#usdto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#usdto').html($('#tblrep tr#usdto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;USD&nbsp;= ')
					 .appendTo('#tblrep tr#usdto');
					$('tr#usdto .dvlding').hide();
					
					
					$('#tblrep tr#usdinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#usdinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#usdto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#usdinv');
							  
	                     }); //close each(
					eurExchReport();
				}
			});
	}
	
	function eurExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange-eur.php?ex=EUR", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#eurto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#eurto').html($('#tblrep tr#eurto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;EUR&nbsp;= ')
					 .appendTo('#tblrep tr#eurto');
					$('tr#eurto .dvlding').hide();
					
					
					$('#tblrep tr#eurinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#eurinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#eurto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#eurinv');
							  
	                     }); //close each(
					gbpExchReport();
				}
			});
	}
	
	function gbpExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange-gbp.php?ex=GBP", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#gbpto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#gbpto').html($('#tblrep tr#gbpto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;GBP&nbsp;= ')
					 .appendTo('#tblrep tr#gbpto');
					$('tr#gbpto .dvlding').hide();
					
					
					$('#tblrep tr#gbpinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#gbpinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#gbpto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#gbpinv');
							  
	                     }); //close each(
						 
					audExchReport();
					//var t= setTimeout("audExchReport()",50000);
					//var t= setTimeout("showReloadRow()",30000);
				}
			});
	}
	
	function audExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange-aud.php?ex=AUD", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#audto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#audto').html($('#tblrep tr#audto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;AUD&nbsp;= ')
					 .appendTo('#tblrep tr#audto');
					$('tr#audto .dvlding').hide();
					
					
					$('#tblrep tr#audinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#audinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#audto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#audinv');
							  
	                     }); //close each(
					cadExchReport();
					//var t= setTimeout("showReloadRow()",30000);
				}
			});
	}
	
	function cadExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange-cad.php?ex=CAD", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#cadto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#cadto').html($('#tblrep tr#cadto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;CAD&nbsp;= ')
					 .appendTo('#tblrep tr#cadto');
					$('tr#cadto .dvlding').hide();
					
					
					$('#tblrep tr#cadinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#cadinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#cadto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#cadinv');
							  
	                     }); //close each(
					jpyExchReport();
					//var t= setTimeout("showReloadRow()",30000);
				}
			});
	}
	
	function jpyExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange-jpy.php?ex=JPY", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#jpyto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#jpyto').html($('#tblrep tr#jpyto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;JPY&nbsp;= ')
					 .appendTo('#tblrep tr#jpyto');
					$('tr#jpyto .dvlding').hide();
					
					
					$('#tblrep tr#jpyinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#jpyinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#jpyto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#jpyinv');
							  
	                     }); //close each(
					cnyExchReport();
					//var t= setTimeout("showReloadRow()",30000);
				}
			});
	}
	
	function cnyExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange-cny.php?ex=CNY", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#cnyto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#cnyto').html($('#tblrep tr#cnyto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;CNY&nbsp;= ')
					 .appendTo('#tblrep tr#cnyto');
					$('tr#cnyto .dvlding').hide();
					
					
					$('#tblrep tr#cnyinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#cnyinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#cnyto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#cnyinv');
							  
	                     }); //close each(
					inrExchReport();
					//var t= setTimeout("showReloadRow()",30000);
				}
			});
	}
	function inrExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange-inr.php?ex=INR", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#inrto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#inrto').html($('#tblrep tr#inrto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;INR&nbsp;= ')
					 .appendTo('#tblrep tr#inrto');
					$('tr#inrto .dvlding').hide();
					
					
					$('#tblrep tr#inrinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#inrinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#inrto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#inrinv');
							  
	                     }); //close each(
					chfExchReport();
					//var t= setTimeout("showReloadRow()",30000);
				}
			});
	}
	
	function chfExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange-chf.php?ex=CHF", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#chfto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#chfto').html($('#tblrep tr#chfto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;CHF&nbsp;= ')
					 .appendTo('#tblrep tr#chfto');
					$('tr#chfto .dvlding').hide();
					
					
					$('#tblrep tr#chfinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#chfinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#chfto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#chfinv');
							  
	                     }); //close each(
					brlExchReport();
					//var t= setTimeout("showReloadRow()",30000);
				}
			});
	}
	
	function brlExchReport() {
			$.ajax({
				type: "GET",
				cache: true,
				url: "xmldbexchange-brl.php?ex=BRL", //Requesting simple.xml
				dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
				beforeSend: function(){
					$('tr#brlto .dvlding').show();
				},
				success:function(xml){
					$('#tblrep tr#brlto').html($('#tblrep tr#brlto td:first').clone());
					$('<td align="left"></td>')
					 .html(' 1&nbsp;BRL&nbsp;= ')
					 .appendTo('#tblrep tr#brlto');
					$('tr#brlto .dvlding').hide();
					
					
					$('#tblrep tr#brlinv').html('');
					$('<td align="left"></td>')
					 .html(' Inverse: ')
					 .appendTo('#tblrep tr#brlinv');
				  
					$(xml).find('item').each(
						function(){
	                        // var id_text = $(this).attr('id');
							 var id_text = $(this).find('pubDate').text();
	                         var name_text = $(this).find('title').text();
							 if(name_text == 0 || name_text == '0' || name_text == '1') name_text = '1.00000';
							 var link_text = $(this).find('link').text();
							 
							 var invVals = $(this).find('inverse').text();
							 if(invVals == 0 || invVals == '0' || invVals == '1') invVals = '1.00000';
							 
							 $('<td></td>')
	                             .html(name_text)
	                             .appendTo('#tblrep tr#brlto');
								 
							// Inverse
							 $('<td></td>')
							  .html(invVals)
							  .appendTo('#tblrep tr#brlinv');
							  
	                     }); //close each(
					//var t= setTimeout("usdExchReport()",50000);
					var t= setTimeout("showReloadRow()",30000);
				}
			});
	}
	
	
	var TimerReload = 30000;
	var TimerHide = 3000;
	//var filebg = 'filebackground.php';
	var filebg = 'filerunbg.php';
	
	function showReloadRow(){
		/*$('tr#usdto .dvlding').show();
		var t= setTimeout("hideReloadRow()",TimerHide);*/
		$.ajax({
			type: "GET",
			cache: true,
			url: filebg, //Requesting simple.xml
			dataType: "xml", //Make sure that you specify the type of file you expecting (XML)
			success:function(xml){
			}
		});
		usdExchReport();
	}
	function hideReloadRow(){
		$('tr#usdto .dvlding').hide();
		showReloadRowEUR();
	}
	function showReloadRowEUR(){
		$('tr#eurto .dvlding').show();
		var t= setTimeout("hideReloadRowEUR()",TimerHide);
	}
	function hideReloadRowEUR(){
		$('tr#eurto .dvlding').hide();
		showReloadRowGBP();
	}
	function showReloadRowGBP(){
		$('tr#gbpto .dvlding').show();
		var t= setTimeout("hideReloadRowGBP()",TimerHide);
	}
	function hideReloadRowGBP(){
		$('tr#gbpto .dvlding').hide();
		var t= setTimeout("showReloadRow()",TimerReload);
	}
