function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function getFileSize(filepath)
{

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function change_state(uid,mode,state){
	$.ajax({
				type:'POST',
				cache: false,
				url: 'ajax/rc_ctr/ch_state.php',
				data: 
				{
					'uid':uid,
					'mode':mode,
					'state':state
				},
				error: function(xhr) {
				},
				success: function(response){	
					$("#rc_"+uid).html(response);
				}
			});
}

function upload_wait(){
		$.ajax({
				type:'POST',
				cache: false,
				url: 'ajax/wait_upload.php',
				data: {	},
				success: function(response){	
					$("#page_ajax").html(response);
				}
			});
}

function wait_frm(){
		$.ajax({
				type:'POST',
				cache: false,
				url: 'ajax/wait.php',
				data: {	},
				success: function(response){	
					$("#page_ajax").html(response);
				}
			});
}

function keepalive(div){
		$.ajax({
				type:'GET',
				cache: false,
				url: 'ajax/keepalive.php',
				data:{},
				error: function(xhr) {
					$("#"+div).html(xhr);
				},
				success: function(response){	
					$("#"+div).html(response);
				}
			});
	upload=setTimeout('keepalive("'+div+'")',1000);
	}

