function openEdit(id, col, size, type, path){
	winSize=parseInt(size)+50;
	eidtWin = window.open(path+'edit_page.php?id='+id+'&col='+col+'&type='+type+'&size='+size,'editWin','left=20,top=20,width='+winSize+',height=800,toolbar=0,location=0,resizable=1');
}
function openSandEdit(id, col, size, type, path){
	winSize=parseInt(size)+50;
	eidtWin = window.open(path+'sand_edit_page.php?id='+id+'&col='+col+'&type='+type+'&size='+size,'editWin','left=20,top=20,width='+winSize+',height=800,toolbar=0,location=0,resizable=1');
}
function chkin(path){
	chkinWin = window.open(path+'chkin.php','chkinWin','left=20,top=20,width=1460,height=330,toolbar=0,location=0,resizable=0');
}
function manage(path){
	manageWin = window.open(path+'manage.php','manageWin','left=20,top=20,width=1260,height=830,toolbar=0,location=0,resizable=0,scrollbars=1');
}

function stop(){
	document.aud_1.Stop();
	new Ajax.Updater (
		"controller", "audio_play_state.php?state=stop", 
		{}
	);
}
function play(){
	document.aud_1.Play();
	new Ajax.Updater (
		"controller", "audio_play_state.php?state=play", 
		{}
	);
}

function openWin(url){
	eidtWin = window.open(url,'creator','left=20,top=20,width=900,height=800,scrollbars=1,toolbar=1,location=1,resizable=1');
}

function load(path){
    artist_updater = new Ajax.PeriodicalUpdater(
        'artist',
        path+'updater_artist.php?path='+path,
        {
            method: 'get',
            frequency: 11
        }
    )
			
    sponsor_updater = new Ajax.PeriodicalUpdater(
        'sponsor',
        path+'updater_sponsor.php?path='+path,
        {
            method: 'get',
            frequency: 6
        }
    )
			
    vendor_updater = new Ajax.PeriodicalUpdater(
        'vendor',
        path+'updater_vendor.php?path='+path,
        {
            method: 'get',
            evalScripts: true,
            frequency: 17
        }
    )
		
}
