var Getmonthweek = function (A, B, c) {/
*
a = d = Current date
b = 6-w = The current week is still a few days past (not today)
A + B and divided by 7 is the current month The week of the share
*/
var date = new Date (A, parseint (b)-1, c), W = Date.getday (), d = date.getdate ();
Return Math.ceil (
(d + 6-w)/7
);
};
var Getyearweek = function (A, B, c) {/
*
Date1 is the current date
Date2 is the first day of the year
D is the current date is the number of days
in D + The sum of the weeks of the first day of the current year divided by 7 is the week of the year
*/
var date1 = new Date (A, parseint (b)-1, c), date2 = new Date (A, 0, 1),
d = Mat H.round ((date1.valueof ()-date2.valueof ())/86400000);
Return Math.ceil (
(D + ((Date2.getday () + 1)-1)/7
);
/* today=new date ()//Get current time */
var y = smonth[0];//year
var m = smonth[1];//month
var d = smonth[2];//day
Aler T (Getmonthweek (Y, M, d));