
function chkVer(imagename,objectsrc){
	var n=navigator.appName
	var v=parseInt(navigator.appVersion)
	var browsok=((n=="Netscape")&&(v>=3))
	var browsok2=((n=="Microsoft Internet Explorer")&&(v>=4))
	if((browsok)||(browsok2))
	document.images[imagename].src=eval(objectsrc+".src")
	}

function Starthw(page,height,width){
	Openwin = this.open(page, "NewWin", "width="+width+",height="+height+",scrollbars=no,resizable=no,status=no");
}

function Start(page){
	Openwin = this.open(page, "NewWin", "width=670,height=550,scrollbars=yes,resizable=yes,menubar,toolbar,status=yes");
}

function Startb(page){
        Openwin = this.open(page, "NewWin800", "width=725,scrollbars=yes,resizable=yes,menubar,status=yes");
}
function Startc(page){
        Openwin = this.open(page, "NewWin800", "width=725,scrollbars=yes,resizable=yes,menubar,toolbar,status=yes");
}

function Startd(page){
	Openwin = this.open(page, "NewWin", "width=725,height=550,scrollbars=yes,resizable=yes,statusbar");
}
function Starthws(page,height,width){
	Openwin = this.open(page, "NewWin", "width="+width+",height="+height+",scrollbars=yes,resizable=yes,status=no");
}
function checkInput(f){
	if (f.SearchString.value==""){
		alert("Por favor escriba el texto que desea buscar.");
		f.SearchString.focus();
		return false;
	}
	else
		f.submit();
		return true;
}

function textcolor(obj,color) {
		obj.style.color=color;
	}


function doNothing(){

}

function defaultImage(id){
	elem = document.getElementById(id);
	var img_name = elem.getAttribute("onbut");
	//	elem.removeAttribute('href')
// for IE
	elem.onmouseout="change_image('"+id+"','"+img_name+"')";
// for FireFox
	elem.setAttribute("onMouseOut", function() {change_image(id,img_name);});
//change default image to on.  DW 4/26/06
	change_image(id,img_name);
}

function change_image(img_name,img_src){
	
	document[img_name].src=img_src;
}
