
var xmlHttpS;


function todayT(y,m,d){

document.getElementById("dd").innerHTML=d+"/"+m+"/"+y+"  (Äíåñ)";
document.getElementById("send_day").value=m+"/"+d+"/"+y;
document.getElementById("txtHintS").innerHTML="";
document.getElementById("today_date_check").checked =true;
}
function done_day(){

document.getElementById("txtHintS").innerHTML="";
document.getElementById("today_date_check").checked =true;
}

function showHintS(y,m,d,year,month,day)
{
//alert(y+m+d);


//alert(month + "/" + day + "/" + year);
//alert(d+"-"+day);
if(year==y && month==m && day>d){
//alert("in");
showHintS(y,m,day,year,month,day);
}else{




document.getElementById("dd").innerHTML=d+"/"+m+"/"+y;
document.getElementById("send_day").value=m+"/"+d+"/"+y;

if (y.length==0 && m.length==0 && d.length==0)
  { 
  document.getElementById("txtHintS").innerHTML="";
  return;
  }
xmlHttpS=GetXmlHttpObject();
if (xmlHttpS==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="http://"+domain_temp+"/ecards/gen_cal_small.php";

url=url+"?year="+y+"&month="+m+"&day="+d;
//alert(url);
xmlHttpS.onreadystatechange=stateChanged_small;
xmlHttpS.open("GET",url,true);
xmlHttpS.send(null);
} 

}

function stateChanged_small() 
{ 
if (xmlHttpS.readyState==4)
{ 
document.getElementById("txtHintS").innerHTML=xmlHttpS.responseText;

}
}




