//_bro=(window.opera?4:(window.external?3:(window.controllers?1:(document.layers?2:0))));
_bro=(window.opera?4:(document.all?3:(document.getElementById?1:(document.layers?2:0))));
_ie5=(navigator.appName.indexOf('Microsoft Internet Explorer')>=0 &&document.getElementById)?1:0;
if(navigator.userAgent.indexOf('Safari')>=0) { _bro = 1; }
if(navigator.userAgent.indexOf('Mac')>=0) { _ie5 = 2; }


var win=null;
window.onerror = null;


function MM_openBrWindow(theURL,winName,features) {
	if (!window.win) {
		// has not yet been defined
		win=window.open(theURL,winName,features);
	}
	else {
		// has been defined
		if (!win.closed) {
			// still open
			win.close();
			win = window.open(theURL,winName,features);
			win.focus();
		}
		else {
			win = window.open(theURL,winName,features);
		}
	}
}

function getDivFromName(nm){
    if(_bro==1||_bro==4) return document.getElementById(nm);
    if(_bro==2){
        var s='';
        for(var i=1; i<arguments.length; i++)
            s+='document.layers.'+arguments[i]+'.';
        return eval(s+'document.layers.'+nm);
    }
    if(_bro==3) return _ie5?document.getElementById(nm):document.all(nm);
    return null;
}


function writeDivHTML(div,op,cl){
    var s='';
    for(var i=3; i<arguments.length; i++) s+=arguments[i];
    if(_bro==1){
        if(op){
            var len=div.childNodes.length;
            for(var i=0; i<len; i++) div.removeChild(div.firstChild);
        }
        var range=document.createRange();
        range.selectNodeContents(div);
        range.collapse(true);
        var cf=range.createContextualFragment(s);
        div.insertBefore(cf,null);
    } else if(_bro==2){
        if(op) div.document.open('text/html','replace');
        div.document.write(s);
        if(cl) div.document.close();
    } else if(_bro==3||_bro==4){
        if(op) div.innerHTML='';
        div.insertAdjacentHTML('BeforeEnd',s);
    }
}

              
timerID = 10;
tmpLayer = '';

function hideTemp(layerName) {
	hide(layerName);
	clearTimeout(timerID);
	tmpLayer = layerName;
	timerID = setTimeout("showTemp()", 30000);
}

function hide(layerName) {
	if (document.layers && document.layers[layerName])
		document.layers[layerName].visibility='hide'
	if (document.all && document.all(layerName))
		document.all(layerName).style.visibility='hidden'
}

function showTemp() {
	show(tmpLayer);
	tmpLayer = '';
}

function show(layerName) {
	if (document.layers && document.layers[layerName])
		document.layers[layerName].visibility='show'
	if (document.all && document.all(layerName))
		document.all(layerName).style.visibility='visible'
}

function autoFocus()
{
	if (document.signup) {
		var parts = document.signup.elements;
		for (i=0; i<parts.length; i++) {
			if (parts[i].type == 'text') {
				parts[i].focus();
				break;
			}
		}
	}
}

__username.onchange = function() {
      try {
        __signup = ajaxac_createXMLHttp();

__signup.open('get', '/signup.php/check_username' + '?' + 'username=' + encodeURIComponent(__username.value) + '&' + 'password=' + encodeURIComponent(__password.value) + '&' + 'password2=' + encodeURIComponent(__password2.value) + '&' + 'email=' + encodeURIComponent(__email.value) + '&' + 'acceptmail=' + encodeURIComponent(__acceptmail.checked) + '&' + 'sub_cd=' + encodeURIComponent(__sub_cd.value) + '&' + 'last_name=' + encodeURIComponent(__last_name.value) + '&' + 'first_name=' + encodeURIComponent(__first_name.value) + '&' + 'agree=' + encodeURIComponent(__agree.checked) + '&' + 'lang=' + encodeURIComponent(__lang.value) + '&' + 'prd_cd=' + encodeURIComponent(__prd_cd.value) + '&' + 'frontend_cd=' + encodeURIComponent(__frontend_cd.value) + '&' + 'dispatcher_cd=' + encodeURIComponent(__dispatcher_cd.value) + '&' + 'prg_user_cd=' + encodeURIComponent(__prg_user_cd.value) + '&' + 'sitecode=' + encodeURIComponent(__sitecode.value) + '&' + 'errorvalue=' + encodeURIComponent(__errorvalue.value));

__signup_xmlhttpsuccess = function() {
      _data = ajaxac_receivejsarray(__signup.responseText);
      var box = getDivFromName('msg_username');
      writeDivHTML(box,true,true,_data[1]);
      if(_data[1] != '') {
         document.getElementById('username').focus();
         document.getElementById('username').select();
         document.getElementById('fld_username').className='Fields-err';
      } else {
         document.getElementById('password').value='';
         document.getElementById('fld_username').className='Fields';
      }
      document.getElementById('errorvalue').value = _data[0][0];

    var box = getDivFromName('msg_ready');
    writeDivHTML(box,true,true,'');
    if (_data[0].length > 1) {
       document.getElementById('pform_url').action = _data[0][1];
       document.getElementById('pform_sitecode').value = _data[0][2];
       document.getElementById('pform_page').value = _data[0][3];
       document.getElementById('pform_email').value = _data[0][4];
       document.getElementById('pform_user').value = _data[0][5];
       document.getElementById('pform_password1').value = _data[0][6];
       document.getElementById('pform_password2').value = _data[0][7];
       document.getElementById('pform_country').value = _data[0][8];
       document.getElementById('pform_name').value = _data[0][9];
       document.getElementById('jump_btn').disabled = false;

    } else {
       document.getElementById('jump_btn').disabled = true;
    }

    }

__signup_onreadystatechange = function()
                                {
                                    if (__signup.readyState == 4) {
                                        switch (__signup.status) {
                                            case 200: if (__signup_xmlhttpsuccess) __signup_xmlhttpsuccess(); break;
                                        }
                                    }
                                }

__signup.onreadystatechange = __signup_onreadystatechange;

__signup.send(null);
      } catch(e) {
        alert(e.message);
      }
      return true;
    }
__password.onchange = function() {
      try {
        __signup = ajaxac_createXMLHttp();

__signup.open('get', '/signup.php/check_password' + '?' + 'username=' + encodeURIComponent(__username.value) + '&' + 'password=' + encodeURIComponent(__password.value) + '&' + 'password2=' + encodeURIComponent(__password2.value) + '&' + 'email=' + encodeURIComponent(__email.value) + '&' + 'acceptmail=' + encodeURIComponent(__acceptmail.checked) + '&' + 'sub_cd=' + encodeURIComponent(__sub_cd.value) + '&' + 'last_name=' + encodeURIComponent(__last_name.value) + '&' + 'first_name=' + encodeURIComponent(__first_name.value) + '&' + 'agree=' + encodeURIComponent(__agree.checked) + '&' + 'lang=' + encodeURIComponent(__lang.value) + '&' + 'prd_cd=' + encodeURIComponent(__prd_cd.value) + '&' + 'frontend_cd=' + encodeURIComponent(__frontend_cd.value) + '&' + 'dispatcher_cd=' + encodeURIComponent(__dispatcher_cd.value) + '&' + 'prg_user_cd=' + encodeURIComponent(__prg_user_cd.value) + '&' + 'sitecode=' + encodeURIComponent(__sitecode.value) + '&' + 'errorvalue=' + encodeURIComponent(__errorvalue.value));

__signup_xmlhttpsuccess = function() {
      _data = ajaxac_receivejsarray(__signup.responseText);
      var box = getDivFromName('msg_password');
      writeDivHTML(box,true,true,_data[1]);
      if(_data[1] != '') {
         document.getElementById('password').focus();
         document.getElementById('password').select();
         document.getElementById('fld_password').className='Fields-err';
      } else {
         document.getElementById('password2').value='';
         document.getElementById('fld_password').className='Fields';
      }
      document.getElementById('errorvalue').value = _data[0][0];

    var box = getDivFromName('msg_ready');
    writeDivHTML(box,true,true,'');
    if (_data[0].length > 1) {
       document.getElementById('pform_url').action = _data[0][1];
       document.getElementById('pform_sitecode').value = _data[0][2];
       document.getElementById('pform_page').value = _data[0][3];
       document.getElementById('pform_email').value = _data[0][4];
       document.getElementById('pform_user').value = _data[0][5];
       document.getElementById('pform_password1').value = _data[0][6];
       document.getElementById('pform_password2').value = _data[0][7];
       document.getElementById('pform_country').value = _data[0][8];
       document.getElementById('pform_name').value = _data[0][9];
       document.getElementById('jump_btn').disabled = false;

    } else {
       document.getElementById('jump_btn').disabled = true;
    }

    }

__signup_onreadystatechange = function()
                                {
                                    if (__signup.readyState == 4) {
                                        switch (__signup.status) {
                                            case 200: if (__signup_xmlhttpsuccess) __signup_xmlhttpsuccess(); break;
                                        }
                                    }
                                }

__signup.onreadystatechange = __signup_onreadystatechange;

__signup.send(null);
      } catch(e) {
        alert(e.message);
      }
      return true;
    }
__password2.onchange = function() {
      try {
        __signup = ajaxac_createXMLHttp();

__signup.open('get', '/signup.php/check_password2' + '?' + 'username=' + encodeURIComponent(__username.value) + '&' + 'password=' + encodeURIComponent(__password.value) + '&' + 'password2=' + encodeURIComponent(__password2.value) + '&' + 'email=' + encodeURIComponent(__email.value) + '&' + 'acceptmail=' + encodeURIComponent(__acceptmail.checked) + '&' + 'sub_cd=' + encodeURIComponent(__sub_cd.value) + '&' + 'last_name=' + encodeURIComponent(__last_name.value) + '&' + 'first_name=' + encodeURIComponent(__first_name.value) + '&' + 'agree=' + encodeURIComponent(__agree.checked) + '&' + 'lang=' + encodeURIComponent(__lang.value) + '&' + 'prd_cd=' + encodeURIComponent(__prd_cd.value) + '&' + 'frontend_cd=' + encodeURIComponent(__frontend_cd.value) + '&' + 'dispatcher_cd=' + encodeURIComponent(__dispatcher_cd.value) + '&' + 'prg_user_cd=' + encodeURIComponent(__prg_user_cd.value) + '&' + 'sitecode=' + encodeURIComponent(__sitecode.value) + '&' + 'errorvalue=' + encodeURIComponent(__errorvalue.value));

__signup_xmlhttpsuccess = function() {
      _data = ajaxac_receivejsarray(__signup.responseText);
      var box = getDivFromName('msg_password2');
      writeDivHTML(box,true,true,_data[1]);
      if(_data[1] != '') {
         document.getElementById('password2').focus();
         document.getElementById('password2').select();
         document.getElementById('fld_password2').className='Fields-err';
      } else {
         document.getElementById('fld_password2').className='Fields';
      } 
      document.getElementById('errorvalue').value = _data[0][0];

    var box = getDivFromName('msg_ready');
    writeDivHTML(box,true,true,'');
    if (_data[0].length > 1) {
       document.getElementById('pform_url').action = _data[0][1];
       document.getElementById('pform_sitecode').value = _data[0][2];
       document.getElementById('pform_page').value = _data[0][3];
       document.getElementById('pform_email').value = _data[0][4];
       document.getElementById('pform_user').value = _data[0][5];
       document.getElementById('pform_password1').value = _data[0][6];
       document.getElementById('pform_password2').value = _data[0][7];
       document.getElementById('pform_country').value = _data[0][8];
       document.getElementById('pform_name').value = _data[0][9];
       document.getElementById('jump_btn').disabled = false;

    } else {
       document.getElementById('jump_btn').disabled = true;
    }

    }

__signup_onreadystatechange = function()
                                {
                                    if (__signup.readyState == 4) {
                                        switch (__signup.status) {
                                            case 200: if (__signup_xmlhttpsuccess) __signup_xmlhttpsuccess(); break;
                                        }
                                    }
                                }

__signup.onreadystatechange = __signup_onreadystatechange;

__signup.send(null);
      } catch(e) {
        alert(e.message);
      }
      return true;
    }
__email.onchange = function() {
      try {
        __signup = ajaxac_createXMLHttp();

__signup.open('get', '/signup.php/check_email' + '?' + 'username=' + encodeURIComponent(__username.value) + '&' + 'password=' + encodeURIComponent(__password.value) + '&' + 'password2=' + encodeURIComponent(__password2.value) + '&' + 'email=' + encodeURIComponent(__email.value) + '&' + 'acceptmail=' + encodeURIComponent(__acceptmail.checked) + '&' + 'sub_cd=' + encodeURIComponent(__sub_cd.value) + '&' + 'last_name=' + encodeURIComponent(__last_name.value) + '&' + 'first_name=' + encodeURIComponent(__first_name.value) + '&' + 'agree=' + encodeURIComponent(__agree.checked) + '&' + 'lang=' + encodeURIComponent(__lang.value) + '&' + 'prd_cd=' + encodeURIComponent(__prd_cd.value) + '&' + 'frontend_cd=' + encodeURIComponent(__frontend_cd.value) + '&' + 'dispatcher_cd=' + encodeURIComponent(__dispatcher_cd.value) + '&' + 'prg_user_cd=' + encodeURIComponent(__prg_user_cd.value) + '&' + 'sitecode=' + encodeURIComponent(__sitecode.value) + '&' + 'errorvalue=' + encodeURIComponent(__errorvalue.value));

__signup_xmlhttpsuccess = function() {
      _data = ajaxac_receivejsarray(__signup.responseText);
      var box = getDivFromName('msg_email');
      writeDivHTML(box,true,true,_data[1]);
      document.getElementById('email').value=_data[2];

      if(_data[1] != '') {
         document.getElementById('email').focus();
         document.getElementById('email').select();
         document.getElementById('fld_email').className='Fields-err';
      } else {
         document.getElementById('fld_email').className='Fields';
      }
      document.getElementById('errorvalue').value = _data[0][0];

    var box = getDivFromName('msg_ready');
    writeDivHTML(box,true,true,'');
    if (_data[0].length > 1) {
       document.getElementById('pform_url').action = _data[0][1];
       document.getElementById('pform_sitecode').value = _data[0][2];
       document.getElementById('pform_page').value = _data[0][3];
       document.getElementById('pform_email').value = _data[0][4];
       document.getElementById('pform_user').value = _data[0][5];
       document.getElementById('pform_password1').value = _data[0][6];
       document.getElementById('pform_password2').value = _data[0][7];
       document.getElementById('pform_country').value = _data[0][8];
       document.getElementById('pform_name').value = _data[0][9];
       document.getElementById('jump_btn').disabled = false;

    } else {
       document.getElementById('jump_btn').disabled = true;
    }

    }

__signup_onreadystatechange = function()
                                {
                                    if (__signup.readyState == 4) {
                                        switch (__signup.status) {
                                            case 200: if (__signup_xmlhttpsuccess) __signup_xmlhttpsuccess(); break;
                                        }
                                    }
                                }

__signup.onreadystatechange = __signup_onreadystatechange;

__signup.send(null);
      } catch(e) {
        alert(e.message);
      }
      return true;
    }
__acceptmail.onclick = function() {
      try {
        __signup = ajaxac_createXMLHttp();

__signup.open('get', '/signup.php/check_acceptmail' + '?' + 'username=' + encodeURIComponent(__username.value) + '&' + 'password=' + encodeURIComponent(__password.value) + '&' + 'password2=' + encodeURIComponent(__password2.value) + '&' + 'email=' + encodeURIComponent(__email.value) + '&' + 'acceptmail=' + encodeURIComponent(__acceptmail.checked) + '&' + 'sub_cd=' + encodeURIComponent(__sub_cd.value) + '&' + 'last_name=' + encodeURIComponent(__last_name.value) + '&' + 'first_name=' + encodeURIComponent(__first_name.value) + '&' + 'agree=' + encodeURIComponent(__agree.checked) + '&' + 'lang=' + encodeURIComponent(__lang.value) + '&' + 'prd_cd=' + encodeURIComponent(__prd_cd.value) + '&' + 'frontend_cd=' + encodeURIComponent(__frontend_cd.value) + '&' + 'dispatcher_cd=' + encodeURIComponent(__dispatcher_cd.value) + '&' + 'prg_user_cd=' + encodeURIComponent(__prg_user_cd.value) + '&' + 'sitecode=' + encodeURIComponent(__sitecode.value) + '&' + 'errorvalue=' + encodeURIComponent(__errorvalue.value));

__signup_xmlhttpsuccess = function() {
      _data = ajaxac_receivejsarray(__signup.responseText);

    var box = getDivFromName('msg_ready');
    writeDivHTML(box,true,true,'');
    if (_data[0].length > 1) {
       document.getElementById('pform_url').action = _data[0][1];
       document.getElementById('pform_sitecode').value = _data[0][2];
       document.getElementById('pform_page').value = _data[0][3];
       document.getElementById('pform_email').value = _data[0][4];
       document.getElementById('pform_user').value = _data[0][5];
       document.getElementById('pform_password1').value = _data[0][6];
       document.getElementById('pform_password2').value = _data[0][7];
       document.getElementById('pform_country').value = _data[0][8];
       document.getElementById('pform_name').value = _data[0][9];
       document.getElementById('jump_btn').disabled = false;

    } else {
       document.getElementById('jump_btn').disabled = true;
    }

    }

__signup_onreadystatechange = function()
                                {
                                    if (__signup.readyState == 4) {
                                        switch (__signup.status) {
                                            case 200: if (__signup_xmlhttpsuccess) __signup_xmlhttpsuccess(); break;
                                        }
                                    }
                                }

__signup.onreadystatechange = __signup_onreadystatechange;

__signup.send(null);
      } catch(e) {
        alert(e.message);
      }
      return true;
    }
__sub_cd.onchange = function() {
      try {
        __signup = ajaxac_createXMLHttp();

__signup.open('get', '/signup.php/check_sub_cd' + '?' + 'username=' + encodeURIComponent(__username.value) + '&' + 'password=' + encodeURIComponent(__password.value) + '&' + 'password2=' + encodeURIComponent(__password2.value) + '&' + 'email=' + encodeURIComponent(__email.value) + '&' + 'acceptmail=' + encodeURIComponent(__acceptmail.checked) + '&' + 'sub_cd=' + encodeURIComponent(__sub_cd.value) + '&' + 'last_name=' + encodeURIComponent(__last_name.value) + '&' + 'first_name=' + encodeURIComponent(__first_name.value) + '&' + 'agree=' + encodeURIComponent(__agree.checked) + '&' + 'lang=' + encodeURIComponent(__lang.value) + '&' + 'prd_cd=' + encodeURIComponent(__prd_cd.value) + '&' + 'frontend_cd=' + encodeURIComponent(__frontend_cd.value) + '&' + 'dispatcher_cd=' + encodeURIComponent(__dispatcher_cd.value) + '&' + 'prg_user_cd=' + encodeURIComponent(__prg_user_cd.value) + '&' + 'sitecode=' + encodeURIComponent(__sitecode.value) + '&' + 'errorvalue=' + encodeURIComponent(__errorvalue.value));

__signup_xmlhttpsuccess = function() {
      _data = ajaxac_receivejsarray(__signup.responseText);

    var box = getDivFromName('msg_ready');
    writeDivHTML(box,true,true,'');
    if (_data[0].length > 1) {
       document.getElementById('pform_url').action = _data[0][1];
       document.getElementById('pform_sitecode').value = _data[0][2];
       document.getElementById('pform_page').value = _data[0][3];
       document.getElementById('pform_email').value = _data[0][4];
       document.getElementById('pform_user').value = _data[0][5];
       document.getElementById('pform_password1').value = _data[0][6];
       document.getElementById('pform_password2').value = _data[0][7];
       document.getElementById('pform_country').value = _data[0][8];
       document.getElementById('pform_name').value = _data[0][9];
       document.getElementById('jump_btn').disabled = false;

    } else {
       document.getElementById('jump_btn').disabled = true;
    }

    }

__signup_onreadystatechange = function()
                                {
                                    if (__signup.readyState == 4) {
                                        switch (__signup.status) {
                                            case 200: if (__signup_xmlhttpsuccess) __signup_xmlhttpsuccess(); break;
                                        }
                                    }
                                }

__signup.onreadystatechange = __signup_onreadystatechange;

__signup.send(null);
      } catch(e) {
        alert(e.message);
      }
      return true;
    }
__last_name.onchange = function() {
      try {
        __signup = ajaxac_createXMLHttp();

__signup.open('get', '/signup.php/check_last_name' + '?' + 'username=' + encodeURIComponent(__username.value) + '&' + 'password=' + encodeURIComponent(__password.value) + '&' + 'password2=' + encodeURIComponent(__password2.value) + '&' + 'email=' + encodeURIComponent(__email.value) + '&' + 'acceptmail=' + encodeURIComponent(__acceptmail.checked) + '&' + 'sub_cd=' + encodeURIComponent(__sub_cd.value) + '&' + 'last_name=' + encodeURIComponent(__last_name.value) + '&' + 'first_name=' + encodeURIComponent(__first_name.value) + '&' + 'agree=' + encodeURIComponent(__agree.checked) + '&' + 'lang=' + encodeURIComponent(__lang.value) + '&' + 'prd_cd=' + encodeURIComponent(__prd_cd.value) + '&' + 'frontend_cd=' + encodeURIComponent(__frontend_cd.value) + '&' + 'dispatcher_cd=' + encodeURIComponent(__dispatcher_cd.value) + '&' + 'prg_user_cd=' + encodeURIComponent(__prg_user_cd.value) + '&' + 'sitecode=' + encodeURIComponent(__sitecode.value) + '&' + 'errorvalue=' + encodeURIComponent(__errorvalue.value));

__signup_xmlhttpsuccess = function() {
      _data = ajaxac_receivejsarray(__signup.responseText);
      var box = getDivFromName('msg_last_name');
      msg = _data[1];
      writeDivHTML(box,true,true,msg);
      document.getElementById('last_name').value=_data[2];
      if(_data[1] != '') {
         document.getElementById('last_name').focus();
         document.getElementById('last_name').select();
         document.getElementById('fld_last_name').className='Fields-err';
      } else {
         document.getElementById('fld_last_name').className='Fields';
      }
      document.getElementById('errorvalue').value = _data[0][0];

    var box = getDivFromName('msg_ready');
    writeDivHTML(box,true,true,'');
    if (_data[0].length > 1) {
       document.getElementById('pform_url').action = _data[0][1];
       document.getElementById('pform_sitecode').value = _data[0][2];
       document.getElementById('pform_page').value = _data[0][3];
       document.getElementById('pform_email').value = _data[0][4];
       document.getElementById('pform_user').value = _data[0][5];
       document.getElementById('pform_password1').value = _data[0][6];
       document.getElementById('pform_password2').value = _data[0][7];
       document.getElementById('pform_country').value = _data[0][8];
       document.getElementById('pform_name').value = _data[0][9];
       document.getElementById('jump_btn').disabled = false;

    } else {
       document.getElementById('jump_btn').disabled = true;
    }

    }

__signup_onreadystatechange = function()
                                {
                                    if (__signup.readyState == 4) {
                                        switch (__signup.status) {
                                            case 200: if (__signup_xmlhttpsuccess) __signup_xmlhttpsuccess(); break;
                                        }
                                    }
                                }

__signup.onreadystatechange = __signup_onreadystatechange;

__signup.send(null);
      } catch(e) {
        alert(e.message);
      }
      return true;
    }
__first_name.onchange = function() {
      try {
        __signup = ajaxac_createXMLHttp();

__signup.open('get', '/signup.php/check_first_name' + '?' + 'username=' + encodeURIComponent(__username.value) + '&' + 'password=' + encodeURIComponent(__password.value) + '&' + 'password2=' + encodeURIComponent(__password2.value) + '&' + 'email=' + encodeURIComponent(__email.value) + '&' + 'acceptmail=' + encodeURIComponent(__acceptmail.checked) + '&' + 'sub_cd=' + encodeURIComponent(__sub_cd.value) + '&' + 'last_name=' + encodeURIComponent(__last_name.value) + '&' + 'first_name=' + encodeURIComponent(__first_name.value) + '&' + 'agree=' + encodeURIComponent(__agree.checked) + '&' + 'lang=' + encodeURIComponent(__lang.value) + '&' + 'prd_cd=' + encodeURIComponent(__prd_cd.value) + '&' + 'frontend_cd=' + encodeURIComponent(__frontend_cd.value) + '&' + 'dispatcher_cd=' + encodeURIComponent(__dispatcher_cd.value) + '&' + 'prg_user_cd=' + encodeURIComponent(__prg_user_cd.value) + '&' + 'sitecode=' + encodeURIComponent(__sitecode.value) + '&' + 'errorvalue=' + encodeURIComponent(__errorvalue.value));

__signup_xmlhttpsuccess = function() {
      _data = ajaxac_receivejsarray(__signup.responseText);
      var box = getDivFromName('msg_first_name');
      writeDivHTML(box,true,true,_data[1]);
      document.getElementById('first_name').value=_data[2];
      if(_data[1] != '') {
         document.getElementById('first_name').focus();
         document.getElementById('first_name').select();
         document.getElementById('fld_first_name').className='Fields-err';
      } else {
         document.getElementById('fld_first_name').className='Fields';
      }
      document.getElementById('errorvalue').value = _data[0][0];

    var box = getDivFromName('msg_ready');
    writeDivHTML(box,true,true,'');
    if (_data[0].length > 1) {
       document.getElementById('pform_url').action = _data[0][1];
       document.getElementById('pform_sitecode').value = _data[0][2];
       document.getElementById('pform_page').value = _data[0][3];
       document.getElementById('pform_email').value = _data[0][4];
       document.getElementById('pform_user').value = _data[0][5];
       document.getElementById('pform_password1').value = _data[0][6];
       document.getElementById('pform_password2').value = _data[0][7];
       document.getElementById('pform_country').value = _data[0][8];
       document.getElementById('pform_name').value = _data[0][9];
       document.getElementById('jump_btn').disabled = false;

    } else {
       document.getElementById('jump_btn').disabled = true;
    }

    }

__signup_onreadystatechange = function()
                                {
                                    if (__signup.readyState == 4) {
                                        switch (__signup.status) {
                                            case 200: if (__signup_xmlhttpsuccess) __signup_xmlhttpsuccess(); break;
                                        }
                                    }
                                }

__signup.onreadystatechange = __signup_onreadystatechange;

__signup.send(null);
      } catch(e) {
        alert(e.message);
      }
      return true;
    }
__agree.onclick = function() {
      try {
        __signup = ajaxac_createXMLHttp();

__signup.open('get', '/signup.php/check_agree' + '?' + 'username=' + encodeURIComponent(__username.value) + '&' + 'password=' + encodeURIComponent(__password.value) + '&' + 'password2=' + encodeURIComponent(__password2.value) + '&' + 'email=' + encodeURIComponent(__email.value) + '&' + 'acceptmail=' + encodeURIComponent(__acceptmail.checked) + '&' + 'sub_cd=' + encodeURIComponent(__sub_cd.value) + '&' + 'last_name=' + encodeURIComponent(__last_name.value) + '&' + 'first_name=' + encodeURIComponent(__first_name.value) + '&' + 'agree=' + encodeURIComponent(__agree.checked) + '&' + 'lang=' + encodeURIComponent(__lang.value) + '&' + 'prd_cd=' + encodeURIComponent(__prd_cd.value) + '&' + 'frontend_cd=' + encodeURIComponent(__frontend_cd.value) + '&' + 'dispatcher_cd=' + encodeURIComponent(__dispatcher_cd.value) + '&' + 'prg_user_cd=' + encodeURIComponent(__prg_user_cd.value) + '&' + 'sitecode=' + encodeURIComponent(__sitecode.value) + '&' + 'errorvalue=' + encodeURIComponent(__errorvalue.value));

__signup_xmlhttpsuccess = function() {
      _data = ajaxac_receivejsarray(__signup.responseText);

    var box = getDivFromName('msg_ready');
    writeDivHTML(box,true,true,'');
    if (_data[0].length > 1) {
       document.getElementById('pform_url').action = _data[0][1];
       document.getElementById('pform_sitecode').value = _data[0][2];
       document.getElementById('pform_page').value = _data[0][3];
       document.getElementById('pform_email').value = _data[0][4];
       document.getElementById('pform_user').value = _data[0][5];
       document.getElementById('pform_password1').value = _data[0][6];
       document.getElementById('pform_password2').value = _data[0][7];
       document.getElementById('pform_country').value = _data[0][8];
       document.getElementById('pform_name').value = _data[0][9];
       document.getElementById('jump_btn').disabled = false;

    } else {
       document.getElementById('jump_btn').disabled = true;
    }


       if (document.getElementById('errorvalue').value != 0) {
         var box = getDivFromName('msg_ready');
         writeDivHTML(box,true,true,'フォームにエラーがあります 記入内容をご確認ください');
       }
    }

__signup_onreadystatechange = function()
                                {
                                    if (__signup.readyState == 4) {
                                        switch (__signup.status) {
                                            case 200: if (__signup_xmlhttpsuccess) __signup_xmlhttpsuccess(); break;
                                        }
                                    }
                                }

__signup.onreadystatechange = __signup_onreadystatechange;

__signup.send(null);
      } catch(e) {
        alert(e.message);
      }
      return true;
    }






