//----soundcard technology---------
function soundcardform(imagename,soundfile)
{
document.write('<FORM METHOD=POST name="sound" ACTION="http://www.dgreetings.com/cgi-bin/soundcard.cgi" onSubmit="return isValidpremail(document.sound.elements[1].value, document.sound.elements[3].value , document.sound.elements[8].value , document.sound.elements[10].value, document.sound.elements[12].value , document.sound.elements[14].value , document.sound.elements[16].value)">');


document.write('<CENTER>');
document.write('<TABLE CELLPADDING=0 CELLSPACING=6 WIDTH=300 border=0>');

document.write('<TR>');
document.write('<TD colspan=3><input type="hidden" name="file" value="'+imagename+'" MAXLENGTH=100></TD>');
document.write('</TR>');

//document.write('<TR>');
//document.write('<BR><TD colspan=3><FONT SIZE=-1 color="blue">Personalise your card. Use "tab" key to go on to the next field.<br>(* Denotes a required field.)</FONT></TD>');
//document.write('</TR>');

document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Recipient\'s Email</FONT><sup>*</sup></TD>');
document.write('<TD><input type="TEXT" name="recipient" SIZE=30 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Recipient\'s Name</FONT><sup>*</sup></TD>');
document.write('<TD><input type="text" name="to" value="" SIZE=30 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Sender\'s Email</FONT><sup>*</sup></TD>');
document.write('<TD><input type="TEXT" name="senderemail" SIZE=30 MAXLENGTH=100></TD>');
document.write('</TR>');

 
document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Sender\'s Name</FONT><sup>*</sup></TD>');
document.write('<TD><input type="TEXT" name="realname" value="" SIZE=30 MAXLENGTH=100></TD>');
document.write('</TR>');


document.write('<TR>');
document.write('<TD colspan=3><BR></TD>');

document.write('</TR>');


document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Personal Message:<sup>1</sup></FONT></TD>');
document.write('<TD colspan=2><TEXTAREA NAME="message" COLS="37" ROWS="2" WRAP="virtual" value=""></textarea></TD>');
document.write('</TR>');

 // ************ SUBMIT BUTTON FOR SINGLE RECIEPIENT*******************

document.write('<TR>');
document.write('<TD COLSPAN=2><INPUT TYPE="SUBMIT" NAME="action" onClick="vali(document.sound.elements[8].value ,document.sound.elements[10].value ,document.sound.elements[12].value ,document.sound.elements[14].value , document.sound.elements[16].value);" VALUE="Send Card"></TD>');
//************************ PREVIEW OF CARD BEEING SEND *******************

document.write('<TD><input type="Button" name="pre" value="Preview" onClick="preview(document.sound.elements[2].value, document.sound.elements[4].value, document.sound.elements[5].value, file.value);"></td>'); 

//********************** END OF PREVIEW *******************

document.write('</TR>');

document.write('<TR>');
document.write('<td colspan=3><br><FONT SIZE=-1 color="blue">For the multiple dispatch of this Card, fill in the E-mail addresses below and press any "Send Card" Button.</FONT><br><br>');
document.write('</TR>');



document.write('<TR>');
document.write('<TD COLSPAN=2><FONT SIZE=-1  color="navy">Recipient\'s Email<sup>2</sup></FONT></TD>');
document.write('<TD><FONT SIZE=-1 color="navy">Recipient\'s Name</FONT></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient1" SIZE=25 MAXLENGTH=100></TD>');
document.write('<TD><input type="TEXT" name="to1" SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient2" SIZE=25 MAXLENGTH=100></TD>');
document.write('<TD><input type="text" name="to2"  SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient3" SIZE=25 MAXLENGTH=100></FONT></TD>');
document.write('<TD><input type="TEXT" name="to3"  SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient4" SIZE=25 MAXLENGTH=100></TD>');
document.write('<TD><input type="TEXT" name="to4" SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient5" SIZE=25 MAXLENGTH=100></TD>');
document.write('<TD><input type="TEXT" name="to5" SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');
//*********
document.write('<TR><td colspan=3><input type="hidden" name="number" value=""></td>');
document.write('</TR>');
document.write('<tr><td colspan=3><input type="hidden" name="sound" value="'+soundfile+'"></td></tr>');
//*********** SUBMIT AND RESET BUTTONS OF MULTIPLE DISPATCH *********

document.write('<TR>');
document.write('<TD COLSPAN=3><INPUT TYPE="SUBMIT" NAME="action" VALUE="Send Card" onClick="convey(file.value);vali(document.sound.elements[8].value ,document.sound.elements[10].value ,document.sound.elements[12].value ,document.sound.elements[14].value , document.sound.elements[16].value);" > &nbsp;&nbsp;<INPUT TYPE="RESET" NAME="Reset" VALUE="Clear All"></TD>');

document.write('</TR>');

document.write('<TR>');
document.write('</TR>');

document.write('</TABLE>');
document.write('</center>');

document.write('<TABLE CELLPADDING=0 CELLSPACING=6 WIDTH=400 border=0 >');
document.write('<TR align=left>');
document.write('<TD align=right valign=top><FONT SIZE=1 color="#B01C5F">NOTE:</FONT></TD>');
document.write('<TD valign=top align=left><FONT SIZE=1 color="#0000da">1</FONT></TD>' );
document.write('<TD COLSPAN=2><FONT SIZE=1 color="#0000da">Incase of multiple dispatch the message goes to every recipient.</FONT></TD>');
document.write('</TR>');



document.write('<TR>');
document.write('<TD> </TD>');
document.write('<TD valign=top><FONT SIZE=1 color="#0000da">2</FONT></TD>' );
document.write('<TD COLSPAN=2><FONT SIZE=1 color="#0000da">You can enter multiple recipient\'s email in a single email field by separating the e-mail names with ","</FONT></TD>'); 
document.write('</TR>');
document.write('</TABLE>');

document.write('</FORM>');

//*********closing brace of soundcardform **********

}

//************number of pages for holi

function isValidpremail(e1,e2,e3,e4,e5,e6,e7){
	email=new Array(e1,e2,e3,e4,e5,e6,e7);
		for (j=0; j<7 ; j++) {
                                              emailArr=email[j].split(",")
                                                 for(var k=0 ;k < emailArr.length; ++k) {
					x=emailArr[k];
                         			if(!isBlank(x)) {
								if(isValidEmail(x)) continue;
                                   						else { 
									alert("Enter Valid E-mail");
								
								
									return false;}
								}
					}
				      }
		return true;
}



function isBlank(s){
//prompt("the value of s",s);
  var len = s.length
  var i
 for(i = 0; i<len ; ++i) {
  if (s.charAt(i)!=" ") return false;  
			}
   return true;
}

function isValid(s1) {
var ch = s1.charAt(0);
var chArr = new Array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' , '-');
for(i = 0;i < 26 ; i++ ) {
 if (ch == chArr[i].toUpperCase() || ch == chArr[i]) return true
}
return false
}


function isValidEmail(e){
var spch = new Array('~','`',"'",'"',',','!','#','$','%','^','&','*',"(",")","=","+","|","\\","{","}","[","]",";",":","?","/","<",">")
var len = spch.length
var elen = e.length
var i=e.indexOf("@")
var j=0
var k=0
if(isValid(e) && i>0){
  if( (i >= 1) && (e.indexOf("@",i+1) == -1) && (e.indexOf(".",i+1) > 0)){
       for(j = 0;j < elen;j++){
          for(k = 0;k < len;k++){
                if(e.charAt(j) == spch[k])   return false
                                       }
                                     }
               return true
             }
}
return false
}



function suggestthesite()
{
document.write('<FORM METHOD=POST ACTION="http://www.dgreetings.com/cgi-bin/suggestsite.pl">')
document.write('<CENTER>')
document.write('<TABLE CELLPADDING=0 CELLSPACING=6 WIDTH=400 border=0>')
document.write('<TR>')
document.write('<TD colspan=2><FONT SIZE=-1>* Denotes a required field.</FONT></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('<TD><FONT SIZE=-1>Friend\'s Email</FONT><sup>*</sup></TD>')
document.write('<TD><input type="TEXT" name="recipient" SIZE=30 MAXLENGTH=100></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('<TD><FONT SIZE=-1>Friend\'s Name</FONT><sup>*</sup></TD>')
document.write('<TD><input type="text" name="to" value="" SIZE=30 MAXLENGTH=100></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('<TD><FONT SIZE=-1>Your Email</FONT><sup>*</sup></TD>')
document.write('<TD><input type="TEXT" name="email" SIZE=30 MAXLENGTH=100></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('<TD><FONT SIZE=-1>Your Name</FONT><sup>*</sup></TD>')
document.write('<TD><input type="TEXT" name="realname" value="" SIZE=30 MAXLENGTH=100></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('<TD colspan=2><FONT SIZE=-1>Message:<br>(Send a personal message.)</FONT></TD>')
document.write('<TD></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('<TD colspan=2><TEXTAREA NAME="message" COLS="37" ROWS="2" WRAP="virtual" value=""></TEXTAREA></TD>')
document.write('</TR>')
document.write('<TR>')
document.write('<TD COLSPAN=2><INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Recommend"> &nbsp;&nbsp;<INPUT TYPE="RESET" NAME="Reset" VALUE="Clear All"></TD>')
document.write('</TR>')
document.write('</TABLE>')
document.write('</CENTER>')
document.write('</FORM>')
}


//********** function to check no. of cards ***************

function vali(message0){
	count0=0;	
	
	var i0=message0.length;
	
	
	
//********* content validator for recipient0 *************
    
	if(message0!=""){
					for(j=0;j<i0;j++){
									if(message0.charAt(j)==","){
																count0++;		
																//alert("received message");
											
																}
													
									else					{
										
															}
									}
					count0++;
					//prompt("the count is1:",count0)
			    	}

//********* content validator for recipient2 *************
    
	
		count=count0;
		count=count+1;
		//prompt("the total no of cards",count);
		document.theform.number.value=count;
	         //alert(document.forms[0].number.value);
		count=0;



//*************closing brace for the function *************
}

//***email validation incase of single recipient*****
function isValidpremail1(e1,e2){
	email=new Array(e1,e2);
		for (j=0; j<email.length ; j++) {
                                              emailArr=email[j].split(",")
                                                 for(var k=0 ;k < emailArr.length; ++k) {
					x=emailArr[k];
                         			if(!isBlank(x)) {
								if(isValidEmail(x)) continue;
                                   						else { 
									alert("Enter Valid E-mail");
								
								
									return false;}
								}
					}
				      }
		return true;
}






//**************personalised card form *************
function personalised(rpteid,rptname,sdreid,sdrname,imagename,ig1,ig2){

//*********check for passing of relevant values****************

/*prompt("Recipient Name:",rptname);
	prompt("Recipient Email:",rpteid);
	prompt("Your Name:",sdrname);
	prompt("Your Email:",sdreid);
	prompt("Image Name:",imagename);
	prompt("Your Message:",msg);*/
//prompt("image name",imagename);
/*prompt("month",month11);
prompt("day",day11);
prompt("year",year11);
prompt("dateselected",dateselected11);*/
document.write('<HTML><HEAD><TITLE>Personalised Greeting Cards:Dgreetings.com</TITLE>');
document.write('<META NAME="Description" CONTENT="Greeting cards for all occasions ie, anniversary, birthday, christmas, congratulations, diwali, dusshera, engagement, friend, farewell, good luck, get well soon, love you, miss you, new year, sorry, thank you, wedding"><META NAME="Keywords" CONTENT="card, anniversary, anniversary greeting cards, anniversarygreetingcards, greeting cards, greetings, creative cards, creativity, egreetings, anniversary card, anniversarycard, anniversary cards, anniversarycards, dgreetings ">');
document.write('<link rel=stylesheet href="http://www.dgreetings.com/style/style1.css" type="text/css">');


//*****check for exsistence of cookie******
document.write('</head>');
document.write('<BODY BGCOLOR="#FFFFFF" link="#003366" vlink="#336699" text="#424242" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0>');
// ************ End of Header **************

//************ left table*****************
document.write('<TABLE border=0 CELLPADDING=0 CELLSPACING=0 WIDTH=128 ALIGN=left><TR><TD WIDTH=128 VALIGN=top><CENTER>');
document.write('</CENTER></TD></TR></TABLE>'); 

// ************ check for empty fields************ 

if((rptname=="") || (rpteid=="") || (sdrname=="") || (sdreid=="")){
document.write('<br><br><br><center><font size="+2" face="comic sans ms" color="red">You have missed certain data .Please check the fields marked " * ".</font></center>');
}

else{
document.write('<form method="post" action="http://www.dgreetings.com/cgi-bin/personalisecardsnew.pl">');

//****************start of table *****************

document.write('<TABLE border=0 CELLPADDING=10 CELLSPACING=0 WIDTH=467><TR>');

//****************start of hidden fields*****************

document.write('<TD colspan=2><input type="hidden" name="recipient" value="'+rpteid+'">');
document.write('</td></tr>');
document.write('<tr><TD colspan=2><input type="hidden" name="to" value="'+rptname+'">');
document.write('</td></tr>');
document.write('<tr><TD colspan=2><input type="hidden" name="senderemail" value="'+sdreid+'">');
document.write('</td></tr>');
document.write('<tr><TD colspan=2><input type="hidden" name="realname" value="'+sdrname+'">');
document.write('</td></tr>');
document.write('<tr><TD colspan=2><br><font color="navy">Enter Message:</font><br><textarea name="message" value="" cols=50 rows=10 wrap="virtual" ></textarea>');
document.write('</td></tr>');
document.write('<tr><TD colspan=2><input type="hidden" name="file" value="'+imagename+'">');
document.write('</td></tr>');
document.write('<tr><TD colspan=2><input type="hidden" name="file1" value="'+ig1+'">');
document.write('</td></tr>');
document.write('<tr><TD colspan=2><input type="hidden" name="file2" value="'+ig2+'">');
document.write('</td></tr>');

//********************user defined background color************

document.write('<tr><td><font color="navy">Select the Background Colour:</font></td><td><select name="bgcolor" >');
document.write('<option value="">');
document.write('<option value="black">Black');
document.write('<option value="blue">Blue');
document.write('<option value="cyan">Cyan');
document.write('<option value="darkblue">Dark Blue');
document.write('<option value="darkgreen">Dark Green');
document.write('<option value="darkred">Dark Red');
document.write('<option value="gray">Gray');
document.write('<option value="green">Green');
document.write('<option value="magenta">Magenta');
document.write('<option value="orange">Orange');
document.write('<option value="pink">Pink');
document.write('<option value="purple">Purple');
document.write('<option value="red">Red');
document.write('<option value="yellow">Yellow');
document.write('<option value="white">White');

document.write('</select></td></tr>');

//***********user defined text color *************

document.write('<tr><td><font color="navy">Select the Text Colour:</font></td><td><select name="fgcolor">');

document.write('<option value="">');
document.write('<option value="black">Black');
document.write('<option value="blue">Blue');
document.write('<option value="cyan">Cyan');
document.write('<option value="darkblue">Dark Blue');
document.write('<option value="darkgreen">Dark Green');
document.write('<option value="darkred">Dark Red');
document.write('<option value="gray">Gray');
document.write('<option value="green">Green');
document.write('<option value="magenta">Magenta');
document.write('<option value="orange">Orange');
document.write('<option value="pink">Pink');
document.write('<option value="purple">Purple');
document.write('<option value="red">Red');
document.write('<option value="yellow">Yellow');
document.write('<option value="white">White');
document.write('</select></td></tr>');

//****************datetime*************

document.write('<tr><td COLSPAN="2">')
document.write('<table><tr><td>')
document.write('<font size="-1" face="Arial" color="#b20010">To send the card on the future date click the checkbox and select the desired date.</font>')
document.write('</td></tr>')
document.write('</TABLE>')
document.write('</td></tr>')
document.write('<tr><td COLSPAN="2">')
document.write('<TABLE BGCOLOR="#000080"><tr><td>')
document.write('<input type=checkbox name="dateselected">')
document.write('</td><td>')
document.write('<select name="month1">')
document.write('<option value="january">january')
document.write('<option value="february">february')
document.write('<option value="march">march')
document.write('</select>')
document.write('</td>')
document.write('<td>')
document.write('<select name="day1">')
document.write('<option value="1">1')
document.write('<option value="2">2')
document.write('<option value="3">3')
document.write('<option value="4">4')
document.write('<option value="5">5')
document.write('<option value="6">6')
document.write('<option value="7">7')
document.write('<option value="8">8')
document.write('<option value="9">9')
document.write('<option value="10">10')
document.write('<option value="11">11')
document.write('<option value="12">12')
document.write('<option value="13">13')
document.write('<option value="14">14')
document.write('<option value="15">15')
document.write('<option value="16">16')
document.write('<option value="17">17')
document.write('<option value="18">18')
document.write('<option value="19">19')
document.write('<option value="20">20')
document.write('<option value="21">21')
document.write('<option value="22">22')
document.write('<option value="23">23')
document.write('<option value="24">24')
document.write('<option value="25">25')
document.write('<option value="26">26')
document.write('<option value="27">27')
document.write('<option value="28">28')
document.write('<option value="29">29')
document.write('<option value="30">30')
document.write('<option value="31">31')
document.write('</select>')
document.write('</td>')
document.write('<td>')
document.write('<select name="year1">')
document.write('<option value="2002" selected>2002')
document.write('<option value="2003" >2003')
document.write('</select>')
document.write('</td></tr></table></center></p>');
document.write('</td></tr>')


// **************preview checkbox and submit button******************
document.write('<tr><td colspan="2" align="center"><input type="Submit" value="Send Card" name="submit">&nbsp&nbsp<input type="submit" value="Preview" name="Preview" ></td>');

document.write('</tr>');

//****************end of table******************

document.write('</table></form>');

//*****************closing brace for else condition*******

}
// ************ start of footer************** 
document.write('<br clear=all>');
document.write('</body></html>');

//*********closing brace for the personalised function*********
}



function newpostdatedcardform(imagename,ig1,ig2,bgcol)
{
document.write('<FORM METHOD=POST name="theform" ACTION="http://www.dgreetings.com/cgi-bin/personalisecardsnew.pl" onSubmit="return isValidpremail1(document.theform.recipient.value, document.theform.senderemail.value)">');

document.write('<CENTER>');
document.write('<TABLE CELLPADDING=0 CELLSPACING=6 WIDTH=300 border=0>');

document.write('<TR>');
document.write('<TD colspan=3><input type="hidden" name="file" value="'+imagename+'" MAXLENGTH=100></TD>');
document.write('<TD colspan=3><input type="hidden" name="file1" value="'+ig1+'" MAXLENGTH=100></TD>');
document.write('<TD colspan=3><input type="hidden" name="file2" value="'+ig2+'" MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('</TR>');

document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Recipient\'s Email</FONT><sup>*</sup></TD>');
document.write('<TD><input type="TEXT" name="recipient" SIZE=30 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Recipient\'s Name</FONT><sup>*</sup></TD>');
document.write('<TD><input type="text" name="to" value="" SIZE=30 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Sender\'s Email</FONT><sup>*</sup></TD>');
document.write('<TD><input type="TEXT" name="senderemail" SIZE=30 MAXLENGTH=100></TD>');
document.write('</TR>');

 
document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Sender\'s Name</FONT><sup>*</sup></TD>');
document.write('<TD><input type="TEXT" name="realname" value="" SIZE=30 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD colspan=3><input type="hidden" name="xyz"></TD>');
document.write('</TR>');

//****************
//**********personalise button*************
document.write('<TR>');
//document.write('<TD colspan=3><input type="button" value="Customize UR Card" name="personal" onClick="personalised(document.theform.elements[1].value ,document.theform.elements[2].value ,document.theform.elements[3].value ,document.theform.elements[4].value , file.value,file1.value,file2.value );"><BR></TD>');
document.write('<TD colspan=3><input type="button" value="Customize UR Card" name="personal" onClick="personalised(document.theform.recipient.value ,document.theform.to.value ,document.theform.senderemail.value ,document.theform.realname.value , file.value,file1.value,file2.value );"><BR></TD>');
document.write('</TR>');
//******************
document.write('<TR>');
document.write('<TD colspan=3><BR></TD>');

document.write('</TR>');


document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1 color="navy">Personal Message:<sup>1</sup></FONT></TD>');
document.write('<TD colspan=2><TEXTAREA NAME="message" COLS="37" ROWS="2" WRAP="virtual" value=""></textarea></TD>');
document.write('</TR>');

 // ************ SUBMIT BUTTON FOR SINGLE RECIEPIENT*******************
document.write('<tr><TD colspan=3><input type="hidden" name="fgcolor" value="Black" MAXLENGTH=100></TD>');
document.write('<TD colspan=3><input type="hidden" name="bgcolor"  value="'+bgcol+'" MAXLENGTH=100></TD></tr>');
 
document.write('<TR>');
document.write('<TD><INPUT TYPE="SUBMIT" NAME="action" VALUE="Send Card" onClick="vali(document.theform.recipient.value);"></TD>');
//************************ PREVIEW OF CARD BEEING SEND *******************




document.write('<TD><input type="Submit" name="Preview" value="Preview"></td>'); 
document.write('</TR>');
//********************** END OF PREVIEW *******************

//*********** Post Dated Submission of card *********

document.write('<tr><td COLSPAN="3">')
document.write('<table><tr><td>')
document.write('<font size="-1" face="Arial" color="#b20010">To send the card on the future date click the checkbox and select the desired date.</font>')
document.write('</td></tr>')
document.write('</TABLE>')
document.write('</td></tr>')
document.write('<tr><td COLSPAN="3">')
document.write('<TABLE BGCOLOR="#000080"><tr><td>')
document.write('<input type=checkbox name="dateselected">')
document.write('</td><td>')
document.write('<select name="month">')
document.write('<option value="january">january')
document.write('<option value="february">february')
document.write('<option value="march">march')
document.write('</select>')
document.write('</td>')
document.write('<td>')
document.write('<select name="day1">')
document.write('<option value="1">1')
document.write('<option value="2">2')
document.write('<option value="3">3')
document.write('<option value="4">4')
document.write('<option value="5">5')
document.write('<option value="6">6')
document.write('<option value="7">7')
document.write('<option value="8">8')
document.write('<option value="9">9')
document.write('<option value="10">10')
document.write('<option value="11">11')
document.write('<option value="12">12')
document.write('<option value="13">13')
document.write('<option value="14">14')
document.write('<option value="15">15')
document.write('<option value="16">16')
document.write('<option value="17">17')
document.write('<option value="18">18')
document.write('<option value="19">19')
document.write('<option value="20">20')
document.write('<option value="21">21')
document.write('<option value="22">22')
document.write('<option value="23">23')
document.write('<option value="24">24')
document.write('<option value="25">25')
document.write('<option value="26">26')
document.write('<option value="27">27')
document.write('<option value="28">28')
document.write('<option value="29">29')
document.write('<option value="30">30')
document.write('<option value="31">31')
document.write('</select>')
document.write('</td>')
document.write('<td>')
document.write('<select name="year1">')
document.write('<option value="2002" selected>2002')
document.write('<option value="2003">2003')
document.write('</select>')
document.write('</td></tr></table></center></p>');
document.write('</td></tr>')

document.write('<TR>');
//document.write('<td colspan=3><br><FONT SIZE=-1 color="blue">For the multiple dispatch of this Card, fill in the E-mail addresses below and press any "Send Card" Button.</FONT><br><br>');
document.write('</TR>');



/*document.write('<TR>');
document.write('<TD COLSPAN=2><FONT SIZE=-1 color="navy">Recipient\'s Email<sup>2</sup></FONT></TD>');
document.write('<TD><FONT SIZE=-1 color="navy">Recipient\'s Name</FONT></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient1" SIZE=25 MAXLENGTH=100></TD>');
document.write('<TD><input type="TEXT" name="to1" SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient2" SIZE=25 MAXLENGTH=100></TD>');
document.write('<TD><input type="text" name="to2"  SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient3" SIZE=25 MAXLENGTH=100></FONT></TD>');
document.write('<TD><input type="TEXT" name="to3"  SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient4" SIZE=25 MAXLENGTH=100></TD>');
document.write('<TD><input type="TEXT" name="to4" SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD COLSPAN=2><input type="TEXT" name="recipient5" SIZE=25 MAXLENGTH=100></TD>');
document.write('<TD><input type="TEXT" name="to5" SIZE=25 MAXLENGTH=100></TD>');
document.write('</TR>');*/
//*********
document.write('<TR><td colspan=3><input type="hidden" name="number" value=""></td>');
document.write('</TR>');


//*************************personalised button***********************

//document.write('<tr>');
//document.write('<td colspan=3><input type="button" name="personal" value="Personalise" onClick="personalised(document.forms[0].elements[1].value ,document.forms[0].elements[2].value ,document.forms[0].elements[3].value ,document.forms[0].elements[4].value , file.value);">');
//document.write('</td>');
//document.write('</tr>');


//*********** SUBMIT AND RESET BUTTONS OF MULTIPLE DISPATCH *********
/*document.write('<TR>');
document.write('<TD COLSPAN=3><INPUT TYPE="SUBMIT" NAME="action" VALUE="Send Card" onClick="vali(document.theform.elements[14].value ,document.theform.elements[16].value ,document.theform.elements[18].value ,document.theform.elements[20].value , document.theform.elements[22].value);"> &nbsp;&nbsp;<INPUT TYPE="RESET" NAME="Reset" VALUE="Clear All"></TD>');

document.write('</TR>');*/

document.write('<TR>');
document.write('</TR>');

document.write('</TABLE>');
document.write('</center>');

/*document.write('<TABLE CELLPADDING=0 CELLSPACING=6 WIDTH=400 border=0 >');
document.write('<TR align=left>');
document.write('<TD align=right valign=top><FONT SIZE=1 color="#B01C5F">NOTE:</FONT></TD>');
document.write('<TD valign=top align=left><FONT SIZE=1 color="#0000da">1</FONT></TD>' );
document.write('<TD COLSPAN=2><FONT SIZE=1 color="#0000da">Incase of multiple dispatch the message goes to every recipient.</FONT></TD>');
document.write('</TR>');



document.write('<TR>');
document.write('<TD> </TD>');
document.write('<TD valign=top><FONT SIZE=1 color="#0000da">2</FONT></TD>' );
document.write('<TD COLSPAN=2><FONT SIZE=1 color="#0000da">You can enter multiple recipient\'s email in a single email field by separating the e-mail names with ","</FONT></TD>');*/ 
document.write('</TR>');
document.write('</TABLE>');



document.write('</FORM>');

//*********closing brace of cardform **********

}
function newpreview(rname,sname,msg1,card,card1,card2,color){


	//prompt("Reciepient Name:",rname);
	//prompt("Senders Name:",sname);
	//prompt("Message:",message);
	
	//prompt("Card:",card);
	var path1="../newimages/";
	//var path2="../images/";
	//var path=path2+card;
	var path=path1+card;
	var pathb=path1+card1;
	var pathc=path1+card2;
	//prompt("the path is",path);	
	//document.images[0].src=path
	
		if((card=="animation10.gif") || (card=="animation6.gif") || 				(card=="animation4.gif") || (card=="animation3.gif") || 				(card=="animation9.gif") || (card=="animation5.gif") || 				(card=="animation8.gif") || (card=="animation7.gif") || 
				(card=="animation.gif") || (card=="animation12a.gif") ||
                                                                (card=="animation14a.gif") || (card=="animation15a.gif") ||
                                                                (card=="animation17.gif ") || (card=="animation2.gif")){
document.write('<html><head><title>Preview</title></head><body bgcolor="'+color+'">');
    document.write('<p align=center>Dear:	'+rname);
	document.write('<br>');
	document.write('<br><br>');
	
	document.write(msg1);
	
	document.write('<br><br>');
	document.write('<center><img width=320 height=320 src="'+path+ '"></center>');
	document.write('<br><br>');
	document.write('<center>From:	'+sname);
	document.write('<br><br>');
	document.write('<form>');
	document.write('<input type="button" value="Return" onClick="history.back();">');
	document.write('</form>');
	document.write('</center>');
		document.write('</body></html>');
												}

	else{ 
	document.write('<html><head><title>Preview</title></head><body bgcolor="'+color+'">');
	document.write('<TABLE WIDTH="100%"><TR><TD>');
    document.write('<p align=center>Dear:	'+rname);
	document.write('<br>');
	document.write('<br><br>');
	
	
	document.write('</TD></tr>');
	document.write('<tr><TD>');
	document.write('<br><br>');
	document.write('<center><img src="'+path+ '"></center>');
	document.write('</TD></tr>');
	document.write('<tr><td height="800" valign=top align="center"><a href="#vik">Click Here</a><br><br><br><br></td></tr>');
document.write('<tr><td align=center><a name="vik"></a><img src="'+pathb+'"> <br></td></tr><tr><td height="800" valign=top align="center"><a href="#vik1">Click to Continue......</a><br><br><br></td></tr>');
	
	
	document.write('<tr><td align=center><a name="vik1"></a><center><img src="'+pathc+'"></center><br></td></tr>');
	document.write('<tr><td align="center" valign="bottom"><font size=3 face="comic sans ms">'+msg1+'</font>');
     
	 
	document.write('');
	document.write('<center>From:	'+sname);
	document.write('</TD></TR>');
	document.write('<tr><TD>');
	document.write('<form>');
	document.write('<input type="button" value="Return" onClick="history.back();">');
	document.write('</form>');
	document.write('</center>');
	document.write('</TD></tr></table></body></html>');
	  }
}

