function load(url)
  {
  //alert(document[url].cardlist.options[document[url].cardlist.selectedIndex].value);
  window.open(document[url].cardlist.options[document[url].cardlist.selectedIndex].value,"_top");
  }
  
  function banner()    
  {       
   pic0="ad_summer.gif"; 
   pic1="ad_teens.gif";   
   var now=new Date();       
   var rnd=now.getSeconds()%2;    
           
  document.writeln('<a href="http://www.infoteen.com" target="_new"><IMG SRC="'+eval("pic"+rnd)+'" border="0" ALT="Visit InfoTeen.com!"></a>');
  }
  
  function changeto(highlightcolor){
  source=event.srcElement
  if (source.tagName=="TR"||source.tagName=="TABLE")
  return
  while(source.tagName!="TD")
  source=source.parentElement
  if (source.style.backgroundColor!=highlightcolor)
  source.style.backgroundColor=highlightcolor
  }
  
  function changeback(originalcolor){
  if (event.fromElement.contains(event.toElement)||source.contains(event.toElement))
  return
  if (event.toElement!=source)
  source.style.backgroundColor=originalcolor
  }
  
  
  
  function writedate() 
  { 
   var days = new Array(8); 
   days[1] = "Sunday"; 
   days[2] = "Monday"; 
   days[3] = "Tuesday"; 
   days[4] = "Wednesday"; 
   days[5] = "Thursday"; 
   days[6] = "Friday"; 
   days[7] = "Saturday"; 
   var months = new Array(13); 
   months[1] = "January"; 
   months[2] = "February"; 
   months[3] = "March"; 
   months[4] = "April"; 
   months[5] = "May"; 
   months[6] = "June"; 
   months[7] = "July"; 
   months[8] = "August"; 
   months[9] = "September"; 
   months[10] = "October"; 
   months[11] = "November"; 
   months[12] = "December"; 
   var dateObj = new Date(); 
   var wday = days[dateObj.getDay() + 1]; 
   var lmonth = months[dateObj.getMonth() + 1]; 
   var date = dateObj.getDate(); 
   var fyear = dateObj.getFullYear(); 
   document.write(wday + ", " + lmonth + " " + date + ", " + fyear); 
  } 
  
  
  
  function titlename(pos)
  {
  titl= new Array("FRIENDS", "FAMILY", "LOVE, ROMANCE", "BIRTHDAY", "EVENTS", "HOLIDAYS", "VACATION", "THANK YOU");
  return titl[pos/100];
  }
  
  function cardoftheday()    
  {    
      
   pic0="ecards/cards/love1_1.gif"; 
   pic1="ecards/cards/flowers_1.gif";   
   pic2="ecards/cards/cat_1.gif";   
   pic3="ecards/cards/thankyou_1.gif";   
   pic4="ecards/cards/1833944_1.gif";   
   pic5="ecards/cards/1944096_1.gif";   
   pic6="ecards/cards/1944092_1.gif";
   loc0=203;
   loc1=9;
   loc2=204;
   loc3=702;
   loc4=1409;
   loc5=1701;
   loc6=1702;
   
  
  
      
   var day=new Date();    
   var picture=day.getDay();    
     document.writeln('<a href="ecards/card.html?' + eval("loc"+picture)+ '" target="_top">');
  document.writeln('<IMG SRC="'+eval("pic"+picture)+'" width="100" border="0" bordercolor="green" align="right" vspace="2" hspace="2" ALT="Send a card!"></a>');    
      
  }  
  
  
  
  function SubmitRegistration()
    {
     bValidRegistration = true;
     CheckEmpty(document.register.FirstName, "Please enter your first name.");
  	if (bValidRegistration) {
  		sendcard();
  	}
  }
  
  function CheckEmail(Element)
  {
  var string1=cur.email.value
  if (string1.indexOf("@")==-1)
  {
  alert("Please input a valid email address!")
  return false
  }
  }
  
  
  function CheckEmpty(Element, strMsg) {
      if (Element.value == "") {
  	if (bValidRegistration) {
  		bValidRegistration = false
  		alert(strMsg)
  		Element.focus()	
  	}
       } else {
  	return;
       }
  }

