
function loadCal(Y,M,C){
ajax_content_onload_getB('../SCRIPT/onlyCal.php?y='+Y+'&m='+M+'&c='+C,'','cals','load_cal');
return false; 
}


function cal(Y,M,C,lastCase){
ajax_content_onload_getB('../SCRIPT/onlyCal.php?y='+Y+'&m='+M+'&c='+C+'&lc='+lastCase,'','cals','load_cal');

}


function TigilError() {
	return true;
}
window.onerror = TigilError;




function openroom(url)  {

wx = 600;

wy = 520;

x = (screen.width  - wx) / 2;

y = (screen.height - wy) / 2;

newWinr = window.open(url,"openinsr","scrollbars=1,left="+x+",top="+y+",width="+wx+",height="+wy);
newWinr.focus();

}



function popup(id,status){

if(status == 1){
document.getElementById(id).style.display = 'block';
}else{
document.getElementById(id).style.display = 'none';
}

}

function bg(id,status){
if(status == 1){
document.getElementById(id).style.background = '#F7EFBB';
}else{
document.getElementById(id).style.background = '#FDFDFD';
}
}



//// Contents ///////////////////


function nextCharge(){


var status = document.getElementById('charge').value;

if(status == 1){
Charge1 = 4600;
Charge2 = 5200;
Charge3 = 5600;
Charge4 = 6000;
Charge5 = 6200;
document.getElementById('s2').selected = "selected"; 
document.getElementById('s2').style.background = "#88B5D2"; 
document.getElementById('s2').style.color = "#ffffff"; 

}else{
Charge1 = 3900;
Charge2 = 4800;
Charge3 = 5200;
Charge4 = 5500;
Charge5 = 5800;

document.getElementById('s1').selected = "selected"; 
document.getElementById('s1').style.background = "#88B5D2"; 
document.getElementById('s1').style.color = "#ffffff"; 
}

document.getElementById('c1').innerHTML = Charge1;
document.getElementById('c2').innerHTML = Charge2;
document.getElementById('c3').innerHTML = Charge3;
document.getElementById('c4').innerHTML = Charge4;
document.getElementById('c5').innerHTML = Charge5;


document.getElementById('fc').focus();


}






