<!--

// Code property of Merit Designs
// Copyright 2006

function openWin(theURL,winName,features) {
	window.open(theURL,winName,features);
}

function getRandomNum(Min, Max) {
	var r;
	r = (Math.floor(Math.random() * ((Max+1) - Min)) + Min);
	return r;
}

function writeFlash(filePath, sizeX, sizeY, doWmode, flashName) {

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + sizeX + '" height="' + sizeY + '" id="' + flashName + '" name="' + flashName + '">');
	document.write('<param name="movie" value="' + filePath + '">');
	document.write('<param name="quality" value="high">');
	if(doWmode) { document.write('<param name="wmode" value="transparent">'); }
	document.write('<embed src="' + filePath + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" swliveconnect="true" type="application/x-shockwave-flash" width="' + sizeX + '" height="' + sizeY + '" id="' + flashName + '_emb" name="' + flashName + '_emb"');
	if(doWmode) { document.write(' wmode="transparent"'); }
	document.write('></embed>');
	document.write('</object>');

}

function topSearch() {

	var surl;
	surl = 'busqueda_resultados.aspx?source=top_search';
	surl += '&text=' + (document.getElementById('topsrch_text').value).replace(/\?/ig, '_').replace(/\&/ig, '_');
	surl += document.getElementById('topsrch_category').value;
	location.href = surl;
	return false;

}

function selectClear(whatselect) {

	var i = 0;
	var select_url = document.getElementById(whatselect).options;

	for (i = select_url.length; i >= 0; --i) {
		select_url[i] = null;
	}
}

function selectAddOption(whatselect, txt, val) {
	var select_url = document.getElementById(whatselect).options;
	var mLen;

	if (select_url.length < 0) {
        	mLen = 0;
	} else {
        	mLen = select_url.length;
	}

	select_url[mLen] = new Option(txt, val);
	
}


-->