function getState(countrySymbol)
{$.ajax({type:'POST',dataType:'json',url:base_url+'getstate/index/'+Math.random(),data:'countrysymbol='+countrySymbol,success:function(response){var stateVar=response.states;$("#state")[0].options.length=0;if(stateVar.length>0)
{for(var i=1;i<stateVar.length;i++)
{$("#state")[0].options[i]=new Option(stateVar[i].state_name,stateVar[i].state_symbol);}
$("#showState").show("slow");}
else
$("#showState").hide("slow");},error:function(XMLHttpRequest,textStatus,errorThrown){alert(XMLHttpRequest.responseText);}});}
function showHideOnIam(sel)
{$('#college_status_row').hide();$('#college_year_row').hide();$('#high_school_row').hide();$('#high_school_year_row').hide();if(sel==0)
{$('#college_status_row').show();$('#college_year_row').show();}
else if(sel==2)
{$('#high_school_row').show();$('#high_school_year_row').show();}}
function newCaptchaImage()
{$.ajax({type:'GET',url:base_url+'captcha/index/'+Math.random(),data:'',success:function(responseText){var imgArray=responseText.split('|');$('#randWord').val(imgArray[0]);$('#time').val(imgArray[1]);$('#captch_image').html('<img src="'+base_url+'application/images/captcha/'+imgArray[1]+'.jpg?'+Math.random()+'" height="30" width="150">');$('#randKey').val(imgArray[2]);}});}
function qs_validate()
{$.ajax({type:'POST',url:base_url+'register/qs_validate/'+Math.random(),dataType:'json',data:'register_name='+$('#register_name').val()+'&register_email='+$('#register_email').val()+'&register_password='+$('#register_password').val()+'&birthday_Month='+$('#birthtd > select')[0].value+'&birthday_Day='+$('#birthtd > select')[1].value+'&birthday_Year='+$('#birthtd > select')[2].value,success:function(responseText){if(responseText.msg=='error')
{$('#errorDiv').html(responseText.content);$('#errorDiv').show();$('#quick1').show();$('#quick2').hide();}
else
{$('#errorDiv').html('');$('#errorDiv').hide();$('#quick1').hide();$('#quick2').show();}}});}