/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

var strCargando='<div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="25" height="25">  <param name="movie" value="imgs/load.star.swf" />  <param name="quality" value="high" /><param name="wmode" value="transparent" />  <embed src="imgs/load.star.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="25" height="25"></embed></object>   </div>';
var navegador=navigator.appName;
var ie=document.all;
var dom=GetId;
var ns4=document.layers;
function GetId(Id){
	return document.getElementById(Id);
	}
	
	
function isDefined(variable)
{
	return (!(!( variable||false )))
}	
	
function CrearObjetoAjax(){
		var objeto;
		if (navegador=="Microsoft Internet Explorer"){
				objeto = new ActiveXObject("Microsoft.XMLHTTP");
		}else{
				objeto = new XMLHttpRequest();
		}
		return objeto;
	}





var ogoAJAX = new Array();
ogoAJAX[0]=CrearObjetoAjax();
ogoAJAX[1]=CrearObjetoAjax();
ogoAJAX[2]=CrearObjetoAjax();
ogoAJAX[3]=CrearObjetoAjax();
ogoAJAX[4]=CrearObjetoAjax();

ogoAJAX[5]=CrearObjetoAjax();
ogoAJAX[6]=CrearObjetoAjax();
ogoAJAX[7]=CrearObjetoAjax();
ogoAJAX[8]=CrearObjetoAjax();
ogoAJAX[9]=CrearObjetoAjax();


function goAJAX(xW,xF, xP,Exec,Load,replOnStart,replOnEnd){
                if ((ogoAJAX[0].readyState==4)||(ogoAJAX[0].readyState==0)){
                               goAJAXx(ogoAJAX[0],xW,xF, xP,Exec,Load,replOnStart,replOnEnd);
                }else{
                               if ((ogoAJAX[2].readyState==4)||(ogoAJAX[2].readyState==0)){
                                               goAJAXx(ogoAJAX[2],xW,xF, xP,Exec,Load,replOnStart,replOnEnd);
                               }else{
                                               if ((ogoAJAX[3].readyState==4)||(ogoAJAX[3].readyState==0)){
                                                               goAJAXx(ogoAJAX[3],xW,xF, xP,Exec,Load,replOnStart,replOnEnd);
                                               }else{
                                                               if ((ogoAJAX[4].readyState==4)||(ogoAJAX[4].readyState==0)){
                                                                              goAJAXx(ogoAJAX[4],xW,xF, xP,Exec,Load,replOnStart,replOnEnd);
                                                               }else{
                                                                              if ((ogoAJAX[5].readyState==4)||(ogoAJAX[5].readyState==0)){
                                                                                              goAJAXx(ogoAJAX[5],xW,xF, xP,Exec,Load,replOnStart,replOnEnd);
                                                                              }else{
                                                                                              if ((ogoAJAX[6].readyState==4)||(ogoAJAX[6].readyState==0)){
                                                                                                              goAJAXx(ogoAJAX[6],xW,xF, xP,Exec,Load,replOnStart,replOnEnd);
                                                                                              }else{
                                                                                                              if ((ogoAJAX[7].readyState==4)||(ogoAJAX[7].readyState==0)){
                                                                                                                             goAJAXx(ogoAJAX[7],xW,xF, xP,Exec,Load,replOnStart,replOnEnd);
                                                                                                              }else{
                                                                                                                             if ((ogoAJAX[8].readyState==4)||(ogoAJAX[8].readyState==0)){
                                                                                                                                             goAJAXx(ogoAJAX[8],xW,xF, xP,Exec,Load,replOnStart,replOnEnd);
                                                                                                                             }else{
                                                                                                                                             goAJAXx(ogoAJAX[9],xW,xF, xP,Exec,Load,replOnStart,replOnEnd);
                                                                                                                             }
                                                                                                              }
                                                                                              }
                                                                              }
                                                               }
                                               }
                               }
                }
}

function goAJAXx(ogoAJAXx,xW2,xF2, xP2,Exec,Load,replOnStart,replOnEnd){
                var L=Load;
                if ((L=='')||(!isDefined(L))){                       
                               L=strCargando;
                } else {
                               L='Loading...';
                }
                if(navegador!='Netscape'){
                               ogoAJAXx.open('post',xF2,true);
                               }
                ogoAJAXx.onreadystatechange =           function (){
                                               //alert(xW2);
//                                           alert(navegador);
                                               if (ogoAJAXx.readyState == '1'){
                                                               if(((!isDefined(replOnStart))||(replOnStart==''))&& xW2!='' && xW2!=null){
                                                                              GetId(xW2).innerHTML=L;
                                                               }
                                               }else if (ogoAJAXx.readyState == '4'){
                                                               var respuesta=ogoAJAXx.responseText;
                                                               if(((replOnEnd=='')||(!isDefined(replOnEnd)))&& xW2!=''&& xW2!=null && isDefined(xW2)){
                                                                              try{GetId(xW2).innerHTML=(respuesta);}catch(e){alert(e+navegador);}
                                                               }
                
                                                               eval(Exec);
                
                                               }
                               }
                if(navegador=='Netscape'){
                               ogoAJAXx.open('post',xF2,true);
                               }
                //ogoAJAXx.open('post',xF2,true);
                ogoAJAXx.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
                var http = xP2;
                ogoAJAXx.send(http);

}







function diplayOverlay(){
	var objDiv = GetId("sOverlay")
	objDiv.style.display = "";
	if (navegador=="Microsoft Internet Explorer"){
		objDiv.style.height=document.documentElement.clientHeight*6;
		}else{
			objDiv.style.height=3* window.innerHeight+'px';
			}
	}
function winajax(tit,w,h,f,p){/*Function winajax and goAJAX under LGPL Licence*/
	document.getElementById('sMainBody').style.display = 'none';
	GetId('btnCerrarVtna').style.display='';
	var oVtna = GetId("sVentana");	
	GetId("TitVna").innerHTML=tit;
	oVtna.style.width=w+'px';
	oVtna.style.height=h+'px';
	//centet top window
	scroll_top=((ie)? truebody().scrollTop : window.pageYOffset)+100;
	if (navegador=="Microsoft Internet Explorer"){
			oVtna.style.top=scroll_top;
			oVtna.style.left=(document.body.offsetWidth/2)-(w/2);
	}else{
		
		oVtna.style.top=scroll_top+'px';
		oVtna.style.left='30%';
		}
	diplayOverlay();
	oVtna.style.display = "";
	goAJAX('ContentVentana',f,p);
}
function truebody(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}
function OcultarVtna(){
	var objDiv = GetId("sOverlay");
	objDiv.style.display = "none";
	var objDiv = GetId("sVentana");
	objDiv.style.display = "none";
	document.getElementById('sMainBody').style.display = '';
//if (document
}
//fin goajax

function LoginBox(){
	winajax('Sign-In','300','150','./ajax/loginbox.php','');
	}
function Login(){
	GetId('btnCerrarVtna').style.display='none';
	var http='username='+GetId("frmLogin").username.value;
	http = http + '&password='+GetId("frmLogin").password.value;
	goAJAX("frmLogin",'./ajax/login.php', http);
	}
function Logged(){
	OcultarVtna();
	goAJAX('menu_sup','./ajax/private.menu.php', '');
	}
function sRegistro(){
	winajax('Create an account','400','500','./ajax/registro.pre.php','');
	}
function RegSend(){
	if ((GetId("frmReg").username.value=='')||(GetId("frmReg").password.value=='')||(GetId("frmReg").Nombre.value=='')||(GetId("frmReg").Apellido.value=='')||(GetId("frmReg").email.value=='')||(GetId("frmReg").Sexo.value=='')||(GetId("frmReg").Edad.value=='')||(GetId("frmReg").Nacionalidad.value=='')||(GetId("frmReg").CodigoPostal.value=='')){
			alert('Please fill out all fields.');
			}else{
			var http = 'username=' + GetId("frmReg").username.value;
			http = http + '&password=' + GetId("frmReg").password.value;
			http = http + '&Nombre=' + GetId("frmReg").Nombre.value;
			http = http + '&Apellido=' + GetId("frmReg").Apellido.value;
			http = http + '&email=' + GetId("frmReg").email.value;
			http = http + '&Sexo=' + GetId("frmReg").Sexo.value;
			http = http + '&Edad=' + GetId("frmReg").Edad.value;
			http = http + '&Nacionalidad=' + GetId("frmReg").Nacionalidad.value;
			http = http + '&CodigoPostal=' + GetId("frmReg").CodigoPostal.value;
			goAJAX("frmReg",'./ajax/registro.php', http);
			}
	}
function verRecuperarP(){
	winajax('I forgot my password','430','160','./ajax/recuperar.pre.php','');
	}
function PassSend(){
	var http = 'email=' + GetId("frmRecP").email.value;
	goAJAX("frmRecP",'./ajax/recuperar.php', http);
	}
function showPass(){
	winajax('Change Password','300','150','/ajax/pass.cambiar.pre.php','');
	}
function cPassWord(){
	var http = 'pn0=' + GetId("frmCP").pn0.value;
	http = http + '&pn1=' + GetId("frmCP").pn1.value;
	http = http + '&pn2=' + GetId("frmCP").pn2.value;
	goAJAX("frmCP",'/ajax/pass.cambiar.php', http);
	}
function ShowMy(){
	goAJAX("sMain",'/ajax/pst7.php', '');
	}
function VerSINO2(oItems)
{
	var objDiv = document.getElementById(oItems);
    if (objDiv.style.display == "") {
		objDiv.style.display = "none";
	} else {

		objDiv.style.display = "";
	}
}
function chchassl(id){
	GetId(id).className='L01';
	GetId('IndText'+id).innerHTML='Left';
	goAJAX('sInteractLR','/ajax/art.edit.align.php', 'i='+id+'&c=1');
	}
function chchassr(id){
	GetId(id).className='R01';
	GetId('IndText'+id).innerHTML='Right';
	goAJAX('sInteractLR','/ajax/art.edit.align.php', 'i='+id+'&c=2');
	}
function chchasslr(id){
	GetId(id).className='LR01';
	GetId('IndText'+id).innerHTML='Block';
	goAJAX('sInteractLR','/ajax/art.edit.align.php', 'i='+id+'&c=0');
	}
function chordd(i){
	var k=Math.abs(i)+1;
	alert(k+' - '+i);
	var temp = GetId('ord'+k).innerHTML;
	var o1 = GetId('ord'+k);
	var o2 = GetId('ord'+i);
	o1.innerHTML=o2.innerHTML;
	o2.innerHTML=temp;
	}
function GoIn(i){
		goAJAX('sMain','/ajax/texts.php', 'i='+i);
}
function ShowArt(i){
		goAJAX('sMain','/ajax/art.display.free.php', 'i='+i);
	}
function SendContact(){
	var http = 'Name=' + GetId('frmContact').Name.value;
	http = http + '&LName=' + GetId('frmContact').LName.value;
	http = http + '&Phone=' + GetId('frmContact').Phone.value;
	http = http + '&Email=' + GetId('frmContact').Email.value;
	http = http + '&Subject=' + GetId('frmContact').Subject.value;
	http = http + '&Message=' + GetId('frmContact').Message.value;
	goAJAX('frmContact','/ajax/contact.form.php', http);
	}
function fullScreen(theURL) {
//window.open(theURL, '', 'fullscreen=yes, scrollbars=yes,width=1010,height=760,resizable=yes');
location.href=theURL;
}
function ShowSubmitEvent(){
	winajax('Submit an Event','400','330','ajax/submit.event.php','');
	}
function SubmitEvent(){
	if ((GetId('frmSubmitEvent').Event_Name.value=='')||(GetId('frmSubmitEvent').Event_Location.value=='')||(GetId('frmSubmitEvent').EShortDesc.value=='')){
		alert('Please complete all fields');
	}else{
		var xP='a=b';
		xP = xP + '&Event_Name='+GetId('frmSubmitEvent').Event_Name.value;
		xP = xP + '&Event_Location='+GetId('frmSubmitEvent').Event_Location.value;
		xP = xP + '&sMonth='+GetId('frmSubmitEvent').sMonth.value;
		xP = xP + '&sDay='+GetId('frmSubmitEvent').sDay.value;
		xP = xP + '&sYear='+GetId('frmSubmitEvent').sYear.value;
		xP = xP + '&eMonth='+GetId('frmSubmitEvent').eMonth.value;
		xP = xP + '&eDay='+GetId('frmSubmitEvent').eDay.value;
		xP = xP + '&eYear='+GetId('frmSubmitEvent').eYear.value;
		xP = xP + '&EShortDesc='+GetId('frmSubmitEvent').EShortDesc.value;
		xP = xP + '&Event_Type='+GetId('frmSubmitEvent').Event_Type.value;
		goAJAX('frmSubmitEvent','/ajax/submit.event.php', xP);
		}
	}
function LoadResources(i){
	goAJAX('sResourcesItems','ajax/LoadRes.php', 'i='+i);
	}
function LoadResourcesCats(){
	goAJAX('sResourcesItems','ajax/LoadResCats.php', '');
	}
function ShowSubmitResource(){
	winajax('Submit a Resource','430','330','ajax/submit.resource.php','')
	}
function SubmitResource(){
	if ((GetId('frmSubmitRes').NRes.value=='')||(GetId('frmSubmitRes').Id_ResCat.value=='')||(GetId('frmSubmitRes').Address.value=='')||(GetId('frmSubmitRes').ShortDesc.value=='')){
		alert('Please complete all fields');
	}else{
		var xP='a=b';
		xP = xP + '&NRes='+GetId('frmSubmitRes').NRes.value;
		xP = xP + '&Web='+GetId('frmSubmitRes').Web.value;
		xP = xP + '&Id_ResCat='+GetId('frmSubmitRes').Id_ResCat.value;
		xP = xP + '&Email='+GetId('frmSubmitRes').Email.value;
		xP = xP + '&Address='+GetId('frmSubmitRes').Address.value;
		xP = xP + '&Phones='+GetId('frmSubmitRes').Phones.value;
		xP = xP + '&ShortDesc='+GetId('frmSubmitRes').ShortDesc.value;
		goAJAX('frmSubmitRes','/ajax/submit.resource.php', xP);
		}
	}
function ShowContactForm(){
	winajax('Contact Us','403','375','ajax/contacts.pre.php','')
	}
function SendContactForm(){
		if ((GetId('frmContact').Name.value=='')||(GetId('frmContact').LName.value=='')||(GetId('frmContact').Phone.value=='')||(GetId('frmContact').Email.value=='')||(GetId('frmContact').Message.value=='')||(GetId('frmContact').Id_Contact.value=='-1')){
			alert('Please complete all fields.');
	}else{
		var xP='a=b';
		xP = xP + '&Name='+GetId('frmContact').Name.value;
		xP = xP + '&LName='+GetId('frmContact').LName.value;
		xP = xP + '&Phone='+GetId('frmContact').Phone.value;
		xP = xP + '&Email='+GetId('frmContact').Email.value;
		xP = xP + '&Id_Contact='+GetId('frmContact').Id_Contact.value;
		xP = xP + '&Message='+GetId('frmContact').Message.value;
		goAJAX('frmContact','/ajax/contacts.pre.php', xP);
		}
	}



function vMenu(oItems,imagen)
{
	var objDiv = document.getElementById(oItems);
	var objImg = document.getElementById(imagen);
    if (objDiv.style.display == "none") {	
		objDiv.style.display = "";
		objImg.src = "imgs/menu.icon01.jpg";
	
	} else {
		
		objDiv.style.display = "none";
		objImg.src = "imgs/menu.icon02.gif";
	}
}
function vMenu2(oItems)
{
	var objDiv = document.getElementById(oItems);
    if (objDiv.style.display == "none") {	
		objDiv.style.display = "";	
	} else {
		objDiv.style.display = "none";
	}
}
function vMenu3(oItems,imagen)
{
	var objDiv = document.getElementById(oItems);
	var objImg = document.getElementById(imagen);
    if (objDiv.style.display == "none") {	
		objDiv.style.display = "";
		objImg.src = "imgs/box.close.gif";
	
	} else {
		
		objDiv.style.display = "none";
		objImg.src = "imgs/box.open.gif";
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function ShowMyServices(){
		winajax('My services','300','400','ajax/my.services.php','');
		}
//past issues

function ShowSearch(donde){
	goAJAX(donde,'ajax/search.box.php');
	}
function Buscar(){
	var p='str='+GetId('frmSearch').str.value;
	p = p + '&sMd='+GetId('frmSearch').sMd.value;
	p = p + '&sYd='+GetId('frmSearch').sYd.value;
	p = p + '&sMt='+GetId('frmSearch').sMt.value;
	p = p + '&sYt='+GetId('frmSearch').sYt.value;
	goAJAX('searchResults','ajax/search.public.php', p);
	}
function Buscar2(pagina){
	var p='str='+GetId('frmSearch').str.value;
	p = p + '&sMd='+GetId('frmSearch').sMd.value;
	p = p + '&sYd='+GetId('frmSearch').sYd.value;
	p = p + '&sMt='+GetId('frmSearch').sMt.value;
	p = p + '&sYt='+GetId('frmSearch').sYt.value;
	p = p + '&pagina='+pagina;
	goAJAX('searchResults','ajax/search.public.php', p);
	}
function Buy(i){
	var p='i='+i;
	winajax('Download PDF','350','200','ajax/buy.php',p);
	}
//edit profile
function ShowMyprofile(){
	winajax('My profile','505','600','ajax/user.myprofile.php','');
	}
function UpdateProfile(){
	var xP = 'a=b';
	xP = xP + '&Name=' + GetId('frmUProf').Name.value;
	xP = xP + '&LName=' + GetId('frmUProf').LName.value;
	xP = xP + '&Edad=' + GetId('frmUProf').Edad.value;
	xP = xP + '&Nacionalidad=' + GetId('frmUProf').Nacionalidad.value;
	xP = xP + '&CodigoPostal=' + GetId('frmUProf').CodigoPostal.value;
	xP = xP + '&Profile=' + GetId('frmUProf').Profile.value;	
	goAJAX('frmUProf','ajax/user.myprofile.php', xP);
	}
