function dop(dop_what,what)
{
 if(what.length > 0)
 {
  send1Request(dop_what+"/"+what+".php", "div_"+dop_what+"_content", get1Request);
 }
 else
 {
  send1Request(dop_what+"/index.php", "div_"+dop_what+"_content", get1Request);
 }
}

function dop_view_content(dop_what,group_number)
{
 send1Request(dop_what+"/view.php?group_number="+group_number, "div_"+dop_what+"_content", get1Request);
}

function miss_add()
{
 var miss_add_form = document.getElementById('miss_add_form');
 sendPost1Data(miss_add_form.action, 'div_miss_content', miss_add_form);
}
function miss_foto_save()
{
 JsHttpRequest.query('scripts/ajax/dop/miss_foto_save.php',{'miss_foto': document.getElementById("miss_foto")},function(result,errors){document.getElementById("div_miss_foto_add").innerHTML = errors;});
}

function golos(dop_what,wrk_id)
{
 send1Request(dop_what+"/golos.php?wrk_id="+wrk_id, "div_golos", get1Request);
}



function miss_sms_ok()
{
 var form_sms_ok = document.getElementById('form_sms_ok');
 sendPost1Data(form_sms_ok.action, 'div_sms_ok', form_sms_ok);
}



//write
function dop_comments_post_write()
{
 var comments_post_write_form = document.getElementById('comments_post_write_form');
 sendPost1Data(comments_post_write_form.action, 'div_comments', comments_post_write_form);

 showHide('comments_post_write');
 document.getElementById('comments_post_write_form_textarea').value = "";
}
function dop_comments_post_delete(dop_what,comments_post_id)
{
 send1Request("scripts/ajax/dop/dop_comments_post_delete.php?dop_what="+dop_what+"&comments_post_id="+comments_post_id, "div_comments_post_id["+comments_post_id+"]", get1Request);
}
function dop_comments_post_restore(dop_what,comments_post_id)
{
 send1Request("scripts/ajax/dop/dop_comments_post_restore.php?dop_what="+dop_what+"&comments_post_id="+comments_post_id, "div_comments_post_id["+comments_post_id+"]", get1Request);
}
//write\



function dop_view()
{
 var dop_text = document.getElementById('dop_text').value;
 if(dop_text > 0)
 {  window.location.href = "http://veseliska.ru/miss/"+dop_text+"/";
 }
}