/* Rosalia Indah Group - rosalia-indah.com */
var ms=0;var timerID=null;var timerRunning=false;var months=new Array(13);months[1]="Januari";months[2]="Februari";months[3]="Maret";months[4]="April";months[5]="Mei";months[6]="Juni";months[7]="Juli";months[8]="Agustus";months[9]="September";months[10]="Oktober";months[11]="Nopember";months[12]="Desember";function lightOn(col){col.style.backgroundColor='#FFFFCC';col.style.cursor='default';}function greyLine(col){col.style.backgroundColor='#E0E0E0';}function darkLine(col){col.style.backgroundColor = '#F2F2F2';}function startClock(val){xnow = new Date(val);stopClock();showClock();}function stopClock(){if(timerRunning)clearTimeout(timerID);timerRunning=false;}function showClock(){xnow.setSeconds(xnow.getSeconds()+1);var lmonth=xnow.getMonth()+1;
var date=((xnow.getDate()<10)?'0':'')+xnow.getDate();var year=xnow.getYear();if(year<2000)year=year+1900;var hour=((xnow.getHours()<10)?'0':'')+xnow.getHours();var min=((xnow.getMinutes()<10)?'0':'')+xnow.getMinutes();var sec=((xnow.getSeconds()<10)?'0':'')+xnow.getSeconds();document.getElementById('Clock').innerHTML=date+' '+months[lmonth]+' '+year+' '+hour+':'+min+':'+sec+'&nbsp;&nbsp;';timerID=setTimeout("showClock()",1000);timerRunning=true;}function setTimer(){ms=0;then=new Date();then.setTime(then.getTime()-ms);}function doTimer(){setTimeout("doTimer()",1000);ynow = new Date();ms=ynow.getTime()-then.getTime();if(ms>=300000){setTimer();document.mLogin.action='logout.html';document.mLogin.submit();}if(ms>=60000){timer=parseInt(ms/60000);
window.status='idle '+timer+' menit';}}function AjaxObject(){try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}try{return new XMLHttpRequest();}catch(e){}alert('Your browser does not support AJAX!');return null;}function changeCode(val){var xmlHttp;var domElement=document.getElementById('confirmCode');xmlHttp=AjaxObject();xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==1){document.getElementById('msgLoad').innerHTML='<font color="#FF0000"><b>Loading...</b></font>';}else if(xmlHttp.readyState==4)if(xmlHttp.status==200){domElement.src=xmlHttp.responseText;document.getElementById('msgLoad').innerHTML='&nbsp;';}}
xmlHttp.open('GET','confirm_'+val+'.html',true);xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded;charset=utf-8');xmlHttp.send(null);}function returnFail(){alert('There was a problem with the request.\nPlease call administrator immediately.');}function popUp(url,w,h){win=window.open(url,'jspopup','width='+w+',height='+h+',scrollbars=yes');win.focus();false;}

function focusOn(col){
	col.style.backgroundColor = '#E0FFFF';
}

function focusOff(col){
	col.style.backgroundColor = '#ffffff';
}


