function initAlarm(){

	var handlerData = function(){
	}

	var successHandler = function(oData) {
	  
  	nowDate = new Date();
      
    timeStart = new Date();
    timeStart.setFullYear(alertStartYear);
    timeStart.setMonth(alertStartMonth-1);
    timeStart.setDate(alertStartDate);
    timeStart.setHours(alertStartHour);
    timeStart.setMinutes(alertStartMinute);	
    
    timeUpdate = new Date();
    timeUpdate.setFullYear(alertEndYear);
    timeUpdate.setMonth(alertEndMonth-1);
    timeUpdate.setDate(alertEndDate);
    timeUpdate.setHours(alertEndHour);
    timeUpdate.setMinutes(alertEndMinute);  
    
        
    if (nowDate.getTime()>= timeStart.getTime()&& nowDate.getTime()<=timeUpdate.getTime()) {
     //時間中寫這邊
      makeRemote(alertWidth,alertHeight,alertURL);
    }else{
     //過期寫這邊	 
    }
				    
	}
	var objTransaction = YAHOO.util.Get.script("alertSet.txt",{ 
																							onSuccess: successHandler, 
															                data:      handlerData });
}


function makeRemote(width, height, url) {
  
  pros = "width="+width+", height="+height+",resizable=no,scrollbars=yes,toolbar=no,location=no,menubar=no,status=no,left=0,top=0";
  remote=window.open("","remote",pros);
  remote.location.href=url; 
  if (remote.opener==null) remote.opener=window;
  //remote.opener.focus();
}