function skyddd_html_redeem_left()
{
        var html =
        '<!-- 左menu-->' +
        '<div class="card_menu">' +
        '    <div class="menu_title">' +
        '      支付渠道' +
        '    </div>' +
        '    <div class="card_menu_bg1">' +
        '      <ul>' +
        '        <li class="li_bg">线上支付</li>' +
        '        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_pro.html?bank_type=netbank">网上银行</a></li>' +
        '        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_pro.html?bank_type=alipay">支付宝</a></li>' +
        '        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_pro.html?bank_type=alipay&bank_sub_type=KT">银行卡支付<span class="f12">（无需网银）</span></a></li>' +
        '        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_pro.html?bank_type=99bill">快钱</a></li>' +
        '        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_pro.html?bank_type=yeepay">YeePay易宝</a></li>' +
		'        <li class="li_bg">线下支付</li>' +
		'        <li class="li2"><a href="http://skypetools4.tom.com/skype_line/">货到付款<font color=red>(免运费)</font></a></li>' +
		'        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_szx.html?bank_type=SZX">神州行卡充值</a></li>' +
		'        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_ltk.html?bank_type=LTK">联通卡充值</a></li>' +
		'        <li class="li2"><a href="http://skype.tom.com/products/redeem/ebilling">eBilling电话充值</a></li>' +
		'        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_gh.html">固定电话充值</a></li>' +
        '        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_pro.html?bank_type=TWHT">邮局支付<span class="f12">（网汇通卡）</span></a></li>' +
        '        <li class="li2"><a href="http://skype.tom.com/products/redeem/index5.html?bank_type=junnet">骏网一卡通<span class="f12">（书报亭有售）</span></a></li>' +
        '        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_netbar.html?bank_type=netbar" target="_blank">全国网吧充值<span class="f12">（现金购买）</span></a></li>' +
        '        <li class="li2"><a href="http://skype.tom.com/products/redeem/redeem_pro.html?bank_type=remitpay">银行/邮局汇款</a></li>' +
        '        <li  id="left_href_redeem_through" name="left_href_redeem_through" class="li_bg" style="display:none"><a href="#href_redeem_through">快速购买电话卡</a></li>' +
        '      </ul>' +
        '      <ul>' +
        '        <li class="menu_title1">Skype帐户管理</li>' +
        '      </ul>' +
        '      <div class="li_botton">' +
        '        <a href="https://secure.skype.com/store/intl/zh-Hans/member/login.html" target="_blank">国际卡(SkypeOut)帐户</a>' +
        '      </div>' +
        '      <div  class="li_botton">' +
        '        <a href="http://ddd.skype.tom.com/skype_ddd/web/user/" target="_blank">国内卡帐户</a>' +
        '      </div>' +
        '      <div class="menu_title2">' +
        '        常见问题' +
        '      </div>' +
        '      <ul>' +
        '        <li class="li3"><a href="http://skype.tom.com/help/bank/245.html" target="_blank">如何开通和使用网上银行？</a></li>' +
        '        <li class="li3"><a href="http://skype.tom.com/1001/2007119-1331.html" target="_blank">国际卡如何收取接通费？</a> </li>' +
        '        <li class="li3"><a href="http://skype.tom.com/help/out_help1.html#106" target="_blank">每天最多充值多少次？</a> </li>' +
        '        <li class="li3"><a href="http://skype.tom.com/help/ddd_help.html#201" target="_blank">国内卡和国际卡有何区别？</a></li>' +
        '        <li class="li3"><a href="http://skype.tom.com/help/ddd_help.html#205" target="_blank">Skype国内卡有效期是多久？</a></li>' +
        '        <li class="li3"><a href="http://skype.tom.com/help/ddd_help.html#202" target="_blank">Skype国内卡费率是多少？</a></li>' +
        '        <li class="li3"><a href="http://skype.tom.com/help/ddd_help.html#203" target="_blank">Skype国内卡如何使用？</a></li>' +
		'        <li class="li3"><a href="http://skype.tom.com/help/ddd_help.html#211" target="_blank">如何用国内卡拨打港澳台电话？</a></li>' +
        '      </ul>' +
        '      <ul>' +
        '        <li class="menu_title1"><a class=white href="http://skype.tom.com/products/redeem/agent/">招商加盟</a></li>' +
        '        <li class="litext">　　为了更加方便快捷地为用户提供Skype电话卡服务，现诚邀各地经销商和企业客户加盟合作，并对各地的服务代理进行技术培训和服务监督，逐步建立起覆盖全国的服务网络。</li>' +
        '      </ul>' +
        '    </div>' +
        '    <div class="card_menu_bg">' +
        '    </div>' +
        '  </div>';
                
        document.write(html);
}


function skyddd_buy_through_fill_prod_info(slt)
{
        try {
                var pid = hjsGetSelectValue('select_product_id');
                var info = skyddd_buy_get_product_info(pid);

                var html = '';
                var tc = hjsGetElementValue('text_product_count');
                var count = parseInt(tc, 10);
                if (isNaN(count) || count<1 || count>15) {
                        count = 1;
                }

                if (!hjsEmpty(tc)) {
                        hjsSetElementValue('text_product_count', '' + count)
                }
                if (info[5] == 1) {
                        html = count*info[2]+'分钟国内时长；约'+info[3]+'元/分钟';
                }
                if (info[5] == 10) {
                        html = Math.round(count*info[3]*10)/10+'欧元国际卡；约'+Math.round(info[3]*count*10)/10+'小时国际长途';
                }
                hjsSetElementInnerHTML('span_through_prod_info', html);
        }
        catch(e) {
        }
}


function skyddd_html_redeem_through()
{  
        var user_xrd_func = "locationQuery('img', 'skyddd_redeem_through_submit', 'index.html'); ";
        var html =
    '      <div class="box1" ><a name=href_redeem_through id =href_redeem_through></a>' +
    '        <div class="box11">' +
    '          <nobr><span class="z1">快速购买通道</span> ' +
    '          <span><a id="href_last_pay_info" name="href_last_pay_info" class=cursor1 onclick="skyddd_buy_accomplish_by_last_pay()"></a></span></nobr>' +
    '        </div>' +
    '        <div class="boxp">' +
    '          种类：' +
    '          <select id="select_product_type" name="select_product_type" onchange="skyddd_buy_fill_select_product_id()">' +
    '            <option value="10" selected> 国际卡</option>' +
    '            <option value="1" > 国内卡</option>' +
    '          </select>' +
    '          　面值：' +
    '          <select id="select_product_id" name="select_product_id" onchange="skyddd_buy_through_fill_prod_info()">' +
    '          </select>' +
    '          　数量：' +
    '          <input type="text" id="text_product_count" name="text_product_count" maxlength="2" size="2" value="1" onkeyup="skyddd_buy_through_fill_prod_info()"/>' +
    '          <span id="span_through_prod_info" name="span_through_prod_info" style="color:#D16C00"></span>' +
    '        </div>' +
    '        <div class="boxp" style="float:left">' +
    '          支付方式：' +
    '          <select id=select_bank name="select_bank" onchange="skyddd_html_redeem_nyyh_note(this.options[this.options.selectedIndex].value)">' +
    '            <option value="1001008" selected> 招商银行</option>' +
    '            <option value="1001006" > 工商银行</option>' +
    '            <option value="1001007" > 建设银行</option>' +
    '            <option value="10060001" > 中国银行</option>' +
    '            <option value="1001016" > 中信银行</option>' +
    '            <option value="1001012" > 农业银行</option>' +
    '            <option value="10065001" > 浦发银行</option>' +
    '            <option value="1001013" > 深圳发展银行</option>' +
    '            <option value="99bill" > 快钱</option>' +
    '            <option value="alipay" > 支付宝</option>' +
    '            <option value="yeepay" > YeePay易宝</option>' +
    '            <option value="TWHT" > 邮局支付（网汇通）</option>' +
    '            <option value="remitpay"  > 银行/邮局汇款</option>' +
    '            <option value="junnet" > 骏网一卡通</option>' +
    '          </select>' +
    '          　Skype注册帐号：' +
    '          <input type="text" id=text_skype_id name="text_skype_id" style="width:100px" />' +
    '        </div>' +
    '        <div style="text-align:right">' +
    '          <a class="cursor1" onclick="' + user_xrd_func + 'skyddd_buy_redeem_submit()">' +
    '            <img src="images/icon3.gif" />' +
    '          </a>' +
    '        </div>' +
    '</div><br>'   +
		'<div id="nyyh_click" name="nyyh_click" class="ts end" style="display:none"> '+
	'公告<br>'+
'　　中国农业银行于2008年7月17日20：00时起，停止电子支付卡支付服务，为了您能继续顺利使用网上<br>'+
'银行支付，请您到中国农业银行营业网点领取动态口令卡或升级为K宝用户。详情请查询中国农业银行官<br>'+
'方网站，或咨询95599。'+
	'</div>';
        return html;
}


/*new method*/
function skyddd_html_redeem_nyyh_note(ids){
if (ids== "1001008"   )     {document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "1001006"   ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "1001007"   ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "10060001"  ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "1001016"   ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "1001012"   ){document.getElementById("nyyh_click").style.display="";}     
else if (ids== "10065001"  ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "1001013"   ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "99bill"    ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "alipay"    ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "yeepay"    ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "TWHT"      ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "remitpay"  ){document.getElementById("nyyh_click").style.display="none";} 
else if (ids== "junnet"    ){document.getElementById("nyyh_click").style.display="none";} 

	
}
/* new method end*/
function skyddd_html_get_pay_type_hint(type)
{
        var href = "";
        var h1 = "http://skype.tom.com/help/bank/";
        var h2 = "http://skype.tom.com/help/bank/262.html";
        
        /*switch (type) {
        case 'netbank' :
                href = h1 + '246.html';
                return "足不出户，安全便捷，即时到帐。请确保您已经在银行柜台开通了网上银行支付功能,否则将无法支付成功。 <a href='"+href+"' target='_blank' >如何开通</a>";
        case 'alipay' :
                href = h2 + '#02';
                if (hjsGetVal("bank_sub_type") == "KT") {                
                        return "支付宝卡通，全新的网上支付服务，无需开通网上银行，使用银行卡轻松完成购买。<a href='"+href+"' target='_blank' >如何使用</a>";
                }
                else {
                        return "超人气网络交易安全支付平台，全国数千万用户首选。请确保您已开通支付宝帐户，或者您也可使用支付宝其他方式进行支付。<a href='"+href+"' target='_blank' >如何使用</a>";
                }
        case '99bill' :
                href = h2 + '#01';
                return "国内知名的综合电子支付专家，提供线上线下等多种付款方式。请确保您已开通快钱帐户，或者您可使用快钱其他方式进行支付，否则将无法支付成功。 <a href='"+href+"' target='_blank' >如何开通</a>";
        case 'yeepay' :
                href = h2 + '#03';
                return "国内知名的综合电子支付专家。提供线上线下等多种付款方式。请确保您已开通易宝帐户，或者您可使用易宝其他方式进行支付，否则将无法支付成功。 <a href='"+href+"' target='_blank' >如何开通</a>";
        case 'TWHT' :
                href = h2 + '#04';
                return "全国邮局联网直通，均可在邮局内购买到网汇通实卡。请确保您已开通网汇通帐户，否则将无法支付成功。 <a href='"+href+"' target='_blank' >如何使用</a>";
        case 'remitpay' :
                href = h2 + '#06';
                return "网上购物，线下支付，请提交订单，并按照页面提示通过银行柜台或邮局进行支付。 <a href='"+href+"' target='_blank' >如何使用</a>";
        case 'junnet' :
                href = h2 + '#05';
                return "全国城市报刊亭、便利店均可买到，离您最近最便捷的支付服务。请您事先购买骏网一卡通卡，或者已开通骏网帐户，否则将无法支付成功。 <a href='"+href+"' target='_blank' >如何使用</a>";
        case '1001008' :
                href = h1 + '246.html';
                return "招商银行：请确保您已经在银行柜台开通了网上支付功能，否则将无法支付成功。咨询热线：95555 <a href='"+href+"' target='_blank' >如何开通</a>";
        case '1001006' :
                href = h1 + '245.html';
                return "工商银行：请确保您已经在银行柜台开通了网上支付功能,否则将无法支付成功。咨询热线：95588 <a href='"+href+"' target='_blank' >如何开通</a>";
        case '1001012' :
                href = h1 + '248.html';
                return "<font color=red>公告：中国农业银行于2008年7月17日20：00时起，停止电子支付卡支付服务，为了您能继续顺利使用网上银行支付，请您到中国农业银行营业网点领取动态口令卡或升级为K宝用户。详情请查询中国农业银行官方网站，或咨询95599。感谢您对skype的支持！</font>";
				//return "中国农业银行：请确保您已经在农行的网站上开通了网上支付功能，否则将无法支付成功。咨询热线：95599 <a href='"+href+"' target='_blank' >如何开通</a>";
        case '1001007' :
                href = h1 + '247.html';
                return "建设银行：请确保您是使用建行信用卡（可直接网银开通）或者已经在建行柜台签约的借记卡和准贷记卡（不含存折）进行的支付。咨询热线：95533 <a href='"+href+"' target='_blank' >如何开通</a>";
        case '10065001' :
                href = h1 + '257.html';
                return "上海浦发：请确保您已经在银行柜台开通了网上支付功能，否则将无法支付成功。咨询热线：95528 <a href='"+href+"' target='_blank' >如何开通</a>";
        case '1001013' :
                href = h1 + '252.html';
                return "深圳发展银行：请确保您已是刮刮卡、编码器或证书的用户。咨询热线：95501 <a href='"+href+"' target='_blank' >如何开通</a>";
        case '1001016' :
                href = h1 + '255.html';
                return "中信银行：请确保您已经在银行柜台开通了网上支付功能，否则将无法支付成功。咨询热线：95558 <a href='"+href+"' target='_blank' >如何开通</a>";
        case '10060001' :
                href = h1 + '250.html';
                return "中国银行：中国银行网上支付目前仅覆盖上海市和广东省客户   中国银行客服电话：95566 <a href='"+href+"' target='_blank' >如何开通</a>";
        } */

        return "";
}


function skyddd_buy_write_confirmed_div(submit_func)
{
        var html =     
    '<div class="ts4">' +
    '  <div class="ee">' +
    '    <a class="cursor1" onclick=\'hjsDriftDivClose("div_redeem_confirmed")\'><img src="images/close.gif" alt="关闭"/></a>' +
    '  </div>' +
    '  <ul>' +
    '    <li><span>您要充值的帐号：</span><span id=confirme_skype_id name=confirme_skype_id></span></li>' +
    '  </ul>' +
    '  <ul class="end">' +
    '  </ul>' +
    '  <div align="left">' +
    '    <code class="f14">种类：</code><code class="f14" id=confirme_type name=confirme_type></code><br/>' +
    '    <code class="f14">面值：</code><code class="f14" id=confirme_amount name=confirme_amount></code><br/>' +
    '    <code class="f14">数量：</code><code class="f14" id=confirme_count name=confirme_count></code><br/>' +
    '    <code class="f14">总金额：</code><code class="f14" id=confirme_total name=confirme_total></code><br/>' +
    '    <code id=confirme_info name=confirme_info></code>' +
    '  </div>' +
    '  <div align="center">' +
    '    <img src="images/cbuy.gif" width="90" height="31" class="cursor1" onclick="'+submit_func+'" /> 　' +
    '    <img src="images/reselect.gif" width="90" height="31" class="cursor1" onclick=\'hjsDriftDivClose("div_redeem_confirmed")\' />' +
    '  </div>' +
    '</div>';

        hjsDriftDiv("div_redeem_confirmed", html, 300, 300);
}


function skyddd_buy_click_href_pay_problem()
{
        hjsDriftDivClose("div_redeem_completed");
}


function skyddd_buy_write_completed_div()
{
        var html =
      '<div class="ts3">' +
      '  <div class="ee">' +
      '    <a class="cursor1" onclick=\'hjsDriftDivClose("div_redeem_completed")\'><img src="images/close.gif" alt="关闭"/></a>' +
      '  </div>' +
      '  <ul>' +
      '    <li><img src="images/ts1.gif" width="62" height="80" />' +
      '    <li>' +
      '    <li><span><nobr>请您在新打开的网上银行页面完成付款</nobr></span></li>' +
      '  </ul>' +
      '  <ul class="end">' +
      '  </ul>' +
      '  <div>' +
      '    付款完成前请不要关闭窗口<br />' +
      '    完成付款后根据您的情况点击下面的按钮' +
      '  </div>' +
      '  <div>' +
      '    <img src="images/finish.gif" width="120" height="31" class="cursor1" onclick=\'hjsDriftDivClose("div_redeem_completed")\' /> 　' +
      '    <a id="href_pay_problem" name="href_pay_problem" href="http://skype.tom.com/help/out_help1.html" target="_blank">' +
      '      <img src="images/nofinish.gif" width="120" height="31" class="cursor1" onclick="skyddd_buy_click_href_pay_problem()" />' +
      '    </a>' +
      '  </div>' +
      '</div>';
      
      hjsDriftDiv("div_redeem_completed", html, 300, 300);
}

