window.mainframecaller = null;
window.mainframehistory = new Array();
function loadMainPage(a, b, c){
	
	$('#'+a).html('<center style="padding-top:20px; padding-bottom:20px"><img src="images/Load.gif" /></center>');
	
	try{window.mainframecaller.abort();}catch(err){}
	window.mainframecaller = 
	
	jQuery.ajax({
		url:b+'.php',
		data:c,
		type:'POST',
		dataType:'php',		
		error: function(data, status, e){
			$('#'+a).html('&nbsp;');
			alert(e);
		},
		success: function(data){				
			$('#'+a).html(data);
			//$('#'+a).show();
			$('#'+a).hide();
			$('#'+a).slideDown(1000);
		}
	});	
}
function loadMainFramePage(a, b){
	if(typeof(b)=='undefined' || typeof(b)==null) b = '';
	loadMainPage('mainFrame', a, b);
}


window.mframecaller = null;
window.mframehistory = new Array();
function loadMPage(a, b, c){
	
	$('#'+a).html('<center style="padding-top:20px; padding-bottom:20px"><img src="images/Load.gif" /></center>');
	
	try{window.mframecaller.abort();}catch(err){}
	window.mframecaller = 
	
	jQuery.ajax({
		url:b+'.php',
		data:c,
		type:'POST',
		dataType:'php',		
		error: function(data, status, e){
			$('#'+a).html('&nbsp;');
			alert(e);
		},
		success: function(data){				
			$('#'+a).html(data);
			//$('#'+a).show();
			$('#'+a).hide();
			$('#'+a).slideDown(1000);
		}
	});	
}
function loadMFramePage(a, b){
	if(typeof(b)=='undefined' || typeof(b)==null) b = '';
	loadMPage('mFrame', a, b);
}



