
//last modified  on 17/04/2000 at 11:00 a.m
//st patricks day

//----------login password--------

	function confirm2(username,password){
if(username!="" && password!=""){
	      return true;
	}
	else {
	alert("Username and/or Password \n\t\tcan not be empty.");
	return false;
	}
}


//----------end of login password--------


//-------function login starts--------


function vallinks(){
document.write('<A HREF="http://www.dgreetings.com/loveyou/index.html">Love&nbsp;You</A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/lovequotes/index.html">Love&nbsp;Quotes</A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/missyou/index.html">Miss&nbsp;You</A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/thinkofyou/index.html">Thinking&nbsp;of&nbsp;You</A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/missulove/index.html">Miss&nbsp;You&nbsp;Love </A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/virtualkiss/index.html">Virtual&nbsp;Kiss</A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/lovesongs/index.html">Love&nbsp;Songs </A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/lovepoems/index.html">Love&nbsp;Poems </A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/lovesorry/index.html">Love&nbsp;Sorry </A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/cupid/index.html">Cupid</A><br><br>');
document.write('<A HREF="http://www.dgreetings.com/digitallove/index.html">Digital&nbsp;Love</A><br><br>');
}

//banner changes to be done here---For above panel
ads2 = new Array('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="468" height="60"><param name=movie value="http://www.dgreetings.com/newimages/banners/banner.swf"><param name=quality value=high><embed src="http://www.dgreetings.com/newimages/banners/banner.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60"></embed> </object>');
/*('<a href="http://www.dgreetings.com/gifts-to-india/send-flowers" ><img src="http://www.dgreetings.com/newimages/banners/flower-banner.jpg" width="468" height="60" border="1" alt="Send Flowers to India" style="border-color:yellow"></a>');*/
function randomb() {

adIX2 = Math.round(Math.random()*(ads2.length-1));
 document.write(ads2[adIX2]);


}

//
adsn2 = new Array('<APPLET code=imglink.class codebase="http://www.dgreetings.com" height="50"  width="300" ><PARAM NAME="link" VALUE="http://www.vindia.com/swimsuit" target="_blank"><PARAM NAME="image" VALUE="http://www.dgreetings.com/newimages/banners/swinsuit_3001.gif" width="300" height="50" border="1" alt=""></APPLET>','<APPLET code=imglink.class codebase="http://www.dgreetings.com" height="50"  width="300" ><PARAM NAME="link" VALUE="http://app.indya.com/musicapp/antakshari/index.asp" target="_blank"><PARAM NAME="image" VALUE="http://www.dgreetings.com/newimages/banners/cinema_3001.gif" width="300" height="50" border="1" alt="123world.com"></APPLET>','<APPLET code=imglink.class codebase="http://www.dgreetings.com" height="50"  width="300" ><PARAM NAME="link" VALUE="http://cinemaa.indya.com/cinema/news.html" target="_blank"><PARAM NAME="image" VALUE="http://www.dgreetings.com/newimages/banners/hrithik_300.gif" width="300" height="50" border="1" alt="hrithik"></APPLET>','<APPLET code=imglink.class codebase="http://www.dgreetings.com" height="50"  width="300" ><PARAM NAME="link" VALUE="http://www.indya.com/citibank/ecardfeature.htm" target="_blank"><PARAM NAME="image" VALUE="http://www.dgreetings.com/newimages/banners/citibank_safe_300x50.gif" width="300" height="50" border="1" alt="citibank"></APPLET>');
adsn3 = new Array('<APPLET code=imglink.class codebase="http://www.dgreetings.com" height="50"  width="300" ><PARAM NAME="link" VALUE="http://www.123janmashtami.com" target="_blank"><PARAM NAME="image" VALUE="http://www.dgreetings.com/newimages/banners/janmashtamibanne.gif" width="300" height="50" border="1" alt="Janmashtami"></APPLET>','<APPLET code=imglink.class codebase="http://www.dgreetings.com" height="50"  width="300" ><PARAM NAME="link" VALUE="http://www.123independenceday.com" target="_blank"><PARAM NAME="image" VALUE="http://www.dgreetings.com/newimages/banners/123independenceday.gif" width="300" height="50" border="1" alt="Independenceday"></APPLET>','<APPLET code=imglink.class codebase="http://www.dgreetings.com" height="50"  width="300" ><PARAM NAME="link" VALUE="http://www.123world.com" target="_blank"><PARAM NAME="image" VALUE="http://www.dgreetings.com/newimages/banners/123world1.gif" width="300" height="50" border="1" alt="123world.com"></APPLET>');


function randombn() {

adIX2 = Math.round(Math.random()*(adsn2.length-1));
 document.write(adsn2[adIX2]);


}






function login()
{
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=100% BORDER=0 align="left">')
               
document.write('<tr valign="top">')
document.write('<td width="170">')

document.write('<table cellpadding="2" cellspacing="0" border="0" height="115" width="165" align="left">')
document.write('<tr>')
document.write('<td><div align="center"><form  name="sir12" method="post" action="http://www.dgreetings.com/dserv/login1" onSubmit="return confirm2(username.value,password.value)">')
document.write('<br><table cellpadding="0" cellspacing="0" border="0" height=10><tr valign="bottom">')
document.write('<td><b><font color="#0028C0"  size="1" face="tahoma">&nbsp;Login&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;</font></b></td><td><input name="username" size="10" maxlength="30"></td></tr><tr valign="bottom"><td><b><font face="tahoma" color="#0028C0" size="1"><b>&nbsp;Password :</b>&nbsp;</font></b></td>')
document.write('<td><input type="password" name="password" size="10" maxlength="30"></td>')
document.write('</tr>')


document.write('<tr valign="bottom">')
document.write('<td colspan=2 align="right">')
document.write('<input class="one" type="submit" value="Submit" name="B1">')
document.write('<input class="one" type="reset" value="Reset" name="B2">')
document.write('</td>')
document.write('</tr>')
document.write('<tr valign="top">')
document.write('<td colspan=2 align="middle"> &nbsp;<A href="http://www.dgreetings.com/logpaswd/signup.html"><font face="arial" size="-2"><b><u>New User</u></b></font></A>&nbsp;&nbsp;<A href="http://www.dgreetings.com/logpaswd/forgotpwd.html"><font face="arial" size="-2"><b><u>Forgot Password</u></b></font></A><br><A href="http://www.dgreetings.com/forms/whysign.htm"><font face="arial" size="-2"><b><u>Why Sign Up ?</u></b></font></A><br>')
document.write('<br><font size="1" color="red" face="tahoma"><b>*Over 15,000 Cards available*</b></font></td>')
document.write('</tr></table></form></div></td></tr>')
document.write('</table>')


}
//-----function login ends-------

//---search engine------


function search()
{
document.write('<style type="text/css">.style1 {font-family: Arial, Helvetica, sans-serif;	font-size: 11px;color: #CC0000;font-weight: bold;}.txtfield {font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: #660000;border: 1px solid #330033;	background-color: #FFF0F0;}</style>');
document.write('<FORM ACTION="http://www.dgreetings.com/cgi-bin/search.pl" METHOD="post" name="sir"> <table border="0" cellpadding="0" cellspacing="1">  <tr>    <td colspan="2" align="left"><span class="style1"> eCard Search </span></td> </tr>  <tr> <td align="left"><INPUT NAME="keywords" class="txtfield" SIZE="12" MAXLENGTH="80"> <INPUT TYPE="hidden" NAME="searchupon" VALUE="all"> <INPUT TYPE="hidden" NAME="sitename" VALUE="database"></td> <td align="left"><INPUT name="image" TYPE="image" hspace="3" SRC="http://www.dgreetings.com/newimages/newhome/gobtn.gif" width="25" height="25" border="0" valign="bottom"></td> </tr></table></form>');
}


//----search engine ends-------


 //-------function for good morning sorting modified on 18/5/2000 
 
function urtrap()
{
	ur= document.URL;
	ar=ur.split("/");
	category=ar[ar.length-2];
	arr=ar[ar.length-1];
	x=arr.split(".");
	len = x[0].length;
	y = x[0].substring(len-2,len);
	z=eval(y);
}

function numbergoodloop()
{
	document.write('<a href="good01.htm"><B>1</B></a>&nbsp &nbsp');
		
	for(var i=2;i<20;i++) 
	{
		if ((i>0) && (i<=9))
		{
			j='0'+i;
		}
		else
		{
			j=i;
		}
		document.write('<a href="../goodmorning/good'+j+'.htm"><b>'+i+'</b></a>&nbsp &nbsp');
	}
}

function gnext()
{
	numbergoodloop();
	abc=z+1;
	document.write('<a href="../goodmorning/good'+(abc)+'.htm"><b>Next</b></a>&gt;&gt;&nbsp &nbsp');
}

function lnext()
{
	numbergoodloop();	
	abc=z+1;
	az='0'+abc;
	document.write('<a href="../goodmorning/good'+(az)+'.htm"><b>Next</b></a>&gt;&gt;&nbsp&nbsp');
}

function gpre()
{
	abc=z-1;
	document.write('&lt;&lt;<a href="../goodmorning/good'+(abc)+'.htm"><b>Previous</b></a>&nbsp &nbsp');
}

function lpre()
{
	abc=z-1;
	az='0'+abc;
	document.write('&lt;&lt;<a href="../goodmorning/good'+(az)+'.htm"><b>Previous</b></a>&nbsp 							&nbsp');
}

function numbergood(){
document.write('<BR><center>');
    urtrap();
			if (z<19) 
			{
				if(z<9)
				{
					if(z>1)
					{	
					lpre();
					lnext();
					}	
					else
					{
						lnext();
					}	
				}							
				else
				{
					lpre();
					gnext();
				}
			}
			else
			{
			gpre();
			numbergoodloop();
			}
				
	document.write('</center></BR>');
}
//----end of good morning number sorting------


// function for 4thjuly(American Independence Day) index page sorting modified on 3/6/2000 

//function for looping to show of no. of index pages the category have.
//using 'function urtrap ()' written above
function numberloop()
{
	document.write('<a href="index01.htm"><B>1</B></a>&nbsp &nbsp');
		urtrap();
		
	for(var i=2;i<8;i++) 
	{	
		document.write('<a href="../'+category+'/index0'+i+'.htm"><b>'+i+'</b></a>&nbsp &nbsp');
	}
}

// TO move to next index page
function next()
{
	numberloop();
	abc=z+1;
	document.write('<a href="../'+category+'/index0'+(abc)+'.htm"><b>Next</b></a>&gt;&gt;&nbsp &nbsp');
}

//to move to previous index page
function pre()
{
	urtrap();
	abc=z-1;
	document.write('&lt;&lt;<a href="../'+category+'/index0'+(abc)+'.htm"><b>Previous</b></a>&nbsp &nbsp');
}

// function for linking of index pages
function number4thjuly(){
document.write('<BR><center>');
    urtrap();
			if (z<7) 
			{
					if(z>1)
					{	
					pre();
					next();
					}	
					else
					{
						next();
					}	
			}
			else
			{
			pre();
			numberloop();
			}
				
	document.write('</center></BR>');
}
//end of function 

			//----end of 4thjuly(American Independence Day) index page number sorting------


function smile(){
open("http://www.dgreetings.com/linknew1.html","win1","menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=no,WIDTH=500,HEIGHT=430,resizable=no,alwaysRaised=no,left=0,top=0");
}

//*********no of pages for valentine category****************
function numbervale(){

document.write('<BR><center>');
document.write('<a href="index.html"><B>1</B></a>&nbsp &nbsp');
	for(var i=2;i<7;i++) {
		document.write('<a href="http://www.dgreetings.com/valentine/index'+i+'.html"><b>'+i+'</b></a>&nbsp &nbsp');

		}
document.write('</center><BR>');
}
//*********no of pages for goodmorning category****************
function oldnumbergood(){

document.write('<BR><center>');

document.write('<a href="good1.htm"><B>1</B></a>&nbsp &nbsp');
	for(var i=2;i<20;i++) {
document.write('<a href="http://www.dgreetings.com/goodmorning/good'+i+'.htm"><b>'+i+'</b></a>&nbsp &nbsp');

		}
	document.write('<a href="good11.htm"><b>NEXT</b></a>&nbsp &nbsp');
	document.write('</center><BR>');
}

function numbergood1(){

document.write('<BR><center>');
document.write('<a href="good1.htm"><b>BACK</b></a>&nbsp &nbsp');
document.write('<a href="good11.htm"><B>11</B></a>&nbsp &nbsp');
	for(var i=12;i<20;i++) {
document.write('<a href="http://www.dgreetings.com/goodmorning/good'+i+'.htm"><b>'+i+'</b></a>&nbsp &nbsp');

		}
		
		document.write('</center><BR>');
}

function numberholi(){

document.write('<BR><center>');
document.write('<a href="holi1.htm"><B>1</B></a>&nbsp &nbsp');
	for(var i=2;i<11;i++) {
document.write('<a href="http://www.dgreetings.com/holi/holi'+i+'.htm"><b>'+i+'</b></a>&nbsp &nbsp');

		}
document.write('</center><BR>');
}


//******function to display the categories on the left side of the page****

function rightpanel()
{
//for right side banner
/*
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=Holi V2 WIDTH=250 HEIGHT=350> <PARAM NAME=movie VALUE="http://www.dgreetings.com/newimages/holi/holi-side.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#CCCCCC> <EMBED src="http://www.dgreetings.com/newimages/holi/holi-side.swf" quality=high bgcolor=#CCCCCC  WIDTH=250 HEIGHT=350 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT><br><br><br><center><a href="http://www.indianvisit.com/"><img src="http://dgreetings.com/images/royals6.jpg" border="0"></a></center>')*/
//document.write('<a href="http://www.theydeserveit.com" target="_blank"><img src="http://www.dgreetings.com/newimages/shopingonline.gif" border=0 alt="Send Gifts"></a> <br>')
//document.write('<br>')
//document.write('<script src="http://rcm.amazon.com/e/cm?t=dgreetingscom-20&p=14&o=1&l=bn1&browse=37&mode=music" type="text/JavaScript"></script><noscript><MAP NAME="boxmap"><AREA SHAPE="RECT" COORDS="37, 588, 126, 600" HREF="http://rcm.amazon.com/e/cm/privacy-policy.html?o=1"><AREA COORDS="0,0,10000,10000" HREF="http://www.amazon.com/exec/obidos/redirect-home/dgreetingscom-20"></MAP><img src="http://rcm-images.amazon.com/images/G/01/rcm/160x600.gif" width="160" height="600" border="0" usemap="#boxmap" alt="Shop at Amazon.com"></noscript>')

}

function amazon()
{
document.write('');
}

function rightpanelonam()
{
document.write('<table width="150"><tr><td  align="center" bgcolor="#FF1188"><a href="http://malayalifestivals.dgreetings.com" target="_blank"><img src="../newimages/banners/onamrightbanner.jpg" width="150" height="400" alt="Send Onam Gifts" border="0"></a></td></tr></table>');
}
/*function amazon()
{
document.write(' <a HREF="http://www.diwalimela.com/diwali-gifts/index.html">  <img src="http://www.dgreetings.com/newimages/banners/diwalimela01.jpg" width="120" height="150" border="0"   alt="Shop at diwalimela.com"> </a>');
}*/


function category()
{
	search();
	document.write('<style type="text/css">.hometext {	font-family: Arial, Helvetica, sans-serif;	font-size: 12px;font-weight: bold;color: #FFFFFF;}.cat-txt {font-family: Arial, Helvetica, sans-serif;	font-size: 12px;color: #000066;	text-decoration:underline}.cat-txt:hover {	font-family: Arial, Helvetica,sans-serif;font-size: 12px;color: #000066;text-decoration:underline; decoration: none;	background-color: #FFF0E1;}</style>');
	

	document.write('<table width="150"border="0" cellpadding="0" cellspacing="0"><tr> <td><table width="100%"border="0" cellpadding="0" cellspacing="0" bordercolor="#d6d6d6" rules=none><tr><td width="5" valign="top"><img src="http://www.dgreetings.com/newimages/newhome/left-t-curve.gif" width="5" height="20"></td> <td align="center" bgcolor="#4D9FE8"><span class="hometext"><a href="http://www.dgreetings.com" class="hometext">Home</a></span></td> <td width="5" valign="top"><img src="http://www.dgreetings.com/newimages/newhome/right-t-curve.gif" width="5" height="20"></td> </tr></table></td></tr><tr> <td><table width="100%"border="0" cellpadding="0" cellspacing="0" bordercolor="#d6d6d6"><tr><td background="http://www.dgreetings.com/newimages/newhome/dot.gif" bgcolor="#d6d6d6"><img src="http://www.dgreetings.com/newimages/newhome/dot.gif" width="1" height="1"></td><td height="111" align="left"><table width="100%"border="0" align="center" cellpadding="2" cellspacing="2"> <tr align="center" bgcolor="#CC3300"> <td colspan="2" class="hometext">Categories</td></tr>');

	document.write('<tr> <td width="6%"><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td width="94%"><span class="cat-txt"><a href="http://www.dgreetings.com/birthday_cards/index.html" class="cat-txt">Birthday Cards</a> </span></td> </tr>');

	document.write('<tr><td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/couple_cards/index.html" class="cat-txt">Couple Cards</a> </td> </tr>');

	document.write('<tr> <td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td><td class="cat-txt"><a href="http://www.dgreetings.com/everyday_cards/index.html" class="cat-txt">Everyday Cards</a> </td></tr>');

	document.write('<tr> <td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/fun_sake_cards/fun/index.html" class="cat-txt">Fun Sake Cards</a> </td> </tr>'); 

	document.write('<tr> <td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/grand_cards/index.html" class="cat-txt">Grand Cards </a></td> </tr>');

	document.write('<tr><td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/independence_day_cards/index.html" class="cat-txt">Independence Day </a></td> </tr>'); 

	document.write('<tr> <td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/just_like_that_cards/index.html" class="cat-txt">Just Like That Cards</a></td> </tr>');

	document.write('<tr><td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/kids_zone_cards/index.html" class="cat-txt">Kids Zone Cards</a></td></tr>');

	document.write('<tr> <td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/love_romance_cards/index.html" class="cat-txt">Love Romance Cards</a></td> </tr>');

	document.write('<tr><td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td><td class="cat-txt"><a href="http://www.dgreetings.com/pet_animals_cards/index.html" class="cat-txt">Pet Animal Cards</a></td> </tr>');

	document.write('<tr><td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/seasonal_cards/index.html" class="cat-txt">Seasonal Cards</a> </td></tr>');

	document.write('<tr><td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/sports_cards/index.html" class="cat-txt">Sports Cards</a> </td></tr>');

	document.write('<tr> <td><img src="http://www.dgreetings.com/newimages/newhome/bullet.gif" width="10" height="10"></td> <td class="cat-txt"><a href="http://www.dgreetings.com/support_cards/index.html" class="cat-txt">Support Cards </a></td> </tr>'); 

	document.write('</table></td> <td background="http://www.dgreetings.com/newimages/newhome/dot.gif"><img src="http://www.dgreetings.com/newimages/newhome/dot.gif" width="1" height="1"></td> </tr> </table></td></tr><tr> <td><table width="100%"border="0" cellspacing="0" cellpadding="0"> <tr> <td width="5" height="5" valign="top"><img src="http://www.dgreetings.com/newimages/newhome/left-b-curve.gif" width="5" height="5"></td> <td height="1" width=458 background="http://www.dgreetings.com/newimages/newhome/dot-STRIP.gif"style="background-position:bottom"></td> <td width="5" height="5"align="right" valign="top"><img src="http://www.dgreetings.com/newimages/newhome/right-b-curve.gif" width="5" height="5"></td> </tr> </table></td></tr></table>');
}



ads = new Array('<A HREF="http://www.123world.com"><IMG SRC="http://www.dgreetings.com/newimages/123world4.gif" WIDTH=304 HEIGHT=53 BORDER=0 ALT=""></A>','<A HREF="http://www.indiafairs.com"><IMG SRC="http://www.dgreetings.com/newimages/indiafairs.gif" WIDTH=467 HEIGHT=61 BORDER=0 ALT=""></A>','<A HREF="http://www.dgreetings.com/valentine/index.html"><IMG SRC="http://www.dgreetings.com/newimages/valentine/valentinefooter.gif" WIDTH=225 HEIGHT=44 BORDER=1></A>')

function insertAd() {
 adIX = Math.round(Math.random()*(ads.length-1))
 document.write(ads[adIX])
}


function move() {
  cend=Math.min(c+len,message.length)
  if (c <0)
    cstart=0
  else
    cstart=c
  if (c < 0)
   f.scroll.value=space.substring(0,-c) + message.substring(cstart,cend)
  else
    f.scroll.value=message.substring(cstart,cend)
  c = c +1;
  if (c == message.length ) c = -len;
  tid=window.setTimeout("move()",speed);
}
 
function start(x) {
  f=x
  tid=window.setTimeout("move()",speed);
}
 
function cleartid() {
  window.clearTimeout(tid);
}
 
function ticker(m,l,s)
{
message=m
len=l
speed=s
document.write('<font color="blue"><FORM name=tickertapeform><input name=scroll size=51') 
document.write(len) 
document.write('value="  ") </FORM></font>');
start(document.tickertapeform);
}
 
 
function ticker(m)
{

var tickertapeform
speed=20
len=51; 
space=""
tid = 0;
message="dgreetings"
c=-len;
message=m
len=75
speed=75
document.write('<font color="blue"><FORM name=tickertapeform><input name=scroll size=51></FORM></font>');
start(document.tickertapeform);
}






// Indiads Code Starts. Do NOT Modify --->


function script()
{
var _version=11;
document.write('<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://www.indiads.com/RealMedia/ads/adstream_jx.cgi/www.dgreetings.com/@Top"></script>');
document.write('<script LANGUAGE="JavaScript">		<!--		_version=10;		//-->		</script>');
document.write('<script LANGUAGE="JavaScript1.1"> 		<!--		_version=11;		// -->		</script>');
if (navigator.appVersion.indexOf("MSIE 3") != -1){
		document.write('<IFRAME WIDTH=460 HEIGHT=120 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR="#000000" SRC="http://www.indiads.com/RealMedia/ads/adstream_sx.cgi/www.dgreetings.com/@Top"></iframe>'); 
		} else if (_version < 11) {
		  document.write ('<A HREF="http://www.indiads.com/RealMedia/ads/click_nx.cgi/www.dgreetings.com/@Top?x"><IMG SRC="http://www.indiads.com/RealMedia/ads/adstream_nx.cgi/www.dgreetings.com/@Top?x"></a>');
		}
		document.write('<NOSCRIPT>		<A HREF="http://www.indiads.com/RealMedia/ads/click_nx.cgi/www.dgreetings.com/@Top?x">			<IMG SRC="http://www.indiads.com/RealMedia/ads/adstream_nx.cgi/www.dgreetings.com/@Top?x">		</A>		</NOSCRIPT>');
}
	//<!--- Indiads Code Ends --->
	


function outsider1(){

bust = Math.floor(1000000*Math.random());
document.write('<IFRAME WIDTH=468 HEIGHT=60 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR="#000000" SRC="http://ads.mediaturf.net/html.ng/site=dgreetings&size=468x60&bust='+bust+'">\n');
document.write('<SCR' + 'IPT LANGUAGE="JavaScript1.1" SRC="http://ads.mediaturf.net/js.ng/Params.richmedia=yes&site=dgreetings&size=468x60&bust='+bust+'">\n');
document.write('</SCR' + 'IPT>\n');
document.write('</IFRAME>');

document.write('<NOSCRIPT><A HREF="http://ads.mediaturf.net/click.ng/Params.richmedia=yes&site=dgreetings&size=468x60"><IMG WIDTH=468 HEIGHT=60 border=0 SRC="http://ads.mediaturf.net/image.ng/Params.richmedia=yes&site=dgreetings&size=468x60"></A></NOSCRIPT>')
}
function out()
{
document.write("hello");
}
//*******outer table**********
function header() 
{
	x=Math.round(screen.availWidth)
	if(x==1024)
	{
		document.write('</br><table width="100%" height="48" border="0" cellpadding="0" cellspacing="0"  background="http://www.dgreetings.com/newimages/newhome/dg-pattern.gif" style="background-repeat:no-repeat">  <tr>       <td width="16%" valign="top" align="right"><strong><font face="arial" color="navy" size="2">All Our e-Cards are Absolutely Free !!!</font>&nbsp;&nbsp;</strong> </td></tr> </table><br><br>');
		
		/*document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td align=center><br><script type="text/javascript">');
		document.write('<!--');
		google_ad_client = "pub-0641096029648877";
		google_ad_width = 728;
		google_ad_height = 90;
		google_ad_format = "728x90_as";
		google_ad_type = "text";
		google_ad_channel ="";
		google_color_border = "CCCCCC";
		google_color_bg = "FFFFFF";
		google_color_link = "000000";
		google_color_url = "666666";
		google_color_text = "333333";
		document.write('	//--></script>');
		document.write('	<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
		document.write('	</td></tr></table><br><br>');*/
	}
	else if(x==800)
	{
		document.write('<table width="100%" height="48" border="0" cellpadding="0" cellspacing="0"  background="http://www.dgreetings.com/newimages/newhome/dg-pattern.gif" style="background-repeat:no-repeat">  <tr>       <td width="16%" valign="top" align="right"><strong><font face="arial" color="navy" size="2">All Our e-Cards are Absolutely Free !!!</font>&nbsp;&nbsp;</strong> </td></tr></table><br><br>');
		
		/*document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td align=center><br><script type="text/javascript">');
		document.write('<!--');
		document.write('	google_ad_client = "pub-0641096029648877";');
		document.write('	google_ad_width = 728;');
		document.write('			google_ad_height = 90;');
		document.write('	google_ad_format = "728x90_as";');
		document.write('	google_ad_type = "text";');
		document.write('	google_ad_channel ="";');
		document.write('	google_color_border = "CCCCCC";');
		document.write('	google_color_bg = "FFFFFF";');
		document.write('	google_color_link = "000000";');
		document.write('	google_color_url = "666666";');
		document.write('	google_color_text = "333333";');
		document.write('	//--></script>');
		document.write('	<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
		document.write('	</td></tr></table>')*/
	}
}

function headerg() {

//*******outer table**********
document.write('<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="100%"> <TR valign="top">')
document.write('<TD>')
//******inner table*********
login()

//document.write('kris')
document.write('<td valign="middle" align="center">')
//randomb()
script()
document.write('<br><a href="http://www.dgreetings.com/lovemeter/lovemeter.htm" target="_blank" class="left"><font size="2"  face="Arial" color="#0028C0"><b>Love Calculator</b></font></a>&nbsp;&nbsp;<a href="http://www.dgreetings.com/flames/flames.html" target="_blank"><font size="2"  face="Arial" color="#0028C0"><b>Flames</b></font></a>&nbsp;&nbsp;<a href="http://www.dgreetings.com/lovehoroscope/index.html" target="_blank"><font size="2" color="#0028C0" face="Arial"><b>Love&nbsp;Horoscope</b></font></a>&nbsp;&nbsp;<a href="http://www.dgreetings.com/lovequotation/index.html" target="_blank"><font size="2" color="#0028C0" face="Arial"><b>Love&nbsp;Quotations</b></font></a></td><td valign="top" align="right"><a href="http://www.dgreetings.com"><img src="http://www.dgreetings.com/newimages/homegif/dgreetingslogo.jpg" width=154 height=48 border=0 alt="Dgreetings.com"></a><br><br><APPLET code=imglink.class codebase="http://www.dgreetings.com" width="160" height="44" ><PARAM NAME="link" VALUE="http://www.craftsinindia.com" target="_blank"><PARAM NAME="image" VALUE="http://www.dgreetings.com/newimages/homegif/craftsinindiabanner.gif" width="160" height="44" border="1" alt="craftsinindia.com"></APPLET><br><br><APPLET code=imglink.class codebase="http://www.dgreetings.com" height="47"  width="96" ><PARAM NAME="link" VALUE="http://de.dgreetings.com/index.html" target="_blank"><PARAM NAME="image" VALUE="http://www.dgreetings.com/newimages/homegif/germanversion.gif" width="96" height="47" border="1" alt="Virtual Rakhi"></APPLET></td>')
document.write('</td>')
//********** end of inner table **********
document.write('</tr></table>')
//*******end of outer table ****************
document.write('</TD></TR></TABLE>')


}
function right(){
document.write('<table border="0" cellspacing="1">')
document.write('<tr><td colspan="3" align="left"><font color=blue><b>Surfers<br> Demand</b></font>')
document.write('</td><td></td>')
//document.write('<td align="center"><font color=navy>Christmas</td></tr>')
document.write('<tr><td>')
document.write('<a href="http://www.dgreetings.com/newyear/flash/5.htm" target="_blank"><img src="http://www.dgreetings.com/newimages/homegif/5t.gif"  border="1" alt="Happy New Year"></a><br>')
document.write('</td></tr><tr><td align="left"><font color=navy>New Year</td></tr>')
document.write('<tr><td>')
document.write('<a href="http://www.dgreetings.com/newyear/animated/thanks1.htm"><img src="http://www.dgreetings.com/newimages/newyear/animated/thanks1t.gif"  border="1" alt="New Year Thanks Card" width=60 height=60></a><br>')
document.write('</td></tr><tr><td align="left"><font color=navy>New Year Thanks</td></tr>')
document.write('<tr><td>')
document.write('<a href="http://www.dgreetings.com/newyear/animated/24.htm"><img src="http://www.dgreetings.com/newimages/homegif/newyear1.gif"  border="1" alt="Happy New Year"></a></td>')
document.write('</td></tr><tr><td align="left"><font color=navy>New Year</td></tr>')


document.write('</TABLE>')
}


function footer()
{

//*************************************DISPLAY OF INTERNAL LINKS *******************************
document.write('<style type="text/css">.dglinks {font-family: Arial, Helvetica, sans-serif;font-size: 12px;font-weight: normal;}</style><br><br><table width="100%" bgcolor="#ffffff" border=0 align=center><tr><td colspan="4" align="center"><font color="navy" size="2" face=arial><b>Send  Quick Cards</b></b></font></td><hr width=100% size=1></tr><tr><td  align=center width=25%><a href="http://www.dgreetings.com/birthday_cards/">     <img src="http://www.dgreetings.com/newimages/birthday/bday51.gif" width="70" height="70" border="1" alt="Birthday eCard"><br>     <font color="navy" size="1" face=verdana>Birthday Cards </font></a></td>    <td align=center width=25%><a href="http://www.dgreetings.com/love_romance_cards/"><img src="http://www.dgreetings.com/newimages/valentine/val16-gen.gif" width="70" height="70" alt="Love Cards" border="1" style="border-color:navy"><br>    <font color="navy" size="1" face=verdana>Love Cards </font></a></td>    <td  align=center width=25%><a href="http://dgreetings.com/christmas/"><img src="http://www.dgreetings.com/newimages/christmas/chris3-santa.gif" vspace="5" width="70" height="70" alt="Christmas Cards" border="1" style="border-color:#F8D048"><br>    <font color="navy" size="1" face=verdana>Christmas</font></a></td><td align=center width="25%"><a href="http://www.dgreetings.com/newyear/"><img src="http://www.dgreetings.com/newimages/christmas/chris31-snow.gif" width="70" height="70" alt="New Year Greetings" border="1" style="border-color:#FFDC00"><br>      <font color="navy" size="1" face=verdana>New Year Cards</font></a></td></tr><tr></table><table width=60% border=0 align=center><tr><td align=center><A HREF="http://www.dgreetings.com/feedback.html"><img src="http://www.dgreetings.com/newimages/home/yourf.gif" width=78 height=23 border=0 alt=""></A> &nbsp;&nbsp;<A HREF="MAILTO:webmaster@dgreetings.com"><img src="http://www.dgreetings.com/newimages/home/contact.gif" width=54 height=23 border=0 alt=""></A>&nbsp;&nbsp;<hr width=100% size=1></td></tr><tr><td><table  border="0" width="100%" cellspacing="2" cellpadding="2">  <tr> <td bgcolor="#990000" height=2></td></tr><tr><td align="center"><span class="dglinks"><a href="http://www.dgreetings.com/feedback.html" class="commontxt">Your Feedback </a>&nbsp;&nbsp;|&nbsp;&nbsp;<A href="http://dgreetings.com/AddressBookReminder/addressbook_login.html" class="commontxt">Address Book</a>&nbsp;&nbsp;|&nbsp;&nbsp;<A href="mailto:webmaster@dgreetings.com" class="giftsheading">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;<A href="http://dgreetings.com/reach-us.htm" class="giftsheading"> Reach Us</a></span></td></tr> <tr>    <td  bgcolor="#990000" height=2></td>  </tr></table></td></tr><tr><td align=center><font size=1 color=000000 face=verdana>Copyright 1999-06 Dgreetings.com<br>        All RIGHTS RESERVED</font></td></tr></table>')
document.write('</center>')

}

function bannerani()
{

document.write('');

}

function bannerani1()
{

var msg="Dgreetings.com: Select from the choicest collection of Budhajayanti Cards, Mothers Day Cards and Many more..."
var num1=Math.round((Math.random())*7)
var num2=Math.round((Math.random())*6)
//prompt("the message 2",num1)

//****************** table for display of recommend and feedback gif ********************

document.write('<center>')
document.write('<table border=0 width=650 cellspacing=0 cellpadding=10>')
document.write('<tr><td align="center" colspan="3">')
document.write('</td></tr>')
document.write('<tr><td align="center" colspan="3">')
ticker(msg)
document.write('</td></tr>')
document.write('<tr><td align="center" colspan="3">');
banners();
//newagent();
document.write('</td></tr>');
document.write('</table>')
document.write('</center>')
document.write('');
document.write('<BR>');
}



function leftcurrentfestivals(){

var num1=Math.round((Math.random())*4)

limg= new Array()

limg[0]='<A HREF="http://www.dgreetings.com/sendgifts/index.html"><img src= "http://www.dgreetings.com/newimages/banners/gifts1.gif" width="192" height="44" border="0" alt="Send Gifts"></A>'

limg[1]='<A HREF="http://www.dgreetings.com/sendgifts/index.html"><img src= "http://www.dgreetings.com/newimages/banners/gifts1.gif" width="192" height="44" border="0" alt="Send Gifts"></A>'

limg[2]='<A HREF="http://www.dgreetings.com/sendgifts/index.html"><img src= "http://www.dgreetings.com/newimages/banners/gifts1.gif" width="192" height="44" border="0" alt="Send Gifts"></A>'

limg[3]='<A HREF="http://www.dgreetings.com/sendgifts/index.html"><img src= "http://www.dgreetings.com/newimages/banners/gifts1.gif" width="192" height="44" border="0" alt="Send Gifts"></A>'

limg[4]='<A HREF="http://www.dgreetings.com/sendgifts/index.html"><img src= "http://www.dgreetings.com/newimages/banners/gifts1.gif" width="192" height="44" border="0" alt="Send Gifts"></A>'

document.write(limg[num1]);

}

function rightcurrentfestivals(){
var num2=Math.round((Math.random())*4)
rimg= new Array()

rimg[0]='<A HREF="http://www.dgreetings.com/loveyou/index.html"><IMG SRC="http://www.dgreetings.com/images/RDL8.gif" ALT="Links to Love You Cards" WIDTH=128 HEIGHT=56 BORDER=1></A>'

rimg[1]='<A HREF="http://www.dgreetings.com/missyou/index.html"><IMG SRC="http://www.dgreetings.com/images/RDM9.gif" ALT="Links to Miss You Cards" WIDTH=128 HEIGHT=52 BORDER=1></A>'

rimg[2]='<a href="http://www.dgreetings.com/birthday/index.html"><img src="http://www.dgreetings.com/images/pdbdy.gif" width=160 height=44 border=1 alt=""></a>'

rimg[3]='<A HREF="http://www.dgreetings.com/sports/index.html"><img src="http://www.dgreetings.com/newimages/banners/banner3.gif" width=120 height=40 border=1 alt=""></A>'

rimg[4]='<A HREF="http://www.theeid.com"><img src="http://www.dgreetings.com/images/eidsmall.gif" width="175" height="36" border="1" alt="Eid Mubarak"></A>'
document.write(rimg[num2]);
}
//***email validation incase of single recipient*****


bannerArray = new Array('')


/*
bannerArray = new Array('<a href="http://goa.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/goa.jpg" width="468" height="60" border="0" alt="Goa - India at its best"></a>','<a href="http://hill-resorts.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/hill-resort1.jpg" width="468" height="60" border="0" alt="Hill Resort - India at its best"></a>','<a href="http://palaceonwheels.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/palace-on-wheel1.jpg" width="468" height="60" border="0" alt="Palace on Wheels - India at its best"></a>','<a href="http://kerala.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/kerala2.jpg" width="468" height="60" border="0" alt="Kerala - India at its best"></a>','<a href="http://palaceonwheels.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/palace-on-wheel1.jpg" width="468" height="60" border="0" alt="Palace on Wheels - India at its best"></a>','<a href="http://leh-ladakh.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/ladakh.jpg" width="468" height="60" border="0" alt="Ladakh - India at its best"></a>','<a href="http://palaceonwheels.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/palace-on-wheel1.jpg" width="468" height="60" border="0" alt="Palace on Wheels - India at its best"></a>','<a href="http://taj-mahal.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/taj.jpg" width="468" height="60" border="0" alt="Taj Mahal - India at its best"></a>','<a href="http://taj-mahal.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/taj.jpg" width="468" height="60" border="0" alt="Taj Mahal - India at its best"></a>','<a href="http://wildlife-india.indianvisit.com" target="_blank"><img src="http://www.diwaliutsav.com/images/iv-banner/wildlife1.jpg" width="468" height="60" border="0" alt="Wildlife - India at its best"></a>')
*/

function insertAd2() {
 adIX = Math.round(Math.random()*(bannerArray.length-1))
 document.write(bannerArray[adIX])
}



function display1(imagename,left1){

//document.write('<table width=600 cellspacing=10 cellpadding=0 border=0>');
//document.write('<tr><td align="center">');
document.write(left1);
//document.write('</td><td align="right">'+right1+'</td></tr>');
//document.write('</td></tr>');
//document.write('</table>');
cardform(imagename);
}
//********forthcoming events function*********
function events(){
//document.write('<img src="../newimages/events&hodys2.gif" width=150 height=33 border=0 alt="">');


}
ads1 = new Array('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=christmas D1 WIDTH=468 HEIGHT=110> <PARAM NAME=movie VALUE="http://www.diwaliutsav.com/images/Movie3.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#682C40> <EMBED src="http://www.diwaliutsav.com/images/Movie3.swf" quality=high bgcolor=#682C40  WIDTH=468 HEIGHT=110 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>')


function insertAdCarbon() {
 adIX = Math.round(Math.random()*(ads1.length-1));
 document.write(ads1[adIX]);
}

 

function oldbanners()
{

document.write('<table  align="center" border="0"><tr width=500> <td align="center" colspan="5"><font size="2" color="#0028C0" face="Arial"><b>Send E- Cards</b></font><br><br></td></tr><tr><td width=20%></td><td width=80% colspan=4><font size="2" color="#ff33cc" face="Comic Sans MS"></font></td></tr><tr width=500><tr width=500><td width=100 align="center"><a href="http://www.dgreetings.com/support_cards/exam_fever/index.html"><img src="http://www.dgreetings.com/newimages/examfever/efani10t.gif" width="70" height="70" border="1" alt=" Send Exam Cards"></a></td><td width=100 align="center"><a href="http://www.dgreetings.com/womensday/index.html"><img src="http://www.dgreetings.com/newimages/homegif/womensdayp2t.gif" alt="Send Womens Day Cards" width=70 height=70></a></td><td width=100 align="center"><a href="http://www.dgreetings.com/nosmoking/index.html"><img src="http://www.dgreetings.com/newimages/homegif/smokinghp.gif" alt="Send No Smoking Day Cards" width=70 height=70></a></td><td width=120 align="center"><a href="http://www.dgreetings.com/navreh/index.html"><img src="http://www.dgreetings.com/newimages/homegif/navrehhp.gif" width="70" height="70" border="1" alt="Navreh Cards"></A></td><td width=100 align="center"><a href="http://www.dgreetings.com/vishu/index.html"><img src="http://www.dgreetings.com/newimages/vishu/vis5t.gif" alt="Send Vishu Cards" width=70 height=70></a></td></tr><tr><td width=20% align="center"><font size="2" color="#ff33cc" face="Comic Sans MS">Exam Card</font></td><td width=20% align="center"><font size="2" color="#ff33cc" face="Comic Sans MS">Womens Day Card</font></td><td width=20% align="center"><font size="2" color="#ff33cc" face="Comic Sans MS">No Smoking Day Cards</font></td><td width=20% align="center"><font size="2" color="#ff33cc" face="Comic Sans MS">Navreh cards</font></td><td width=20% align="center"><font size="2" color="#ff33cc" face="Comic Sans MS">Vishu Cards</font></td></tr><tr><td width=20% align="center"><font size="2" color="#ff33cc" face="Comic Sans MS"></font></td><td width=20% align="right"></td><td width=20% align="center"><font size="2" color="#ff33cc" face="Comic Sans MS"></font></td><td width=20% align="center"></font></td><td width=20%></td></tr></table>')

}




function dubaibanner(){

var num1=Math.round(Math.random()*3)
rimg = new Array()

rimg[0]='<a href="http://www.bestbuydubai.com"><img src="http://www.dgreetings.com/newimages/banners/dubai1.gif" width=200 height=50 border=1 alt="Bestbuydubai.com"></a>';

rimg[1]='<a href="http://www.bestbuydubai.com"><img src="http://www.dgreetings.com/newimages/banners/dubai2.gif" width=200 height=50 border=1 alt="Bestbuydubai.com"></a>';

rimg[2]='<a href="http://www.bestbuydubai.com"><img src="http://www.dgreetings.com/newimages/banners/dubai3.gif" width=200 height=50 border=1 alt="Bestbuydubai.com"></a>';

rimg[3]='<a href="http://www.bestbuydubai.com"><img src="http://www.dgreetings.com/newimages/banners/dubai4.gif" width=200 height=50 border=1 alt="Bestbuydubai.com"></a>';



document.write('<table><tr><td align="left">')
document.write(rimg[num1])
document.write('</td></tr></table>')
}



function smile1(){

var cookiestring=document.cookie;

if(cookiestring==""){
 open(linknew1,"win6","menubar=no,location=no,status=no,directories=no,toolbar=no,scrollbars=no,width=390 , height=365,resizable=no,alwaysRaised=yes,left=0,top=0")
document.cookie="flag=true";
}
}
function call2(a)
{
document.write('<BR><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>');
document.write('<table border=0><tr>');
document.write('<td colspan=2>');
  document.write('<a name="forms">');
document.write('<br><br><img src="'+a+'"  border="1"><br>');
//document.write('<a href="#forms1">Click to Continue......</a>');
document.write('</td></tr></table><br>');
}



function breakFrames(){

	if((top.location!=location)&&(String(location).toLowerCase().indexOf("feedback")==-1))top.location.href=document.location.href;
}

window.document.onload=breakFrames();