<!--
winprop = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,';
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function winhelp(topic, w, h){
  topicwin = window.open( 'help.php?topic=' + topic, 'topic', winprop + ',width=' + w + ',height=' + h + '  ');
    if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") )
  topicwin.focus();
}
function refer(w,h){
  referwin = window.open( 'emailfriend.php', 'referwin', winprop + ',width=' + w + ',height=' + h + '  ');
    if ( (navigator.appName != "Microsoft Internet Explorer") && (navigator.appVersion.substring(0,1) == "3") )
  referwin.focus();
}

function viewpoem(formObj){
  PoemID = formObj.card_poem.options[formObj.card_poem.selectedIndex].value;
  if(PoemID != ""){
    poemwin=window.open('help.php?topic=poem&poem_id='+PoemID, 'poem', winprop + 'width=550,height=270');
    poemwin.focus();
  }else{ alert(msg_alert_poem);}
}
function addrecp(formObj){
  NumberRecp = formObj.addrecip.options[formObj.addrecip.selectedIndex].value;
  if(NumberRecp != ""){
    window.location="create.php?" + query_string + "&addrecip=" + NumberRecp;
  }
}
var soundwin;
function playmusic(formObj){
  if(soundwin && soundwin.open && !soundwin.close) {soundwin.focus();
  }else{
    song = formObj.card_sound.options[formObj.card_sound.selectedIndex].value;
    winStats = winprop;
      if (navigator.appName.indexOf("Microsoft")>=0){ winStats+=',width=225,height=195,left=300,top=300';
	}else{ winStats+=',width=250,height=220,screenX=300,screenY=300,alwaysRaised=yes'; }
	if(song == ""){ alert(msg_alert_music)
	}else{
	soundwin=window.open('help.php?topic=music&song='+song,'soundwin', winStats); }
  }
}
var addressbook;
function openaddressbook(){
  if (addressbook && addressbook.open && !addressbook.closed) {addressbook.focus();
  }else{
  var tp,lft;
  lft=(screen.availWidth/2)-225;
  tp=(screen.availHeight/2)-187;
  addressbook=window.open('addrbook.php?action=','addressbook',winprop + 'dependent=0,width=450,height=385,screenX=' + lft + ',screenY=' +tp + ',top=' + tp + ',left=' + lft);
  }
}
function closeaddressbook(){
  if (addressbook && addressbook.open && !addressbook.closed) {addressbook.close();} 
};

function changestamp() {
  current = document.vCardform.card_stamp.selectedIndex;
  document.images.sample.src = imagedir + document.vCardform.card_stamp[current].value;
}
function changebg() {
  current = document.vCardform.card_background.selectedIndex;
  document.images.sample.src = imagedir + document.vCardform.card_background[current].value;
}
function smilie(thesmilie) {
  document.vCardform.card_message.value += thesmilie+" ";
  document.vCardform.card_message.focus();
}
//-->