function openWindow1(url) {
	var popupWindow = open(url, "Popup", "height=380,width=400,location=0,menubar=1,resizable=0,scrollbars=1,status=0,toolbar=0");
	return false
}

function openWindow2(url) {
	var popupWindow = open(url, "Popup", "height=450,width=450,location=0,menubar=1,resizable=0,scrollbars=1,status=0,toolbar=0");
	return false
}

function weekNo() {
  var totalDays = 0;  		
  var now = new Date();	
  var days = new Array(12);
  days[0] = 31;
  days[2] = 31;
  days[3] = 30;
  days[4] = 31;
  days[5] = 30;
  days[6] = 31;
  days[7] = 31;
  days[8] = 30;
  days[9] = 31;
  days[10] = 30;
  days[11] = 31;
  if (Math.round(now.getYear()/4) == now.getYear()/4) { days[1] = 29 } else { days[1] = 28 }
  if (now.getMonth() == 0) {
     totalDays = totalDays + now.getDate();
  } else {
     var curMonth = now.getMonth();
     for (var count = 1; count <= curMonth; count++) { totalDays = totalDays + days[count - 1]; }
     totalDays = totalDays + now.getDate();
   }
   var week = Math.round(totalDays/7);
   return week;
}
