var n_clone_experiencia_laboral=1; function agregar_postulacion(id) { if (window.confirm("¿ Agregar tu postulación a este aviso ?")) { var url="/postulantes/scripts/agregar_postulacion.php?id="+id; sp_postulantes_script_tag(url,"postulantes") } } function remover_postulacion(id) { if (window.confirm("¿ Remover tu postulación a este aviso ?")) { var url="/postulantes/scripts/remover_postulacion.php?id="+id; sp_postulantes_script_tag(url,"postulantes") } } function sp_postulantes_script_tag(file,tagname) { var head_html = document.getElementsByTagName('head'); if (head_html==null) head_html=document; else head_html=head_html[0]; scriptTag = getObj(tagname); if(scriptTag!=null) { head_html.removeChild(scriptTag); delete(scriptTag); scriptTag=null; } var script = document.createElement('script'); var vch="?"; if (file.indexOf("?")!=-1) vch="&"; script.src = file+vch+Math.random()*1000000; script.type = "text/javascript"; script.id = tagname; head_html.appendChild(script); } function str2object(str,HTMLTAG) { switch (HTMLTAG) { case "TR": var d = document.createElement("div"); d.innerHTML = "" + str + "
"; var ret = d.getElementsByTagName(HTMLTAG); retobj=ret[0]; break; case "TD": var d = document.createElement("div"); d.innerHTML = "
" + str + "
"; var ret = d.getElementsByTagName(HTMLTAG); retobj=ret[0]; break; case "LI": var d = document.createElement("div"); d.innerHTML = "