	src="CalendarControl.js";
	function getKey(e) {
		if(!e) var e = window.event;
		if(document.captureEvents) document.captureEvents(Event.KEYPRESS);

		var val = e.keyCode || e.which;

		if (val == 13) {
			var tx = e.srcElement || e.target;
			if(tx.tagName.toLowerCase() == 'textarea') {		
				return;
			}else {	 
				e.cancelBubble = true;
				if (e.stopPropagation) e.stopPropagation();
				if (e.preventDefault) e.preventDefault();
				else e.returnValue = 0; 
			}	 
			//do the stuffs
			window.document.getElementById('sub1').click();
		}
	 }
 
 if (window.addEventListener) {
     document.addEventListener('keypress', function () {
         getKey(arguments[0]);
     }, false);
 }else {
     document.attachEvent('onkeypress', function () {
         getKey(arguments[0]);
     });
 }

function send_max(){
	document.pForm.send_max.value=1;
	document.pForm.ch_mod.value="ch_max";
	document.pForm.submit();
}

function loadcall(){

	var no_of_recipients=document.pForm.no_of_recipients.options[document.pForm.no_of_recipients.selectedIndex].value;
	if (no_of_recipients > 1) {
		document.pForm.header.disabled = true;
		document.pForm.header.value = "<recipient name>,";
	}

}

// For GiveAnything =====
function adjustForm(id)
{
 if(id==1){
  document.getElementById('sub1').value='Now attach your Gift Certificate';
  document.getElementById('msg1').innerHTML='<font color="red" size="1" face="Verdana"><b>If you do not want to attach a Gift Certificate to your ecard, please <A HREF="javascript:revert()">click here</A>.</b></font>';
  }
  else{
   document.getElementById('sub1').value='Preview & Send This ecard';
   document.getElementById('msg1').innerHTML='';
   }
}

function revert()
{
   document.getElementById('sub1').value='Preview & Send This ecard';
   document.getElementById('msg1').innerHTML='';
   document.getElementById('r1').checked=true;
}

function ga_chk()
{
 if(document.getElementById('r1').checked==false)
 {
    document.getElementById('sub1').value='Now attach your Gift Certificate';
	document.getElementById('msg1').innerHTML='<font color="red" size="1" face="Verdana"><b>If you do not want to attach a Gift Certificate to your ecard, please <A HREF="javascript:revert()">click here</A>.</b></font>';
}
}
// For GiveAnything =====


var rem_last=1;

function changeMultiple()
{
	
var str,str1;
var val, rest_recipients;
var no_of_recipients=document.pForm.no_of_recipients.options[document.pForm.no_of_recipients.selectedIndex].value;
this.foo = no_of_recipients
var flag=0;
if (no_of_recipients == 1) {
	document.pForm.header.disabled = false;
	document.pForm.header.value = "";
}
if (no_of_recipients > 1) {
	document.pForm.header.disabled = true;
	document.pForm.header.value = "<recipient name>,";
}
if(document.pForm.no_of_recipients.options[document.pForm.no_of_recipients.selectedIndex].text == '...More'){
 rem_last--;
 document.pForm.no_of_recipients.selectedIndex=rem_last;
 send_max();
 return;
}
rest_recipients=parseInt(no_of_recipients)+1;

var select=no_of_recipients;
	for(i=rest_recipients; i<=25; i++){
		if(document.getElementById('rname'+i).value){ 
			flag=1; 
			select++;
			
		}
		if(document.getElementById('remail'+i).value){ 
			flag=1;
		}
	}

if(flag==1){ 
	alert("Please delete the recipients' details to whom you are not sending this ecard !"); 
	select--;
	document.pForm.no_of_recipients.selectedIndex=select;
}
else{
	for(k=2; k<=no_of_recipients; k++){
	if(navigator.appName=='Microsoft Internet Explorer')
		document.getElementById("tdrow"+k).style.display="block";
		document.getElementById("tdrname"+k).style.display="block";
		document.getElementById("tdremail"+k).style.display="block";
	}
	for(i=k;i<=25;i++){
		if(navigator.appName=='Microsoft Internet Explorer')
		document.getElementById("tdrow"+i).style.display="none";
		document.getElementById("tdrname"+i).style.display="none";
		document.getElementById("tdremail"+i).style.display="none";
		str='<font face=Verdana size=2 color=#000080><b>E-mail Address</b></font>';
		document.getElementById("fe"+i).innerHTML=str;
		str1='<font face=Verdana size=2 color=#000080><b>Name</b></font>';
		document.getElementById("fn"+i).innerHTML=str1;
	}
}

rem_last=select;
//Validation(no_of_recipients)
}




function RTrim(VALUE){
var w_space = String.fromCharCode(32);
var v_length = VALUE.length;
var strTemp = "";
if(v_length < 0){
return"";
}
var iTemp = v_length -1;

while(iTemp > -1){
if(VALUE.charAt(iTemp) == w_space){
}
else{
strTemp = VALUE.substring(0,iTemp +1);
break;
}
iTemp = iTemp-1;

} 
return strTemp;

} 


function LTrim(VALUE){
var w_space = String.fromCharCode(32);
if(v_length < 1){
return"";
}
var v_length = VALUE.length;
var strTemp = "";

var iTemp = 0;

while(iTemp < v_length){
if(VALUE.charAt(iTemp) == w_space){
}
else{
strTemp = VALUE.substring(iTemp,v_length);
break;
}
iTemp = iTemp + 1;
} 
return strTemp;
} 


function validate()
{
Validation();
if(navigator.userAgent.indexOf('Mac') != -1)
{
 if(navigator.userAgent.indexOf('Safari')==-1 && navigator.userAgent.indexOf('MSIE')==-1)
 {
  location.href="#send";
 }
}
else
 location.href="#send";
var flg=0;
var flg1=0;var val;var str;
var ctr=0;var ctr1=0;var name=new Array();
var emails=new Array();
//var email=/^[a-zA-Z0-9\._-]+[@]+[a-zA-Z0-9\._-]+[.]+[a-zA-Z0-9\._-]+$/;
var email=/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
var no_rec=document.pForm.no_of_recipients.options[document.pForm.no_of_recipients.selectedIndex].value;
val=document.getElementById('semail0').value;
var em2=/^\s.*/;
var em3=/.*\s$/;


if(val.charAt(val.length-1)=='.')
{
 val=val.substring(0,val.length-1);
  document.getElementById('semail0').value=val;
}


if(em2.test(val))
{ 
  val=LTrim(val);
  document.getElementById('semail0').value=val;
}

if(em3.test(val))
{
  val=RTrim(val);
  document.getElementById('semail0').value=val;
}
if(!email.test(val))
{
str='<font face=Verdana size=2 color=red ><b>E-mail Address</b></font><BR><i><font size=1 face=Verdana color=000080>[Please enter a valid e-mail address.]</font></i>';
document.getElementById("fe0").innerHTML=str;
}
else 
{
str='<font face=Verdana size=2 color=#000080><b>E-mail Address</b></font>';
document.getElementById("fe0").innerHTML=str;
flg=1;
}
if(document.getElementById('sname0').value=="")
{
str='<b><font face=Verdana size=2 color=red ><B>From</B></font></b><BR><i><font size=1 face=Verdana color=000080>[Please enter a name below.]</font></i>';
document.getElementById("fn0").innerHTML=str;
}
else
{
str='<font face=Verdana size=2 color=#000080><B>From</B></font>';
document.getElementById("fn0").innerHTML=str; 
flg1=1;
}
var ind=1;var ct=1;var ctr=0;var ctr1=0;
for(i=0; i<no_rec; i++)
{
val=document.getElementById('remail'+ind).value;
if(val.charAt(val.length-1)=='.')
{
 val=val.substring(0,val.length-1);
  document.getElementById('remail'+ind).value=val;
}
if(em2.test(val))
{ 
  val=LTrim(val);
  document.getElementById('remail'+ind).value=val;
}

if(em3.test(val))
{
  val=RTrim(val);
  document.getElementById('remail'+ind).value=val;
}

if(!email.test(val) )
{
str='<b><font face=Verdana size=2 color=red ><B>E-mail Address</B></font></b><BR><i><font size=1 face=Verdana color=000080>[Please enter a valid e-mail address.]</font></i>';
document.getElementById("fe"+ct).innerHTML=str;
emails[i]=0;
}

else
{
str='<font face=Verdana size=2 color=#000080><B>E-mail Address</B></font>';
document.getElementById("fe"+ct).innerHTML=str;
emails[i]=1;
}
if(document.getElementById('rname'+ind).value=="")
{
str='<b><font face=Verdana size=2 color=red ><B>Name</B></font></b><BR><i><font size=1 face=Verdana color=000080>[Please enter a name below.]</font></i>';
document.getElementById("fn"+ct).innerHTML=str;
name[i]=0;
}
else
{
 str='<font face=Verdana size=2 color=#000080><B>Name</B></font>';  document.getElementById("fn"+ct).innerHTML=str; 
 name[i]=1;
}
ind++;
ct++;
}
for(j=0;j<name.length;j++)
{
 if(name[j]==1)
 {
 ctr++;
 }
}
for(k=0;k<emails.length;k++)
{
 if(emails[k]==1)
 {
 ctr1++;
 }
}
if(ctr==name.length  &&  ctr1==emails.length && flg==1 && flg1==1)
   return true;
else
   return false;

}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*function form_disp(c){
var card_name=c;
document.write("<form method=post action='http://www.thisismyindia.com/php/cards/send-card.php' name=pForm onsubmit='return validate()' id=pForm><table border=1 width=100% cellspacing=1 cellpadding=6 bgcolor=6666DB><tr><td width=100% bgcolor=#306CD0 height=19 align=center><font color=FFFFFF face=Verdana size=2><b>Personalize Your ecard</b></font></td></tr><tr><td valign=center bgcolor=ffffff><a name='send'></a><TABLE border=0 width=100% cellspacing=0 cellpadding=0><tr><td width=100% height=30 bordercolor=#BBCCEE bgcolor=#E0E8F8 colspan=2><b><font face=Verdana size=2 color=000080>Sender's Details</font></b></td></tr></TABLE><table border=0 width=630 cellspacing=0 cellpadding=0><tr><td width=50% valign=center><font face=Verdana size=2 color=000080 id='fn0'><b>Name</b></font>&nbsp;&nbsp;&nbsp;&nbsp;<input type=text name=sname0 id=sname0 size=25 value='' class=text></td><td width=50% valign=center><font face=Verdana size=2 color=000080 id='fe0'> &nbsp;<b>E-mail Address</b></font>&nbsp;<input type=text name=semail0 id=semail0 size=30 value='' class='b'></td></tr></table><TABLE border=0 width=100% cellspacing=0 cellpadding=0><tr><td width=100% height=30 bordercolor=#BBCCEE bgcolor=#E0E8F8 colspan=2><b><font face=Verdana size=2 color=000080>Recipient's Details</font></b></td></tr></TABLE><table border=0 width=630 cellspacing=0 cellpadding=0><tr id=tdrow1><td valign=top width=50% id=tdrname1>	<TABLE bgcolor=#FFFFFF width=100%><TR><td width=100% bgcolor=#FFFFFF><font face=Verdana size=2 color=000080 id='fn1'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>1.</B></font><input type=text name=rname1 size=25 value='' class='b' id=rname1></td></TR></TABLE></td><td valign=top width=50%><TABLE bgcolor=#FFFFFF width=100%<tr><td width=100%><font face=Verdana size=2 color=000080 id='fe1'><b>E-mail Address</b></font><input type=text name=remail1 size=30 value='' class='b' id=remail1></td></TR></TABLE></td></tr><tr style='display:none;' id=tdrow2><td valign=top><TABLE id=tdrname2 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn2'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>2.</B></font><input type=text name=rname2 id=rname2 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail2 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe2'><b>E-mail Address</b></font><input type=text name=remail2 id=remail2 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow3><td valign=top><TABLE id=tdrname3 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn3'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>3.</B></font><input type=text name=rname3 id=rname3 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail3 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe3'><b>E-mail Address</b></font><input type=text name=remail3 id=remail3 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow4><td valign=top><TABLE id=tdrname4 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn4'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>4.</B></font><input type=text name=rname4 id=rname4 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail4 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe4'><b>E-mail Address</b></font><input type=text name=remail4 id=remail4 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow5><td valign=top><TABLE id=tdrname5 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn5'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>5.</B></font><input type=text name=rname5 id=rname5 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail5 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe5'><b>E-mail Address</b></font><input type=text name=remail5 id=remail5 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow6><td valign=top><TABLE id=tdrname6 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn6'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>6.</B></font><input type=text name=rname6 id=rname6 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail6 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe6'><b>E-mail Address</b></font><input type=text name=remail6 id=remail6 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow7><td valign=top><TABLE id=tdrname7 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn7'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>7.</B></font><input type=text name=rname7 id=rname7 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail7 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe7'><b>E-mail Address</b></font><input type=text name=remail7 id=remail7 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow8><td valign=top><TABLE id=tdrname8 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn8'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>8.</B></font><input type=text name=rname8 id=rname8 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail8 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe8'><b>E-mail Address</b></font><input type=text name=remail8 id=remail8 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow9><td valign=top><TABLE id=tdrname9 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn9'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>9.</B></font><input type=text name=rname9 id=rname9 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail9 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe9'><b>E-mail Address</b></font><input type=text name=remail9 id=remail9 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow10><td valign=top><TABLE id=tdrname10 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn10'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>10.</B></font><input type=text name=rname10 id=rname10 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail10 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe10'><b>E-mail Address</b></font><input type=text name=remail10 id=remail10 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow11><td valign=top><TABLE id=tdrname11 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn11'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>11.</B></font><input type=text name=rname11 id=rname11 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail11 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe11'><b>E-mail Address</b></font><input type=text name=remail11 id=remail11 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow12><td valign=top><TABLE id=tdrname12 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn12'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>12.</B></font><input type=text name=rname12 id=rname12 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail12 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe12'><b>E-mail Address</b></font><input type=text name=remail12 id=remail12 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow13><td valign=top><TABLE id=tdrname13 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn13'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>13.</B></font><input type=text name=rname13 id=rname13 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail13 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe13'><b>E-mail Address</b></font><input type=text name=remail13 id=remail13 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow14><td valign=top><TABLE id=tdrname14 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn14'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>14.</B></font><input type=text name=rname14 id=rname14 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail14 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe14'><b>E-mail Address</b></font><input type=text name=remail14 id=remail14 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow15><td valign=top><TABLE id=tdrname15 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn15'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>15.</B></font><input type=text name=rname15 id=rname15 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail15 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe15'><b>E-mail Address</b></font><input type=text name=remail15 id=remail15 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow16><td valign=top><TABLE id=tdrname16 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn16'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>16.</B></font><input type=text name=rname16 id=rname16 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail16 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe16'><b>E-mail Address</b></font><input type=text name=remail16 id=remail16 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow17><td valign=top><TABLE id=tdrname17 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn17'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>17.</B></font><input type=text name=rname17 id=rname17 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail17 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe17'><b>E-mail Address</b></font><input type=text name=remail17 id=remail17 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow18><td valign=top><TABLE id=tdrname18 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn18'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>18.</B></font><input type=text name=rname18 id=rname18 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail18 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe18'><b>E-mail Address</b></font><input type=text name=remail18 id=remail18 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow19><td valign=top><TABLE id=tdrname19 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn19'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>19.</B></font><input type=text name=rname19 id=rname19 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail19 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe19'><b>E-mail Address</b></font><input type=text name=remail19 id=remail19 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow20><td valign=top><TABLE id=tdrname20 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn20'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>20.</B></font><input type=text name=rname20 id=rname20 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail20 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe20'><b>E-mail Address</b></font><input type=text name=remail20 id=remail20 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow21><td valign=top><TABLE id=tdrname21 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn21'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>21.</B></font><input type=text name=rname21 id=rname21 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail21 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe21'><b>E-mail Address</b></font><input type=text name=remail21 id=remail21 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow22><td valign=top><TABLE id=tdrname22 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn22'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>22.</B></font><input type=text name=rname22 id=rname22 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail22 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe22'><b>E-mail Address</b></font><input type=text name=remail22 id=remail22 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow23><td valign=top><TABLE id=tdrname23 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn23'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>23.</B></font><input type=text name=rname23 id=rname23 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail23 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe23'><b>E-mail Address</b></font><input type=text name=remail23 id=remail23 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow24><td valign=top><TABLE id=tdrname24 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn24'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>24.</B></font><input type=text name=rname24 id=rname24 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail24 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe24'><b>E-mail Address</b></font><input type=text name=remail24 id=remail24 size=30 value='' class='b'></td></tr></table></td></tr><tr style='display:none;' id=tdrow25><td valign=top><TABLE id=tdrname25 style='display:none;'><TR><td width=50%><font face=Verdana size=2 color=000080 id='fn25'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>25.</B></font><input type=text name=rname25 id=rname25 size=25 value='' class='b'></td></TR></TABLE></td><td valign=top><TABLE id=tdremail25 style='display:none;'><tr><td width=50%><font face=Verdana size=2 color=000080 id='fe25'><b>E-mail Address</b></font><input type=text name=remail25 id=remail25 size=30 value='' class='b'></td></tr></table></td></tr></table></td></tr></table><table border=0 width=100% cellspacing=1 cellpadding=3 bgcolor=6666DB><tr><td width=100% bgcolor=#E0E8F8 height=19 align=center><font color=000080 face=Verdana size=2><b>Number of Recipients</b></font><select name=no_of_recipients onChange='changeMultiple();' id=no_of_recipients><option value=1 >1<option value=2 >2<option value=3 >3<option value=4 >4<option value=5 >5<option value=6 >6<option value=7 >7<option value=8 >8<option value=9 >9<option value=10 >10<option value=11 >11<option value=12 >12<option value=13 >13<option value=14 >14<option value=15 >15<option value=16 >16<option value=17 >17<option value=18 >18<option value=19 >19<option value=20 >20<option value=21 >21<option value=22 >22<option value=23 >23<option value=24 >24<option value=25 >25</select><noscript>&nbsp;<input type=submit name=action value=Go></noscript></td></tr></table><table width=100% cellspacing=0 cellpadding=3 bordercolor=FFFFFF align=center border=1><tr><td width=100% bordercolor=0A05C7><table border=0 width=100% cellspacing=0 cellpadding=6><tr><td colspan=2 bgcolor=#E0E8F8><b><font color=000080 face=verdana size=2>Message Details</font></b></td></tr><tr><td width=50% valign=top><font color=000080 face=verdana size=2><b>Card Header</b></font><font color=000080 face=verdana size=2><br><input type=text name=header value='' size=54 class='b'></font></td></tr><tr><td valign=top><font color=000080 face=verdana size=2><b>Message</b></font><br><textarea name=message rows=8 cols=46 class='b'></textarea></td></tr><tr><td valign=top><font color=000080 face=verdana size=2><b>Card Footer</b></font><font color=000080 face=verdana size=2><br><input type=text name=footer value='' size=54 class='b'></font></td></tr></table></td></tr></table><table border=1 width=100% cellspacing=1 cellpadding=3 bordercolor=#BBCCEE><tr><td width=50% bgcolor=#E0E8F8 height=19 align=center><font color=000080 face=Verdana size=2><b>When do you want to send this card?</b></font></td><td width=50% bgcolor=#E0E8F8 valign='top'><font color=000080 face=Verdana size=2>&nbsp;&nbsp;&nbsp;Select Date :&nbsp;&nbsp;&nbsp;</font><input type='text' name='sdate' id='sdate' value='dd/mm/yy' onfocus='showCalendarControl(this);'></td></tr><SCRIPT SRC='CalendarControl.js'></SCRIPT><SCRIPT SRC='../CalendarControl.js'></SCRIPT></table><center><table><tr><td align=center colspan=2><input type=hidden name=card_name value="+card_name+"><input type=submit class=but_submit value='Preview Card' onClick='javascript:Validation()'>&nbsp;&nbsp;&nbsp;<input type=button class=but_submit value=Back onClick='javascript:history.go(-1)'></td></tr></table></center></form>");
*/
function form_disp(c){
var card_name=c;
document.write("<form method=post action='http://www.thisismyindia.com/php/cards/send-card.php' name=pForm onsubmit='return validate()' id=pForm><table border=1 width=100% cellspacing=1 cellpadding=6 bgcolor=6666DB><tr><td width=100% bgcolor=#306CD0 height=19 align=center><font color=FFFFFF face=Verdana size=2><b>Personalize Your ecard</b></font></td></tr><tr><td valign=center bgcolor=ffffff><a name='send'></a><TABLE border=0 width=100% cellspacing=0 cellpadding=0><tr><td width=100% height=30 bordercolor=#BBCCEE bgcolor=#E0E8F8 colspan=2><b><font face=Verdana size=2 color=000080>Sender's Details</font></b></td></tr></TABLE><table border=0 width=630 cellspacing=0 cellpadding=0><tr><td width=50% valign=center><font face=Verdana size=2 color=000080 id='fn0'><b>Name</b></font>&nbsp;&nbsp;&nbsp;&nbsp;<input type=text name=sname0 id=sname0 size=25 value='' class=text></td><td width=50% valign=center><font face=Verdana size=2 color=000080 id='fe0'> &nbsp;<b>E-mail Address</b></font>&nbsp;<input type=text name=semail0 id=semail0 size=30 value='' class='b'></td></tr></table><TABLE border=0 width=100% cellspacing=0 cellpadding=0><tr><td width=100% height=30 bordercolor=#BBCCEE bgcolor=#E0E8F8 colspan=2><b><font face=Verdana size=2 color=000080>Recipient's Details</font></b></td></tr></TABLE><table border=0 width=630 cellspacing=0 cellpadding=0><tr id=tdrow1><td valign=top width=50%><div id='txtHint'><TABLE bgcolor=#FFFFFF width=100%><tr><td width=100% bgcolor=#FFFFFF><font face=Verdana size=2 color=000080 id='fn1'><b>Name</b></font><font face=verdana size=2 color=000080>&nbsp;&nbsp;<B>1.</B></font><input type=text name=rname1 size=25 value='' class='b' id=rname1></td><td width=100%><font face=Verdana size=2 color=000080 id='fe1'><b>E-mail Address</b></font><input type=text name=remail1 size=30 value='' class='b' id=remail1></td></TR></TABLE></div></td></tr></table></td></tr></table><table border=0 width=100% cellspacing=1 cellpadding=3 bgcolor=6666DB><tr><td width=100% bgcolor=#E0E8F8 height=19 align=center><font color=000080 face=Verdana size=2><b>Number of Recipients</b></font><select name='no_of_recipients' onChange='showUser()' id='no_of_recipients'><option value=1 >1<option value=2 >2<option value=3 >3<option value=4 >4<option value=5 >5<option value=6 >6<option value=7 >7<option value=8 >8<option value=9 >9<option value=10 >10<option value=11 >11<option value=12 >12<option value=13 >13<option value=14 >14<option value=15 >15<option value=16 >16<option value=17 >17<option value=18 >18<option value=19 >19<option value=20 >20<option value=21 >21<option value=22 >22<option value=23 >23<option value=24 >24<option value=25>25</select><noscript>&nbsp;<input type=submit name=action value=Go></noscript></td></tr></table><table width=100% cellspacing=0 cellpadding=3 bordercolor=FFFFFF align=center border=1><tr><td width=100% bordercolor=0A05C7><table border=0 width=100% cellspacing=0 cellpadding=6><tr><td colspan=2 bgcolor=#E0E8F8><b><font color=000080 face=verdana size=2>Message Details</font></b></td></tr><tr><td width=50%valign=top><font color=000080 face=verdana size=2><b>Card Header</b></font><font color=000080 face=verdana size=2><br><input type=text name=header value='' size=54 class='b'></font></td></tr><tr><td valign=top><font color=000080 face=verdana size=2><b>Message</b></font><br><textarea name=message rows=8 cols=46 class='b'></textarea></td></tr><tr><td valign=top><font color=000080 face=verdana size=2><b>Card Footer</b></font><font color=000080 face=verdana size=2><br><input type=text name=footer value='' size=54 class='b'></font></td></tr></table></td></tr></table><table border=1 width=100% cellspacing=1 cellpadding=3 bordercolor=#BBCCEE><tr><td width=50% bgcolor=#E0E8F8 height=19 align=center><font color=000080 face=Verdana size=2><b>When do you want to send this card?</b></font></td><td width=50% bgcolor=#E0E8F8 valign='top'><font color=000080 face=Verdana size=2>&nbsp;&nbsp;&nbsp;Select Date :&nbsp;&nbsp;&nbsp;</font><input type='text' name='sdate' id='sdate' value='dd/mm/yy' onfocus='showCalendarControl(this);'></td></tr><SCRIPT SRC='CalendarControl.js'></SCRIPT><SCRIPT SRC='../CalendarControl.js'></SCRIPT></table><center><table><tr><td align=center colspan=2><input type=hidden name=card_name value="+card_name+"><input type=submit class=but_submit value='Preview Card' onClick='javascript:Validation()'>&nbsp;&nbsp;&nbsp;<input type=button class=but_submit value=Back onClick='javascript:history.go(-1)'></td></tr></table></center></form>");

var frmvalidator = new Validator("pForm");
//frmvalidator.addValidation("sname0","req","Please enter your Name");
//frmvalidator.addValidation("sname0","alpha");
//frmvalidator.addValidation("semail0","req","Please enter your E-Mail ID");
//frmvalidator.addValidation("semail0","email");
//frmvalidator.addValidation("rname1","req","Please enter Recipient Name");
//frmvalidator.addValidation("rname1","alpha");

/*for(k=1;k<=25;k++){
	frmvalidator.addValidation("rname"+k,"req","Please enter Recipient Name");
	frmvalidator.addValidation("rname"+k,"alpha");
	frmvalidator.addValidation("remail"+k,"req","Please enter Recipient E-Mail ID");
	frmvalidator.addValidation("remail"+k,"email");
}
//frmvalidator.addValidation("remail1","req","Please enter Recipient E-Mail ID");
//frmvalidator.addValidation("remail1","email");

frmvalidator.addValidation("header","req","Please enter the header text");
frmvalidator.addValidation("message","req","Please enter the message");
frmvalidator.addValidation("footer","req","Please enter the footer text");*/
}
function Validation(){
var frmvalidator = new Validator("pForm");
noofrec = document.pForm.no_of_recipients.options[document.pForm.no_of_recipients.selectedIndex].value;
frmvalidator.addValidation("sname0","req","Please enter your Name");
frmvalidator.addValidation("sname0","alpha");
frmvalidator.addValidation("semail0","req","Please enter your E-Mail ID");
frmvalidator.addValidation("semail0","email");
for(k=1;k<=noofrec;k++){
	frmvalidator.addValidation("rname"+k,"req","Please enter Recipient Name");
	frmvalidator.addValidation("rname"+k,"alpha");
	frmvalidator.addValidation("remail"+k,"req","Please enter Recipient E-Mail ID");
	frmvalidator.addValidation("remail"+k,"email");
}
frmvalidator.addValidation("header","req","Please enter the header text");
frmvalidator.addValidation("message","req","Please enter the message");
frmvalidator.addValidation("footer","req","Please enter the footer text");
}
function form_disp1(c){
var card_name=c;
document.write("<form name=card action='http://www.thisismyindia.com/php/cards/print-card.php' method=post><table border=0 cellpadding=3 cellspacing=3 align=center class=text ><tr><td align=center colspan=2><input type=hidden name=card_name value="+card_name+"><input type=submit class=but_submit value='Click for Printable Version'>&nbsp;&nbsp;&nbsp;</td></tr></table></form>");
}

function form_disp2(c){
var card_name=c;
document.write("<form name=card action='http://www.thisismyindia.com/free-e-cards/textarea/example.html' method=post><table border=0 cellpadding=3 cellspacing=3 align=center class=text ><tr><td align=center colspan=2><input type=hidden name=card_name value="+card_name+"><input type=submit class=but_submit value='Click for Print Your Message'>&nbsp;&nbsp;&nbsp;</td></tr></table></form>");
}
///////////////////////////////////////// OLD CODE //////////////////////////////////////////////////////////////////////////////////
/*function form_disp(c)
{
var card_name=c;
document.write("<form name=card action='http://www.thisismyindia.com/php/cards/send-card.php' method=post><table border=0 cellpadding=0 cellspacing=0 align=center class=text style='color:blue;border:1px solid blue;' width='600'><tr><td>Sender Name:</td><td><input type=text name=sender_name class=input></td><td>Sender E-mail:</td><td><input type=text name=sender_email class=input></td></tr></table><table border=0 cellpadding=0 cellspacing=0 align=center class=text style='color:blue;border:1px solid blue;'><tr><td bgcolor='#999999'>No. of Recipient's</td><td bgcolor='#999999'><select name=no_of_recipients onChange='changeMultiple();' id=no_of_recipients><option value=1 >1<option value=2 >2<option value=3 >3<option value=4 >4<option value=5 >5<option value=6 >6<option value=7 >7<option value=8 >8<option value=9 >9<option value=10 >10<option value=11 >11<option value=12 >12<option value=13 >13<option value=14 >14<option value=15 >15<option value=16 >16<option value=17 >17<option value=18 >18<option value=19 >19<option value=20 >20<option value=21 >21<option value=22 >22<option value=23 >23<option value=24 >24<option value=25 >25<option>...More</select><noscript>&nbsp;<input type=submit name=action value=Go></noscript> &nbsp;	<i><font size=1 face=Verdana color=000080></td></tr><tr><td>Recipient's Name:</td><td><input type=text name=rec_name class=input></td><td>Recipient E-mail:</td><td><input type=text name=rec_email class=input></td></tr><tr><td>Header Text:</td><td><input type=text name=head_txt class=input></td><td>Footer Text:</td><td><input type=text name=foot_txt class=input></td></tr><tr><td>Message:</td><td><textarea name=message class=input cols=18 rows=5 width='300'></textarea></td></tr><tr><td align=center colspan=2><input type=hidden name=card_name value="+card_name+"><input type=submit class=but_submit value='Preview Card'>&nbsp;&nbsp;&nbsp;<input type=button class=but_submit value=Back onClick='javascript:history.go(-1)'></td></tr></table></form>");
var frmvalidator = new Validator("card");

frmvalidator.addValidation("sender_name","req","Please enter your Name");
frmvalidator.addValidation("sender_name","alpha");

frmvalidator.addValidation("sender_email","req","Please enter your E-Mail ID");
frmvalidator.addValidation("sender_email","email");

frmvalidator.addValidation("rec_name","req","Please enter Recipient Name");
frmvalidator.addValidation("rec_name","alpha");

frmvalidator.addValidation("rec_email","req","Please enter Recipient E-Mail ID");
frmvalidator.addValidation("rec_email","email");

frmvalidator.addValidation("head_txt","req","Please enter the header text");
frmvalidator.addValidation("message","req","Please enter the message");
frmvalidator.addValidation("foot_txt","req","Please enter the footer text");

}
*/
var xmlHttp
function showUser()
{

var str = document.getElementById('no_of_recipients').value;

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="http://www.thisismyindia.com/free-e-cards/multiple.php"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged()  
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
 } 
}function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}