﻿// JScript File


function sendemail(beg,ending) {
	window.open('mailto:' + beg + '@' + ending);
}

var mbcCurAds = 0;


function mbcShowSiteAds(fx_cnxreg, fx_info, fx_cid, fx_region, fx_rnd) {
    if (mbcCurAds<5) {
        ajaxgetdata('/site/content/fw/ajax_ads.cnx?tcnxreg=' + fx_cnxreg + '&info=' + fx_info + '&cid=' + fx_cid + '&region=' + fx_region + '&rnd=' + fx_rnd, '', 'headtads','headtads', 1);
    }        
    mbcCurAds++
}




function mbcRegPop(fx_title, fx_params, fx_submit) {    
    var var_postdata = '';
    
    if (fx_title!='x') {
        tb_show(fx_title,'#TB_inline?height=400&width=600&inlineId=tbapploading')
        if (fx_params=='') {
            fx_params = 'p=s'
        }
    }        
    
    if (fx_submit==true) {
        var_postdata = formData2QueryString(document.getElementById('popRegForm'))
    }
    ajaxgetdata('/site/web/pop/register/index.cnx?p=s&' + fx_params, var_postdata, 'TB_ajaxContent','TB_ajaxContent', 1);
}

function mbcRegPopCheck(fx_field, fx_ob) {

    var var_item = fx_ob.id;
    

    if (fx_ob.className.indexOf('sc_checked')>=0) {
        fx_ob.className = fx_ob.className.replace('sc_checked', ' ');
        document.getElementById(fx_field).value = document.getElementById(fx_field).value.replace('[' + var_item + ']', '');
    } else {
        fx_ob.className = fx_ob.className + ' sc_checked';
        document.getElementById(fx_field).value = document.getElementById(fx_field).value + '[' + var_item + ']';
    }    

}




var mmen_cur;
var mmen_curitem = '';
var mmen_stillshow = 0;
var mmen_curitemt = ''

function mmenover(fx_men) {
    if (mmen_curitemt!='') {
        mmenhide(mmen_curitemt);
    }        
    mmen_curitemt = fx_men;
    clearTimeout(mmen_cur);
    mmen_stillshow = 1;
    mmen_curitem = document.getElementById('mainhov_' + fx_men)    
    mmen_cur = setTimeout('mmenshow(\'' + fx_men + '\') ', 50);
}

function mmenshow(fx_men) {
    if (mmen_stillshow==1) {            
        mmen_curitem.className='stagemensub';           
    }        
}

function mmenout(fx_men) {  
    clearTimeout(mmen_cur); 
    mmen_cur = setTimeout('mmenhide(\'' + fx_men + '\') ', 200);       
}

function mmenhide(fx_men) {  
    clearTimeout(mmen_cur);
    if (mmen_curitem!=null) {
        mmen_curitem.className='stagemensubhide';           
    }        
    mmen_stillshow = 0;
}

function mmenhovto() {
    clearTimeout(mmen_cur);
}

function mmenclearcur() {
    mmenout(mmen_curitemt);
}