function AA_preloadImages() {
  var d=document; 
  if(d.images)
  { 
	  if(!d.AA_p) d.AA_p=new Array();
    var i,j=d.AA_p.length,a=AA_preloadImages.arguments;
     for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0)
    { d.AA_p[j]=new Image; d.AA_p[j++].src=a[i];}}
}

function AA_swapImgRestore() { 
  var i,x,a=document.AA_sr;
   for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function AA_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=AA_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function AA_swapImage() {
  var i,j=0,x,a=AA_swapImage.arguments; document.AA_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=AA_findObj(a[i]))!=null){document.AA_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function hidestatus(){
window.status="";
return true
}

function poptastic1(url)
{
	var newwindow;
	newwindow=window.open(url,'name','height=500,width=550,left=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes');
	if (window.focus) {newwindow.focus()}
}
function popupwin(url)
{
	var newwindow;
	newwindow=window.open(url,'name','height=600,width=650,left=150,resizable=no,scrollbars=yes,toolbar=yes,menubar=yes');
	if (window.focus) {newwindow.focus()}
}
function popupwindim(url,w,h)
{
	var newwindow;
	newwindow=window.open(url,'name','height=' + h + ',width=' + w + ',left=100,resizable=no,scrollbars=yes,toolbar=yes,menubar=yes');
	if (window.focus) {newwindow.focus()}
}
function parentwinchange(url)
{
	parent.window.location.replace(url);
}

function chatwin(url)
{
	var newwindow;
	var w = screen.width;
  	var h = screen.height;
	newwindow=window.open(url,'name','height=' + h + ',width='  + w + ',left=100,resizable=yes,scrollbars=yes,toolbar=no,menubar=no');
	if (window.focus) {newwindow.focus()}
}

 
 function setdimensions()
 {
	 document.getElementById('wd1').value = screen.width;
	 document.getElementById('ht1').value = screen.height;
	 document.getElementById('wd2').value = screen.width;
	 document.getElementById('ht2').value = screen.height;
	//document.forms[0].elements[2].value = screen.height;
	//document.forms[0].elements[3].value = screen.width;
	//document.forms[1].elements[2].value = screen.height;
	//document.forms[1].elements[3].value = screen.width;
}



function changeImage(im_nm,im)
{
	document.getElementById[im_nm].src=im;	
}



function init()
      {
        // Microsoft Internet Explorer
        if (document.all)
        {
          document.all.loading.style.visibility="hidden";
          document.all.myapplet.style.visibility="visible";
          document.applets[0].repaint();
        }
        // Netscape Navigator
        else
        {
          document.loading.visibility="hide";
          document.myapplet.visibility="visible";
        }
      }
/*var serv_list = new Array();
serv_list[0] = "<div style='float:left;margin: 6px 0% 0% 0%;width:10px;height:11px;background-image: url(images-jpgs/blue_circle_sm.jpg);background-repeat: no-repeat;'></div><div style='float:left;margin: 0% 0% 0% 1%;width:96%;'><div style='float:left;width:65%'><font class='header_geo2'>Overview</font><div style='float:left;margin: 1px 0px 0px 2%;width:1px;height:12px'><img src='images-jpgs/dot.jpg' width='1' height='12'></div><div style='float:left;margin: 8px 0px 0px .5%;#margin: 15px 0px 0px .5%;width:12px;height:1px'><img src='images-jpgs/dot.jpg' width='12' height='1'></div><div  style='float:left;margin: 10px 0px 0px 2%;width:85%;'>The Last Minute Tutor finds, screens, and trains highly-qualified tutors in a variety of university and college disciplines. These tutors log in to the back-end of the Last Minute Tutor system and wait for assignments – typically while they complete work towards their graduate degrees.</div></div><div style='float:left;margin:0% 0% 0% 1%;width:32%'><img src='images/gold_diploma.jpg' width='150' height='150'></div><div style='float:left;margin: 2px 0px 0px 4.5%;width:95%;'>Students who need help – with essay proofing, math problems, physics concepts, or whatever else they’re stuck on – log in to the Last Minute Tutor system, find a tutor in the area in which they need help, and instantly connect via the live online tutoring chat system, instantly have their question sent out to all tutors in their subject area, or instantly have a tutor begin proofing their essay (please scroll down to learn more about these services).<p>Fees for the services offered by The Last Minute Tutor are comparable to those offered in person, but with no appointment necessary, no advance notice, no meeting arrangements, and no travel.</div></div>";
serv_list[1] = "<div style='float:left;margin: 6px 0% 0% 0%;width:10px;height:11px;background-image: url(images-jpgs/blue_circle_sm.jpg);background-repeat: no-repeat;'></div><div style='float:left;margin: 0% 0% 0% 1%;width:96%;'><div style='float:left;width:98%'><font class='header_geo2'>Live One-on-One</font><div style='float:left;margin: 1px 0px 0px 2%;width:1px;height:12px'><img src='images-jpgs/dot.jpg' width='1' height='12'></div><div style='float:left;margin: 8px 0px 0px .5%;#margin: 15px 0px 0px .5%;width:12px;height:1px'><img src='images-jpgs/dot.jpg' width='12' height='1'></div><div  style='float:left;margin: 10px 0px 0px 1%;width:62%'>You really can’t beat a live, qualified tutor when it comes to improving your grades, reducing stress, and truly learning your subject matter.  The problem I always found was that it took many days to set up meetings and find somewhere to meet.  Suffice it to say I never had a few extra days when I needed help – I needed it right now.</div><div style='float:left;margin:0% 0% 0% 0%;width:30%;'><div style='float:left;margin:0% 0% 0% 0%;width:41%;'><a href='#' onClick=popupwin('helpPics.jsp?pic=chat1lrg.jpg');return false;><img src='images-jpgs/chat1.jpg' height='73' width='110'></a> </div><div style='float:left;margin: 0% 0% 0% 10%;width:41%;'><a href='#' onClick=popupwin('helpPics.jsp?pic=chat2lrg.jpg');return false;><img src='images-jpgs/chat2.jpg' height='73' width='110'></a> </div>      </div></div><div style='float:left;margin:2% 0% 0% 1%;width:32%'><!--<a href='#' onClick=popupwin('helpPics.jsp?pic=chat_lr.jpg');return false;><img src='images-jpgs/chat_sm.jpg' alt='Live Chat Screen' width='100' height='100'></a>--> </div><div style='float:left;margin: 2px 0px 0px 4.5%;width:95%;'>Well, that’s what you get with The Last Minute Tutor – hence our name.To get immediate professional help, you simply <a href='RegForm.jsp'>register</a> (if you haven’t already), <a href='index.jsp'>log in</a>, and hand-pick a tutor in whatever subject you need help in.<p>When a tutor accepts the session, you are charged the agreed-upon fee (via PayPal), and a chat window opens between you and your tutor(requires Flash Player 8). More tutors are being added every day to make for less waiting and coverage in more subjects and disciplines.</div></div><div style='float:left;margin:1% 0% 0% 6.4%;width:93%'><div style='float:left;width:80%;'>There is now an option to create an appointment beforehand. You can set the date, time, and leave a small summary of the specifics of the tutoring you require. This new feature guarantees you a tutor exactly when you need one.</div><div style='float:left;margin:-3% 0% 0% 2%;width:18%;'><a href='#' onClick=popupwin('helpPics.jsp?pic=appointlrg.jpg');return false;><img src='images-jpgs/appointsm.jpg' alt='Essay Upload Screen' width='110' height='76'></a></div></div>";
serv_list[2] = "<div style='float:left;margin: 6px 0% 0% 0%;width:10px;height:11px;background-image: url(images-jpgs/blue_circle_sm.jpg);background-repeat: no-repeat;'></div><div style='float:left;margin: 0% 0% 0% 1%;width:96%;'><div style='float:left;width:65%'><font class='header_geo2'>Essay Proofing</font><div style='float:left;margin: 1px 0px 0px 2%;width:1px;height:12px'><img src='images-jpgs/dot.jpg' width='1' height='12'></div><div style='float:left;margin: 8px 0px 0px .5%;#margin: 15px 0px 0px .5%;width:12px;height:1px'><img src='images-jpgs/dot.jpg' width='12' height='1'></div><div  style='float:left;margin: 10px 0px 0px 2%;width:85%;'>The Last Minute Tutor offers last-minute essay proofing from highly-qualified university graduates with significant experience in editing and marking post-secondary and secondary-level essays.</div></div><div style='float:left;margin:2% 0% 0% 1%;width:32%'><a href='#' onClick=popupwin('helpPics.jsp?pic=ess_lrg.jpg');return false;><img src='images-jpgs/ess_sm.jpg' alt='Essay Upload Screen' width='110' height='76'></a></div><div style='float:left;margin: 2px 0px 0px 4.5%;width:95%;'>To get your essay proofed, <a href='RegForm.jasp'>register</a> (if you haven’t already), <a href='SignIn.jsp'>log in</a>, upload and pay the essay proofing fee (via PayPal).  An available tutor in your subject area will then accept the assignment and start work on your paper immediately (you will receive confirmation when work begins).<p>The Last Minute Tutor guarantees a 24-hour turnaround time on essay proofing and aims for a 12-hour turnaround.</div></div>";
serv_list[3] = "<div style='float:left;margin: 6px 0% 0% 0%;width:10px;height:11px;background-image: url(images-jpgs/blue_circle_sm.jpg);background-repeat: no-repeat;'></div><div style='float:left;margin: 0% 0% 0% 1%;width:96%;'><div style='float:left;width:65%'><font class='header_geo2'>Essay Proofing</font><div style='float:left;margin: 1px 0px 0px 2%;width:1px;height:12px'><img src='images-jpgs/dot.jpg' width='1' height='12'></div><div style='float:left;margin: 8px 0px 0px .5%;#margin: 15px 0px 0px .5%;;width:12px;height:1px'><img src='images-jpgs/dot.jpg' width='12' height='1'></div><div  style='float:left;margin: 10px 0px 0px 2%;width:85%;'>Just stumped on one problem, one question, one concept?  Having trouble finding a certain bit of information?  Have one ‘problem’ sentence that you want fixed?  Just want to try out our services for cheap?  These are all great reasons to use The Last Minute Tutor’s single-question utility.</div></div><div style='float:left;margin:2% 0% 0% 1%;width:32%'><a href='#' onClick=popupwin('helpPics.jsp?pic=ques_lrg.jpg');return false;><img src='images-jpgs/ques_sm.jpg' alt='Post Single Question Screen' width='110' height='76'></a></div><div style='float:left;margin: 1% 0px 0px 4.5%;width:95%;'>When you submit your question and pay your (minimal) fee, all available tutors are immediately  ‘pinged’ and the first qualified tutor to jump on the question will immediately begin work on an answer.  You should get an answer from an expert in the field within minutes. Satisfaction guaranteed.</div></div>";

function diffServices(serv_id)
{
	document.getElementById('serv_info').innerHTML = serv_list[serv_id];
}
*/



function clearfield(curr_field,text) {
  if (curr_field.value == text) {
    curr_field.value = "";
  }
}
function returntext(curr_field,text) {
  if (curr_field.value == "") {
    curr_field.value = text;
  }
}

var feat_list = new Array();
feat_list[0] = "<div style='float:left;width:15%'><img src='images/chat_globe.jpg' width='145' height='110'></div><div class='char_grey_small2' style='float:left;margin:2% 0% 0% 2%;width:83%'>You really can’t beat a live, qualified tutor when it comes to improving your grades, reducing stress, and truly learning your subject matter. The problem I always found was that it took many days to set up meetings and find somewhere to meet. Suffice it to say I never had a few extra days when I needed help – I needed it right now. Well, that’s what you get with The Last Minute Tutor – hence our name.To get immediate professional help, you simply register</div><div class='char_grey_small2' style='float:left;width:100%'>(if you haven’t already), log in, and hand-pick a tutor in whatever subject you need help in.When a tutor accepts the session, you are charged the agreed-upon fee (via PayPal), and a chat window opens between you and your tutor. There is no software to install and more tutors are being added every day to make for less waiting and coverage in more subjects and disciplines. <a class='link2' href='TutorList.jsp?sub=ALL'>Live Tutoring</a></div>";
feat_list[1] = "<div style='float:left;width:17%'><img src='images/C.jpg' width='145' height='97'></div><div class='char_grey_small2' style='float:left;margin:2% 0% 0% 1%;width:82%;'>The Last Minute Tutor offers last-minute essay proofing from highly-qualified university graduates with significant experience in editing and marking post-secondary and secondary-level essays.To get your essay proofed, register (if you haven’t already), log in, upload and pay the essay proofing fee (via PayPal). An available tutor in your subject area will</div><div class='char_grey_small2' style='float:left;width:100%;'>then accept the assignment and start work on your paper immediately (you will receive confirmation when work begins).The Last Minute Tutor guarantees a 24-hour turnaround time on essay proofing and aims for a 12-hour turnaround. <a class='link2' href='EssayReview.jsp'>Essay Proofing</a></div>";
//feat_list[2] = "<div style='float:left;width:15%'><img src='images/chat_globe.jpg' width='145' height='110'></div><div class='char_grey_small2' style='float:left;margin:2% 0% 0% 2%;width:83%'>You really can’t beat a live, qualified tutor when it comes to improving your grades, reducing stress, and truly learning your subject matter. The problem I always found was that it took many days to set up meetings and find somewhere to meet. Suffice it to say I never had a few extra days when I needed help – I needed it right now. Well, that’s what you get with The Last Minute Tutor – hence our name.To get immediate professional help, you simply register</div><div class='char_grey_small2' style='float:left;width:100%'>(if you haven’t already), log in, and hand-pick a tutor in whatever subject you need help in.When a tutor accepts the session, you are charged the agreed-upon fee (via PayPal), and a chat window opens between you and your tutor. There is no software to install and more tutors are being added every day to make for less waiting and coverage in more subjects and disciplines. <a class='link2' href='TutorList.jsp?sub=ALL'>Live Tutoring</a></div>";
//feat_list[3] = "<div style='float:left;width:15%'><img src='images/chat_globe.jpg' width='145' height='110'></div><div class='char_grey_small2' style='float:left;margin:2% 0% 0% 2%;width:83%'>You really can’t beat a live, qualified tutor when it comes to improving your grades, reducing stress, and truly learning your subject matter. The problem I always found was that it took many days to set up meetings and find somewhere to meet. Suffice it to say I never had a few extra days when I needed help – I needed it right now. Well, that’s what you get with The Last Minute Tutor – hence our name.To get immediate professional help, you simply register</div><div class='char_grey_small2' style='float:left;width:100%'>(if you haven’t already), log in, and hand-pick a tutor in whatever subject you need help in.When a tutor accepts the session, you are charged the agreed-upon fee (via PayPal), and a chat window opens between you and your tutor. There is no software to install and more tutors are being added every day to make for less waiting and coverage in more subjects and disciplines. <a class='link2' href='TutorList.jsp?sub=ALL'>Live Tutoring</a></div>";
//feat_list[4] = "<div style='float:left;width:15%'><img src='images/chat_globe.jpg' width='145' height='110'></div><div class='char_grey_small2' style='float:left;margin:2% 0% 0% 2%;width:83%'>You really can’t beat a live, qualified tutor when it comes to improving your grades, reducing stress, and truly learning your subject matter. The problem I always found was that it took many days to set up meetings and find somewhere to meet. Suffice it to say I never had a few extra days when I needed help – I needed it right now. Well, that’s what you get with The Last Minute Tutor – hence our name.To get immediate professional help, you simply register</div><div class='char_grey_small2' style='float:left;width:100%'>(if you haven’t already), log in, and hand-pick a tutor in whatever subject you need help in.When a tutor accepts the session, you are charged the agreed-upon fee (via PayPal), and a chat window opens between you and your tutor. There is no software to install and more tutors are being added every day to make for less waiting and coverage in more subjects and disciplines. <a class='link2' href='TutorList.jsp?sub=ALL'>Live Tutoring</a></div>";
//feat_list[5] = "<div style='float:left;width:15%'><img src='images/chat_globe.jpg' width='145' height='110'></div><div class='char_grey_small2' style='float:left;margin:2% 0% 0% 2%;width:83%'>You really can’t beat a live, qualified tutor when it comes to improving your grades, reducing stress, and truly learning your subject matter. The problem I always found was that it took many days to set up meetings and find somewhere to meet. Suffice it to say I never had a few extra days when I needed help – I needed it right now. Well, that’s what you get with The Last Minute Tutor – hence our name.To get immediate professional help, you simply register</div><div class='char_grey_small2' style='float:left;width:100%'>(if you haven’t already), log in, and hand-pick a tutor in whatever subject you need help in.When a tutor accepts the session, you are charged the agreed-upon fee (via PayPal), and a chat window opens between you and your tutor. There is no software to install and more tutors are being added every day to make for less waiting and coverage in more subjects and disciplines. <a class='link2' href='TutorList.jsp?sub=ALL'>Live Tutoring</a></div>";
//feat_list[6] = "<div style='float:left;width:15%'><img src='images/chat_globe.jpg' width='145' height='110'></div><div class='char_grey_small2' style='float:left;margin:2% 0% 0% 2%;width:83%'>You really can’t beat a live, qualified tutor when it comes to improving your grades, reducing stress, and truly learning your subject matter. The problem I always found was that it took many days to set up meetings and find somewhere to meet. Suffice it to say I never had a few extra days when I needed help – I needed it right now. Well, that’s what you get with The Last Minute Tutor – hence our name.To get immediate professional help, you simply register</div><div class='char_grey_small2' style='float:left;width:100%'>(if you haven’t already), log in, and hand-pick a tutor in whatever subject you need help in.When a tutor accepts the session, you are charged the agreed-upon fee (via PayPal), and a chat window opens between you and your tutor. There is no software to install and more tutors are being added every day to make for less waiting and coverage in more subjects and disciplines. <a class='link2' href='TutorList.jsp?sub=ALL'>Live Tutoring</a></div>";
//feat_list[7] = "<div style='float:left;width:15%'><img src='images/chat_globe.jpg' width='145' height='110'></div><div class='char_grey_small2' style='float:left;margin:2% 0% 0% 2%;width:83%'>You really can’t beat a live, qualified tutor when it comes to improving your grades, reducing stress, and truly learning your subject matter. The problem I always found was that it took many days to set up meetings and find somewhere to meet. Suffice it to say I never had a few extra days when I needed help – I needed it right now. Well, that’s what you get with The Last Minute Tutor – hence our name.To get immediate professional help, you simply register</div><div class='char_grey_small2' style='float:left;width:100%'>(if you haven’t already), log in, and hand-pick a tutor in whatever subject you need help in.When a tutor accepts the session, you are charged the agreed-upon fee (via PayPal), and a chat window opens between you and your tutor. There is no software to install and more tutors are being added every day to make for less waiting and coverage in more subjects and disciplines. <a class='link2' href='TutorList.jsp?sub=ALL'>Live Tutoring</a></div>";

function diff_feats(feat_id)
{
	document.getElementById('feat_info').innerHTML = feat_list[feat_id];
}

var today = new Date();
function startTime()
{
	var month = new Array();
	var lastDay = getDaysMonth(today.getFullYear(),today.getMonth());
	var firstDate = getDayOfWeek(today.getFullYear(),today.getMonth(),1);
	var pos = 0;
	for(var x = 0;x<firstDate;x++)
	{
		month[pos] = "-1";	
		pos++;
	}
	
	for(var x = 1;x<=lastDay;x++)
	{
		month[pos] = x;
		pos++;
	}
	
	var lastDate = getDayOfWeek(today.getFullYear(),today.getMonth(),lastDay);
	if(lastDate < 6)
	{
		for(var x = 0;x< 6-lastDate;x++)
		{
			month[pos] = "-1";
			pos++;
		}	
	}
	var str_mnth = "";
	switch(today.getMonth())
	{
		case 0:
		str_mnth = "January";
		break;
		case 1:
		str_mnth = "February";
		break;
		case 2:
		str_mnth = "March";
		break;
		case 3:
		str_mnth = "April";
		break;
		case 4:
		str_mnth = "May";
		break;
		case 5:
		str_mnth = "June";
		break;
		case 6:
		str_mnth = "July";
		break;
		case 7:
		str_mnth = "August";
		break;
		case 8:
		str_mnth = "September";
		break;
		case 9:
		str_mnth = "October";
		break;
		case 10:
		str_mnth = "November";
		break;
		case 11:
		str_mnth = "December";
		break;	
	}
	//document.getElementById('txt').innerHTML=getDaysMonth(today.getFullYear(),today.getMonth()+1);
	//getDaysMonth(today.getFullYear(),today.getMonth())
	var jsScript = "<table style='border: 4px solid #A9C0E3;width:100%;'>";
	jsScript = jsScript + "<tr><td><table cellspacing=0 style='width:100%;'>";
	jsScript = jsScript + "<tr class='char_grey_small2' style='text-align:center;height:10px;background-color: #C0D3F1;'><td style='width:12%;' onClick='addMonth(-1)'><img src='image_links/calendar_arr_l.png' height=18 width=9 ></td>";
	
	jsScript = jsScript + "<td style='width:76%;'>" + str_mnth + " " + today.getFullYear() +"</td>";
	jsScript = jsScript + "<td style='width:12%;' onClick='addMonth(1)'><img src='image_links/calendar_arr_r.png' height=18 width=9 ></td></tr></table>";
	jsScript = jsScript + "<tr><td><table style='width:100%;'>";
	jsScript = jsScript + "<tr class='char_grey_medium' style='text-align:center;'><td style='background-color: #C0D3F1;width:14.2%'>Sun</td><td style='background-color: #C0D3F1;width:14.2%'>Mon</td><td style='background-color: #C0D3F1;width:14.2%;'>Tues</td><td style='background-color: #C0D3F1;width:14.2%'>Wed</td><td style='background-color: #C0D3F1;width:14.2%'>Thur</td><td style='background-color: #C0D3F1;width:14.2%'>Fri</td><td style='background-color: #C0D3F1;width:14.2%'>Sat</td></tr>";
	var week = 0;
	var nweeks = 0;
	for(var x = 0;x<month.length;x++)
	{
		if(week == 0)
		{
			jsScript = jsScript + "<tr class='char_grey_small2' style='text-align:center;height:10px;'>";
		}
		if(month[x] == -1)
		{
			jsScript = jsScript + "<td class='calendar_border' style='background-color: #C0D3F1;width:14.2%;'>&nbsp</td>";

		}
		else
		{
			jsScript = jsScript + "<td  class='calendar_border' id=" +  x + " style='background-color: #C0D3F1;width:14.2%;' onMouseOver='changeCell(" + x + ")' onMouseOut='changeCellBack(" + x + ")' onClick='addDate(" + month[x] + ")'>" + month[x] + "</td>";
		}
		week++;
		if(week == 7)
		{
			jsScript = jsScript + "</tr>";
			week = 0;
			nweeks++;
		}
	}
	if(nweeks == 4)
	{
		jsScript = jsScript + "<tr style='background-color: #C0D3F1;height:26px'><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>";
		jsScript = jsScript + "<tr style='background-color: #C0D3F1;height:26px'><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>";
	}
	else if(nweeks == 5)
	{
		jsScript = jsScript + "<tr style='background-color: #C0D3F1;height:26px'><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>";
	}
	jsScript = jsScript + "</table></td></tr></table>";
	document.getElementById('calendar').innerHTML = jsScript;
	
}
function addDate(dy)
{
	var str_dt = dy + "/" + (today.getMonth() + 1) + "/" + today.getFullYear();
	document.getElementById("date").value = str_dt;
}
function addMonth(ntimes)
{
	/*if(today.getMonth() == 11 && ntimes == 1)
	{
		today.setMonth(0);
	}
	else if(today.getMonth() == 0 && ntimes == -1)
	{
		today.setMonth(11);
	}
	else
	{*/
		today.setMonth(today.getMonth() + ntimes);
	//}
	startTime();
}

function changeCell(cellID)
{
	document.getElementById(cellID).style.borderColor = "#797A81";	
}
function changeCellBack(cellID)
{
	document.getElementById(cellID).style.borderColor = "#C0D3F1";	
}
function getDaysMonth(yr,mnth)
{
	return 32 - new Date(yr,mnth,32).getDate();
}
function getDayOfWeek(yr,mth,dy)
{
	var nDate = new Date(yr,mth,dy);
	return nDate.getDay();
}



