function selectECard(u){ /* var grOcc = document.getElementById('grOcc') if (grOcc){ if (grOcc.selectedIndex == 0 ){ alert("Select an occasion and try again"); return; } else { */ if (!u) u = '/greetings/pickcard.asp?grOcc=12'; winW = 800; winH = 600; //var selCardWin = doWin('/greetings/pickcard.asp?grOcc='+grOcc.options[grOcc.selectedIndex].value,'selectCard',1); var selCardWin = doWin(u,'selectCard',1); selCardWin.focus(); /*} }*/ } function loadCard(){ var grOcc = document.getElementById('grOcc') if (grOcc){ if (grOcc.selectedIndex == 0 ){ alert("Select an occasion and try again"); return; } else { window.location.href = '/greetings/pickcard.asp?grOcc='+grOcc.options[grOcc.selectedIndex].value; } } } function setMsg(){ var indX = document.getElementById('grOcc').selectedIndex; var msgTxt = document.getElementById('msgTxt') msgTxt.value = grMsgArr[indX]; } function handleGreet(m){ var oFrm = document.getElementById('rGreet'); if (oFrm) { oFrm.m.value = m winW=800;winH=600;oFrm.target = 'previewGreet' if (m==2){ oFrm.action = 'send.asp'; } else { oFrm.action = 'preview.asp'; } pg = doWin('','previewGreet',1) oFrm.submit(); } } function setCstMsg(x){ if (x){ document.getElementById('cstMsg').style.display = 'block'; document.getElementById('defMsg').style.display = 'none'; } else { document.getElementById('cstMsg').style.display = 'none'; document.getElementById('defMsg').style.display = 'block'; } } function startSongThin(){ var grtPly; if(document.layer && !document.all) { grtPly = document.getElementById('rgreetplayerswf') } else { if(document.all) { grtPly = document.getElementById('rgreetplayer_swf'); } } if (grtPly) grtPly.SetVariable("SPS", "true"); } function replay(){ if(window.rgreetplayer_swf) { window.document["rgreetplayer_swf"].SetVariable("localSPS", "true"); } if(document.rgreetplayerswf) { document.rgreetplayerswf.SetVariable("localSPS", "true"); } } function getPplr(){ var l = document.getElementById('pplrLang'); var c = document.getElementById('pplrCat'); var url = '/greetings/song-popular.asp' + '?l=' + l.options[l.selectedIndex].value + '&cId=' + c.options[c.selectedIndex].value //alert(url); ajax_loadContent("popularFormDiv", url); } function getRecomm(){ var l = document.getElementById('recommLang'); var c = document.getElementById('recommCat'); var url = '/greetings/song-recommend.asp' + '?l=' + l.options[l.selectedIndex].value + '&cId=' + c.options[c.selectedIndex].value ajax_loadContent("recommendFormDiv", url); } function popGrtSngs(l,d,c){ var url = '/greetings/popular-songs.asp' + '?grtSongLang=' + l if (c) url += "&cId=" + c ajax_loadContent(d, url); }