function modifyLinks(PHP_Cokillo,SELF) {
	/*
	Esta rutina modifica todos los enlaces y acciones de formas de una página con el objetivo de pasar información de una página a la otra. 
	Normalmente es el COKO y para las páginas externas o enlaces especiales no se hace modificación alguna
	*/
	/* Modif AG 2007-10-12 Ref. 2045 - Modificar los actions de las formas aparte de los enlaces normales */
	var links=document.getElementsByTagName("a");
	for (var i = 0; i < links.length; i ++) {
		var a = links[i];
		var href = a.getAttribute("href")+"";
		if (true == modifiable(href,SELF)){
			a.setAttribute("href",href+"?"+PHP_Cokillo);
		};
	};
	forms = document.forms;
	for (var i = 0; i < forms.length; i ++){
		var action = forms[i].getAttribute("action")+"";
		if (true == modifiable(action,SELF)&&action.indexOf('entramult.php')==-1&&action.indexOf('entraint.php')==-1&&action.indexOf('listarsup.php')==-1){
			forms[i].setAttribute("action",action+"?"+PHP_Cokillo);
		};
	};
};
function modifiable(href,SELF){if ((href!="")&&(href!="null")&&(href!=SELF)&&((href.indexOf('http://')==-1)||(href.indexOf(SELF)!=-1))&&(href.indexOf('#')==-1)&&(href.indexOf('?')==-1)&&(href.indexOf('mailto:')!=0)&&(href.indexOf('javascript:')!=0)){return true;}else{return false;};};
