//************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,message1,message2,message3,message4){
	count0=0;	
	count1=0;
	count2=0;
	count3=0;
	count4=0;
	var i0=message0.length;
	var i1=message1.length;
	var i2=message2.length;
	var i3=message3.length;
	var i4=message4.length;
	
	if(message1!=""){
					for(j=0;j<i1;j++){
									if(message1.charAt(j)==","){
																count1++;		
																//alert("received message");
											
																}
													
									else					{
											
															}
										}
					count1++				
					}
	//prompt("the message",message1)	

//********* 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 *************
    
	if(message2!=""){
					for(j=0;j<i2;j++){
									if(message2.charAt(j)==","){
																count2++;		
																//alert("received message");
											
																}
													
									else					{
										
															}
									}
					count2++;
					//prompt("the count is:",count2)
			    	}

//********* content validator for recipient3 *************
    
	if(message3!=""){
					for(j=0;j<i3;j++){
									if(message3.charAt(j)==","){
																count3++;		
																//alert("received message");
											
																}
													
									else					{
										
															}
									}
					count3++;
					//prompt("the count is:",count3)
			    	}
//********* content validator for recipient4 *************

	if(message4!=""){
					for(j=0;j<i4;j++){
									if(message4.charAt(j)==","){
																count4++;		
																//alert("received message");
											
																}
													
									else					{
										
															}
									}
					count4++;
					//prompt("the count is:",count4)
			    	}

//************ Passing of Total number of cards ****************

		count=count0+count1+count2+count3+count4;
		count=count+1;
		//prompt("the total no of cards",count);
		document.forms[0].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,month11,year11,day11){
prompt("month",month11);
prompt("day",day11);
prompt("year",year11);
//*********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="+1">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/personalisecards.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>Enter Message:<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>');

//********************user defined background color************

document.write('<tr><td>Select the Background Colour:</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>Select the Text Colour:</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">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('<option value="April">April')
document.write('<option value="May">May')
document.write('<option value="June">June')
document.write('<option value="July">July')
document.write('<option value="August">August')
document.write('<option value="September">September')
document.write('<option value="October">October')
document.write('<option value="November">November')
document.write('<option value="December">December')
document.write('</select>')
document.write('</td>')
document.write('<td>')
document.write('<select name="day">')
//document.write('<option value=>1')

document.write('</select>')
document.write('</td>')
document.write('<td>')
document.write('<select name="year">')
//document.write('<option value="'+year+'" selected>2000')
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)
{

document.write('<FORM METHOD=POST name="theform" ACTION="http://www.dgreetings.com/cgi-bin/card2.cgi" onSubmit="return isValidpremail1(document.forms[0].recipient.value, document.forms[0].senderemail.value, document.forms[0].elements[12].value ,document.forms[0].elements[14].value , document.forms[0].elements[16].value ,document.forms[0].elements[18].value , document.forms[0].elements[20].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>Personalise your card.(* Denotes a required field.)</FONT></TD>');
document.write('</TR>');

document.write('<TR>');
document.write('<TD colspan=2><FONT SIZE=-1>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>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>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>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" style="background-color:#8f75c1;color:white;font-weight:700" 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 );"><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>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><INPUT TYPE="SUBMIT" NAME="action" VALUE="Send Card" style="background-color:#8f75c1;color:white" onClick="vali(document.theform.recipient1.value ,document.theform.recipient2.value ,document.theform.recipient3.value ,theform.recipient4.value , document.theform.recipient5.value);"></TD>');
//************************ PREVIEW OF CARD BEEING SEND *******************

document.write('<TD><input type="Button" name="pre" value="Preview" style="background-color:#8f75c1;color:white" onClick="newpreview(document.forms[0].elements[2].value, document.forms[0].elements[4].value, document.forms[0].elements[5].value, file.value);"></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">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('<option value="April">April')
document.write('<option value="May">May')
document.write('<option value="June">June')
document.write('<option value="July">July')
document.write('<option value="August">August')
document.write('<option value="September">September')
document.write('<option value="October">October')
document.write('<option value="November">November')
document.write('<option value="December">December')
document.write('</select>')
document.write('</td>')
document.write('<td>')
document.write('<select name="day">')
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="year">')
document.write('<option value="2001" selected>2001')
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>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>Recipient\'s Email<sup>2</sup></FONT></TD>');
document.write('<TD><FONT SIZE=-1>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" style="background-color:#8f75c1;color:white" onClick="vali(document.forms[0].elements[14].value ,document.forms[0].elements[16].value ,document.forms[0].elements[18].value ,document.forms[0].elements[20].value , document.forms[0].elements[22].value);"> &nbsp;&nbsp;<INPUT TYPE="RESET" NAME="Reset" style="background-color:#8f75c1;color:white" 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>NOTE:</FONT></TD>');
document.write('<TD valign=top align=left><FONT SIZE=1>1</FONT></TD>' );
document.write('<TD COLSPAN=2><FONT SIZE=1>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>2</FONT></TD>' );
document.write('<TD COLSPAN=2><FONT SIZE=1>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){

	//prompt("Reciepient Name:",rname);
	//prompt("Senders Name:",sname);
	//prompt("Message:",message);
	
	//prompt("Card:",card);
	var path1="http://www.dgreetings.com/newimages/";
	//var path2="../images/";
	//var path=path2+card;
	var path=path1+card;
	//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('<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>');
						
												}

	else{ 
          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 src="'+path+ '"></center>');
	document.write('<br><br>');
	document.write('<center>From:	'+sname);
	document.write('<br><br><BR><BR>');
	document.write('<form>');
	document.write('<input type="button" value="Return" onClick="history.back();">');
	document.write('</form>');
	document.write('</center>');
	  }
}

