if(    location.hostname!='www.qindex.info'
    && location.hostname!='qindex.info'
    && location.hostname!='211.233.11.177'
    && location.hostname!='www.kallery.net'
    && location.hostname!='kallery.net'
    && location.hostname!='www.spigon.com'
    && location.hostname!='spigon.com'
    )
    window.alert('Q_form.js is requested by unregistered domain.');

var Q_form = {
/*
Browser(s): MSIE7, MSIE8, Firefox3, Safari3, Opera9, Chrome0
DTD(s): Quirks, Strict XHTML 1.0, Strict HTML 4.01
OS(s): Windows XP, Windows Vista
Created: 2004-11-15
Last Updated: 2009-01-11
By: Qindex.info
Usage: 
    1. Change the img_file's URL to your browse button image's (It should be 58px wide and 18px high.)
    2. Include Q_form.js in the head of a webpage.
More... http://qindex.info/Q_get.php?g_clss=forum&g_prcss=thrd&g_tmplt=&g_brd=5&g_thrd=152
*/
     usr_agnt : ''
    ,img_file : ''
    ,bttn  : 0
    ,styls : null
    ,alter : function(flg) {
        Q_form.styls['padding-top']    = '1px';
        Q_form.styls['padding-right']  = '4px';
        Q_form.styls['padding-bottom'] = '1px';
        Q_form.styls['padding-left']   = '4px';
        if(flg=='hangul') { Q_form.styls['font-family'] = '맑은 고딕,굴림'; Q_form.styls['font-size'] =  '12px'; }
        else              { Q_form.styls['font-family'] = 'Tahoma'; Q_form.styls['font-size'] = '11px'; }
        if(flg=='hangul') Q_form.styls['padding-bottom'] = '2px';
        if(Q_form.usr_agnt.indexOf('windows nt 5.1')!=-1) {
            if(Q_form.usr_agnt.indexOf('msie 7.0')!=-1) {
                if(flg=='hangul') Q_form.styls['padding-top'   ] = '2px';
            } else if(Q_form.usr_agnt.indexOf('chrome')!=-1) {
            } else if(Q_form.usr_agnt.indexOf('safari')!=-1) {
            } else if(Q_form.usr_agnt.indexOf('opera')!=-1) {
            }
        } else if(Q_form.usr_agnt.indexOf('windows nt 6.0')!=-1) {
            if(Q_form.usr_agnt.indexOf('msie 7.0')!=-1) {
                if(flg=='hangul') Q_form.styls['padding-top'] = '2px';
            } else if(Q_form.usr_agnt.indexOf('msie 8.0')!=-1) {
            } else if(Q_form.usr_agnt.indexOf('firefox/3')!=-1) {
                if(flg=='hangul') Q_form.styls['padding-top'] = '2px'; 
            } else if(Q_form.usr_agnt.indexOf('chrome')!=-1) {
            } else if(Q_form.usr_agnt.indexOf('safari')!=-1) {
            } else if(Q_form.usr_agnt.indexOf('opera')!=-1) {
            }
        }
    }
    ,mouse : function(objct,mode) {
        switch(mode) {
            case 0:
                objct.style.borderTopColor    = Q_form.styls['border-color'];
                objct.style.borderRightColor  = Q_form.styls['border-color-dark'];
                objct.style.borderBottomColor = Q_form.styls['border-color-dark'];
                objct.style.borderLeftColor   = Q_form.styls['border-color'];
                objct.style.backgroundColor   = Q_form.styls['background-color'];
                objct.style.color             = Q_form.styls['color'];
                break;
            case 1:
                objct.style.borderTopColor    = Q_form.styls['border-color-MO'];
                objct.style.borderRightColor  = Q_form.styls['border-color-dark-MO'];
                objct.style.borderBottomColor = Q_form.styls['border-color-dark-MO'];
                objct.style.borderLeftColor   = Q_form.styls['border-color-MO'];
                objct.style.backgroundColor   = Q_form.styls['background-color-MO'];
                objct.style.color             = Q_form.styls['color-MO'];
                break;
            case 2:
                objct.style.borderTopColor    = Q_form.styls['border-color-MD'];
                objct.style.borderRightColor  = Q_form.styls['border-color-dark-MD'];
                objct.style.borderBottomColor = Q_form.styls['border-color-dark-MD'];
                objct.style.borderLeftColor   = Q_form.styls['border-color-MD'];
                objct.style.backgroundColor   = Q_form.styls['background-color-MD'];
                objct.style.color             = Q_form.styls['color-MD'];
                break;
        }
    }
    ,button : function() {
        Q_form.bttn ++;
        Q_form.alter(arguments[arguments.length-1]);
        strng  = "\n<!-- Q_form.button start -->\n"
            + "<div id='i_bttn_"+Q_form.bttn+"' style='cursor:pointer; margin:0px; vertical-align:middle;"
            + " border-width: "+Q_form.styls['border-width']+"; border-style: solid;"
            + " border-color: "+Q_form.styls['border-color']+" "+Q_form.styls['border-color-dark']+" "+Q_form.styls['border-color-dark']+" "+Q_form.styls['border-color']+";"
            + " padding: "+Q_form.styls['padding-top']+" "+Q_form.styls['padding-right']+" "+Q_form.styls['padding-bottom']+" "+Q_form.styls['padding-left']  +";"
            + " background-color:"+Q_form.styls['background-color']+";"
            + " color:"           +Q_form.styls['color']      +";"
            + " font-family:"     +Q_form.styls['font-family']+";"
            + " font-size:"       +Q_form.styls['font-size']  +";"
            + " font-weight:"     +Q_form.styls['font-weight']+";"
            + "'\n";
        strng  += "    onmouseover=\"Q_form.mouse(this,1);"
        for(n=1; n<arguments.length; n+=2) if(arguments[n]=='onmouseover') { strng += " "+arguments[n+1]; break; }
        strng  += "\"\n"
        strng  += "    onmouseout =\"Q_form.mouse(this,0);"
        for(n=1; n<arguments.length; n+=2) if(arguments[n]=='onmouseout' ) { strng += " "+arguments[n+1]; break; }
        strng  += "\"\n"
        strng  += "    onmousedown=\"Q_form.mouse(this,2);"
        for(n=1; n<arguments.length; n+=2) if(arguments[n]=='onmousedown') { strng += " "+arguments[n+1]; break; }
        strng  += "\"\n"
        strng  += "    onmouseup  =\"Q_form.mouse(this,1);"
        for(n=1; n<arguments.length; n+=2) if(arguments[n]=='onmouseup'  ) { strng += " "+arguments[n+1]; break; }
        strng  += "\"\n"
        for(n=1; n<arguments.length; n+=2) {
            if(arguments[n]!='onmouseover'
            && arguments[n]!='onmouseout'
            && arguments[n]!='onmousedown'
            && arguments[n]!='onmouseup') {
                strng += "    "+arguments[n]+"=\""+arguments[n+1]+"\"\n";
            }
        }
        strng  += ">"
            + arguments[0]
            + "</div>\n"
            + "<!-- Q_form.button end -->\n";
        document.write(strng);
        if(arguments[arguments.length-1]=='dbgg') document.getElementById('i_dbgg').value = strng;
    }
    ,start : function() {
        Q_form.usr_agnt = navigator.userAgent.toLowerCase();
        var strng = '';
        strng += "<style type='text/css'>\n";
        strng += ".c_frm_hddn { padding:0px; border-width:0px; margin:0px; width:1px; height:1px; }\n";
        strng += ".c_frm_tbl  { font-size:12px; border-spacing:3px; }\n";
        strng += ".c_frm_td   { vertical-align:middle; }\n";
        strng += ".c_frm_dvsn ,.c_frm_txt ,.c_frm_file ,.c_frm_bttn ,.c_frm_slct ,c_frm_optn\n";
        strng += "    { font-family:Tahoma; font-size:12px; }\n";
        strng += ".c_frm_dvsn_,.c_frm_txt_,.c_frm_file_,.c_frm_bttn_,.c_frm_slct_,c_frm_optn_\n";
        strng += "    { font-family:맑은 고딕,굴림;  font-size:12px; }\n";
        strng += ".c_frm_txtar { font-family:'Courier New'; font-size:12px; width:95%; }\n";
        if(Q_form.usr_agnt.indexOf('windows nt 5.1')!=-1) {
            if(Q_form.usr_agnt.indexOf('msie 7.0')!=-1) {
                strng += ".c_frm_dvsn_ { margin:3px 0px 0px 0px; }\n";
                strng += ".c_frm_slct_ { margin:2px 0px 0px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; position:relative; left:-25px; cursor:pointer; filter:alpha(opacity=0); }\n";
            } else if(Q_form.usr_agnt.indexOf('msie 8.0')!=-1) { //problem: no pointer
                strng += ".c_frm_dvsn_ { margin:3px 0px 0px 0px; }\n";
                strng += ".c_frm_slct_ { margin:2px 0px 0px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                if(document.compatMode=='BackCompat')
                     strng += ".c_frm_file { width:0px; left:-35px; cursor:pointer; filter:alpha(opacity=0); }\n";
                else strng += ".c_frm_file { width:60px; position:relative; left:-58px; cursor:pointer; }\n";
            } else if(Q_form.usr_agnt.indexOf('msie')!=-1) { //problem: no pointer
                strng += ".c_frm_dvsn_ { margin:3px 0px 0px 0px; }\n";
                strng += ".c_frm_slct_ { margin:2px 0px 0px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; position:relative; left:-25px; cursor:pointer; filter:alpha(opacity=0); }\n";
            } else if(Q_form.usr_agnt.indexOf('firefox')!=-1) { //3 problem: no pointer, _blank not work
                strng += ".c_frm_rd,.c_frm_rd_ { margin:0px 0px 1px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { position:relative; left:-35px; -moz-opacity:0; }\n";
            } else if(Q_form.usr_agnt.indexOf('chrome')!=-1) { //0 problem: no pointer
                strng += ".c_frm_rd,.c_frm_rd_ { margin:0px 0px 1px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; }\n";
            } else if(Q_form.usr_agnt.indexOf('safari')!=-1) { //3 problem: no pointer
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; }\n";
            } else if(Q_form.usr_agnt.indexOf('opera/9.5')!=-1) {
                strng += ".c_frm_file_div { width:63px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:63px; height:18px; }\n";
            } else if(Q_form.usr_agnt.indexOf('opera')!=-1) {
                strng += ".c_frm_file_div { width:65px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:70px; height:18px; }\n";
            } else {
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; position:relative; left:-25px; cursor:pointer; filter:alpha(opacity=0); }\n";
            }
        } else if(Q_form.usr_agnt.indexOf('windows nt 6.0')!=-1) {
            if(Q_form.usr_agnt.indexOf('msie 7.0')!=-1) { // msie7
                strng += ".c_frm_dvsn_ { margin:3px 0px 0px 0px; }\n";
                strng += ".c_frm_slct_ { margin:2px 0px 0px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; position:relative; left:-25px; cursor:pointer; filter:alpha(opacity=0); }\n";
            } if(Q_form.usr_agnt.indexOf('msie 8.0')!=-1) { // msie8
                strng += ".c_frm_dvsn_ { margin:3px 0px 0px 0px; }\n";
                strng += ".c_frm_slct_ { margin:2px 0px 0px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                if(document.compatMode=='BackCompat')
                     strng += ".c_frm_file { width:0px; left:-35px; cursor:pointer; filter:alpha(opacity=0); }\n";
                else strng += ".c_frm_file { width:60px; position:relative; left:-58px; cursor:pointer; }\n";
            } else if(Q_form.usr_agnt.indexOf('msie')!=-1) { // msie
                strng += ".c_frm_dvsn_ { margin:3px 0px 0px 0px; }\n";
                strng += ".c_frm_slct_ { margin:2px 0px 0px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; position:relative; left:-25px; cursor:pointer; filter:alpha(opacity=0); }\n";
            } else if(Q_form.usr_agnt.indexOf('firefox')!=-1) { //problem: no pointer, _blank not work
                strng += ".c_frm_rd,.c_frm_rd_ { margin:0px 0px 1px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { position:relative; left:-35px; -moz-opacity:0; }\n";
            } else if(Q_form.usr_agnt.indexOf('chrome')!=-1) { //0 problem: no pointer
                strng += ".c_frm_rd,.c_frm_rd_ { margin:0px 0px 1px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; }\n";
            } else if(Q_form.usr_agnt.indexOf('safari')!=-1) { //3 problem: no pointer
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; }\n";
            } else if(Q_form.usr_agnt.indexOf('opera')!=-1) { //9
                strng += ".c_frm_file_div { width:65px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:70px; height:18px; }\n";
            } else {
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; position:relative; left:-25px; cursor:pointer; filter:alpha(opacity=0); }\n";
            }
        } else {
            if(Q_form.usr_agnt.indexOf('msie 7.0')!=-1) { // msie7
                strng += ".c_frm_dvsn_ { margin:3px 0px 0px 0px; }\n";
                strng += ".c_frm_slct_ { margin:2px 0px 0px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; position:relative; left:-25px; cursor:pointer; filter:alpha(opacity=0); }\n";
            } else if(Q_form.usr_agnt.indexOf('msie 8.0')!=-1) { //problem: no pointer
                strng += ".c_frm_dvsn_ { margin:3px 0px 0px 0px; }\n";
                strng += ".c_frm_slct_ { margin:2px 0px 0px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                if(document.compatMode=='BackCompat')
                     strng += ".c_frm_file { width:0px; left:-35px; cursor:pointer; filter:alpha(opacity=0); }\n";
                else strng += ".c_frm_file { width:60px; position:relative; left:-58px; cursor:pointer; }\n";
            } else if(Q_form.usr_agnt.indexOf('msie')!=-1) { //problem: no pointer
                strng += ".c_frm_dvsn_ { margin:3px 0px 0px 0px; }\n";
                strng += ".c_frm_slct_ { margin:2px 0px 0px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; position:relative; left:-25px; cursor:pointer; filter:alpha(opacity=0); }\n";
            } else if(Q_form.usr_agnt.indexOf('firefox')!=-1) { //problem: no pointer, _blank not work
                strng += ".c_frm_rd,.c_frm_rd_ { margin:0px 0px 1px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { position:relative; left:-35px; -moz-opacity:0; }\n";
            } else if(Q_form.usr_agnt.indexOf('chrome')!=-1) { //problem: no pointer
                strng += ".c_frm_rd,.c_frm_rd_ { margin:0px 0px 1px 0px; }\n";
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; }\n";
            } else if(Q_form.usr_agnt.indexOf('safari')!=-1) { //problem: no pointer
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; }\n";
            } else if(Q_form.usr_agnt.indexOf('opera')!=-1) {
                strng += ".c_frm_file_div { width:65px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:70px; height:18px; }\n";
            } else {
                strng += ".c_frm_file_div { width:58px; height:18px; overflow:hidden; background-image:url("+Q_form.img_file+"); }\n";
                strng += ".c_frm_file { width:0px; position:relative; left:-25px; cursor:pointer; filter:alpha(opacity=0); }\n";
            }
        }
        strng += "</style>\n";
        document.write(strng);

        Q_form.styls = new Array();
        Q_form.styls['font-weight']  = 'normal';
        Q_form.styls['border-width'] = '1px';
        // normal
        Q_form.styls['border-color']         = '#C0C0C0';
        Q_form.styls['border-color-dark']    = '#777';
        Q_form.styls['background-color']     = '#EEEEEE';
        Q_form.styls['color']                = '#222222';
        // mouseover
        Q_form.styls['border-color-MO']      = '#C0C0C0';
        Q_form.styls['border-color-dark-MO'] = '#777';
        Q_form.styls['background-color-MO']  = 'white';
        Q_form.styls['color-MO']             = '#222222';
        // mousedown
        Q_form.styls['border-color-MD']      = '#C0C0C0';
        Q_form.styls['border-color-dark-MD'] = '#777';
        Q_form.styls['background-color-MD']  = '#EAEAEA';
        Q_form.styls['color-MD']             = '#222222';
    }
};
Q_form.img_file = 'http://qindex.info/Q_incld/Q_form_button.php?text=BROWSE&padding_vertical=4&font_size=8';
Q_form.start();

