function popformhandler ( httphandler, type  ) {
		
	e = document.getElementById ( "popform" );
	e.innerHTML = httphandler.responseText;
	e.style.position = "absolute";
	e.style.display = "block";
}

function popform (type, id, xpos, ypos ) {
	
	switch ( type ) {
		
		case 'time':

			//alert('popform.php?t=time&i='+id);
			A = myAIAS ('popform.php?t=time&i='+id,popformhandler, type ); 
			e = document.getElementById ( "popform" );
			e.style.width="240px";
			e.style.left=xpos+"px";
			e.style.top=ypos+"px";
			
		break;  
		
		case 'audio':
			
		break;
		
	}
}

function remove_popform () {
	
	document.getElementById ( "popform" ).style.display = "none";
}

function save_popform_handler (httphandler, args ) {

	remove_popform ();
	//reload page
	document.location.reload ( true );
}

function save_popform ( type, id, value  ) {
	
	switch (type) {
		case 'time':
			A= new myAIAS ( "popform.php?t=save_time&i="+id+"&playtime="+value, save_popform_handler, null, null );
		break;	
	}
}
