//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += '> </embed>';
  }

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}




function chequear()
{
var error = false;
var mensaje="";

if (document.buscador.maximo.value=='')
{
mensaje=mensaje + "» No ha ingresado el precio máximo...\n";
error=true;
}

if (document.buscador.propiedad.options[document.buscador.propiedad.selectedIndex].value=='')
{
mensaje=mensaje + "» No ha seleccionado la propiedad...\n";
error=true;
}

if (document.buscador.localidad.options[document.buscador.localidad.selectedIndex].value=='')
{
mensaje=mensaje + "» No ha seleccionado la localidad...\n";
error=true;
}

if (error)
{
mensaje=mensaje+"\n Ingrese los datos requeridos...";
alert(mensaje);
return false;
}
}


function propiedades(propiedad,maximo){
var direccion="index.php?propiedad="+propiedad+"&band=2&maximo="+maximo+"&define=1";
if (document.getElementById("provincia")!=null) direccion=direccion + "&provincia=" + document.getElementById("provincia").value
if (document.getElementById("localiad")!=null) direccion=direccion + "&localidad=" + document.getElementById("localidad").value 


if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true)  direccion=direccion +"&opcion=1";
}



window.location=direccion;
}

function localidades(provincia,maximo,propiedad){
var direccion="index.php?provincia="+provincia+"&band=1&maximo="+maximo+"&propiedad="+propiedad+"&define=0&define2=1";
window.location=direccion;
}

function localidades2(){
var direccion="index.php?band=3";
if (document.getElementById("provincia")!=null) direccion=direccion +"&provincia=" +document.getElementById("provincia").value;
if (document.getElementById("maximo")!=null) direccion=direccion +"&maximo=" +document.getElementById("maximo").value;
if (document.getElementById("propiedad")!=null) direccion=direccion +"&propiedad=" +document.getElementById("propiedad").value;
direccion =direccion +"&define=1";
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true)  direccion=direccion +"&opcion=1";
}

window.location=direccion;
}

function zonas(localidad,maximo,provincia,propiedad){
var direccion="index.php?localidad="+localidad+"&band=1&maximo="+maximo+"&provincia="+provincia+"&propiedad="+propiedad+"&define=0&define2=1";
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true)  direccion=direccion +"&opcion=1";
}

window.location=direccion;
}

function zonas2(localidad,maximo,provincia,propiedad){
var direccion="index.php?localidad="+localidad+"&band=3&maximo="+maximo+"&provincia="+provincia+"&propiedad="+propiedad+"&define=1";
window.location=direccion;
}


function vernoticia(idnoticia){
alert (idnoticia);
window.open('vernoticia.php?idnoticia=' +idnoticia ,'NOTICIA','width=450, height=600, scrollbars=no, menubar=no, location=no, resizable=no, top=0, left=0');
}

function amplia_oficina(idoficina){
window.open('veroficina.php?idoficina=' +idoficina,'OFICINA','width=450, height=600, scrollbars=no, menubar=no, location=no, resizable=no, top=0, left=0');
}


function buspropiedades(propiedad,maximo){


var direccion="busquedas.php?propiedad="+propiedad+"&band=2&maximo="+maximo+"&define=1";
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true) direccion=direccion +"&opcioncompra=checked";
}
if (document.getElementById("agencia")!=null) direccion=direccion +"&agencia=" + document.getElementById("agencia").value;
window.location=direccion;
}

function buspropiedades2(propiedad,maximo){


var direccion="busquedas.php?var=1&propiedad="+propiedad+"&band=2&maximo="+maximo+"&define=1";
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true) direccion=direccion +"&opcioncompra=checked";
}
if (document.getElementById("agencia")!=null) direccion=direccion +"&agencia=" + document.getElementById("agencia").value;
window.location=direccion;
}

function buslocalidades(provincia,maximo,propiedad){
var direccion="busquedas.php?provincia="+provincia+"&band=1&maximo="+maximo+"&propiedad="+propiedad+"&define=0&define2=1";
if (document.getElementById("agencia")!=null) direccion=direccion +"&agencia=" + document.getElementById("agencia").value;
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true) direccion=direccion +"&opcioncompra=checked";
}
window.location=direccion;
}

function buslocalidades2(provincia,maximo,propiedad){
var direccion="busquedas.php?provincia="+provincia+"&band=3&maximo="+maximo+"&propiedad="+propiedad+"&define=1";
if (document.getElementById("agencia")!=null) direccion=direccion +"&agencia=" + document.getElementById("agencia").value;
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true) direccion=direccion +"&opcioncompra=checked";
}
window.location=direccion;
}

function buslocalidades3(provincia,maximo,propiedad){
var direccion="busquedas.php?var=1&provincia="+provincia+"&band=3&maximo="+maximo+"&propiedad="+propiedad+"&define=1";
if (document.getElementById("agencia")!=null) direccion=direccion +"&agencia=" + document.getElementById("agencia").value;
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true) direccion=direccion +"&opcioncompra=checked";
}
window.location=direccion;
}

function buszonas(localidad,maximo,provincia,propiedad){
var direccion="busquedas.php?localidad="+localidad+"&band=1&maximo="+maximo+"&provincia="+provincia+"&propiedad="+propiedad+"&define=0&define2=1";
if (document.getElementById("agencia")!=null) direccion=direccion +"&agencia=" + document.getElementById("agencia").value;
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true) direccion=direccion +"&opcioncompra=checked";
}
window.location=direccion;
}

function buszonas2(localidad,maximo,provincia,propiedad){
var direccion="busquedas.php?localidad="+localidad+"&band=3&maximo="+maximo+"&provincia="+provincia+"&propiedad="+propiedad+"&define=1";
if (document.getElementById("agencia")!=null) direccion=direccion +"&agencia=" + document.getElementById("agencia").value;
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true) direccion=direccion +"&opcioncompra=checked";
}
window.location=direccion;
}

function buszonas3(localidad,maximo,provincia,propiedad){
var direccion="busquedas.php?var=1&localidad="+localidad+"&band=1&maximo="+maximo+"&provincia="+provincia+"&propiedad="+propiedad+"&define=0&define2=1";
if (document.getElementById("agencia")!=null) direccion=direccion +"&agencia=" + document.getElementById("agencia").value;
if (document.getElementById("opcioncompra")!=null)
{
if (document.getElementById("opcioncompra").checked==true) direccion=direccion +"&opcioncompra=checked";
}
window.location=direccion;
}






function objetoAjax(){
    var xmlhttp=false;
    try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        try {
           xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (E) {
            xmlhttp = false;
          }
    }

    if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
        xmlhttp = new XMLHttpRequest();
    }
    return xmlhttp;
}

function abrirficha ()
{
     url="unete/formulario.php?tipo=1";
    ajax = objetoAjax();

    ajax.open("GET", url );
    ajax.onreadystatechange = function() {
            if ( ajax.readyState == 4 ) {
                document.getElementById("subprevio").innerHTML = ajax.responseText;
                window.scrollTo(0,6000);
                }
    }
    ajax.send(null)
}


function abrirprop(codigo,agencia)
{

window.location="ficha.php?datoofe=" + codigo + "&soyinmo=" +agencia;
}


function comprobarenvio()
{
var email="";
var telefono="";
var nombre="";
var nohacer=0;

if ((document.getElementById("email")!=null) && (email.length==0)) email=document.getElementById("email").value;

if ((document.getElementById("txtemail")!=null) && (email.length==0)) email=document.getElementById("txtemail").value;

if ((document.getElementById("telefonos")!=null) && (telefono.length==0)) telefono=document.getElementById("telefonos").value;

if ((document.getElementById("moviles")!=null) && (telefono.length==0)) telefono=document.getElementById("moviles").value;

if ((document.getElementById("telefono")!=null) && (telefono.length==0)) telefono=document.getElementById("telefono").value;

if ((document.getElementById("movil")!=null) && (telefono.length==0)) telefono=document.getElementById("movil").value;

nohacer=compruebaemail(email);

if ((document.getElementById("nombre")!=null) && ( nombre.length==0))  nombre=document.getElementById("nombre").value;

if (telefono.length<6)
{

 alert ('Debes de Introducir un telefono valido');
 nohacer=1;
}

if (nombre.length<3)
{
 alert ('Debes de Introducir un nombre');
 nohacer=1;
}

if (nohacer==0)
    {
    document.getElementById("formulario").submit();
    }
    else
        {
         return false;
        }


}
function comprobarenvio2()
{

var email="";
var telefono="";
var nombre="";
var nohacer=0;

if ((document.getElementById("email2")!=null) && (email.length===0)) email=document.getElementById("email2").value;
if ((document.getElementById("txtemail2")!=null) && (email.length===0)) email=document.getElementById("txtemail2").value;
if ((document.getElementById("telefonos2")!=null) && (telefono.length===0)) telefono=document.getElementById("telefonos2").value;
if ((document.getElementById("moviles2")!=null) && (telefono.length===0)) telefono=document.getElementById("moviles2").value;
if ((document.getElementById("telefono2")!=null) && (telefono.length===0)) telefono=document.getElementById("telefono2").value;
if ((document.getElementById("movil2")!=null) && (telefono.length===0)) telefono=document.getElementById("movil2").value;
nohacer=compruebaemail(email);
if ((document.getElementById("nombre2")!=null) && ( nombre.length===0))  nombre=document.getElementById("nombre2").value;
if (telefono.length<6)
{
 alert ('Debes de Introducir un telefono valido');
 nohacer=1;
}
if (nombre.length<3)
{
 alert ('Debes de Introducir un nombre');
 nohacer=1;
}
         return false;
if (nohacer==0)
    {
    document.getElementById("formulario").submit();
    }
    else
        {
         return false;
        }


}

function compruebaemail(mxa)
{
var cade
var nohacer
nohacer=0;


if ((mxa.indexOf('@')<1) && (nohacer==0))      nohacer=1;
if ((mxa.indexOf('.')<1) && (nohacer==0))      nohacer=1;
if ((mxa.indexOf(' ')>0) && (nohacer==0))       nohacer=1;
if ((mxa.length<5) && (nohacer==0))      nohacer=1;

if (nohacer==1)
    {
    alert ("Error en el E-mail");
        return 1;
    }
else
    return 0;

}

function comprobarunete()
{
var email="";
var telefono="";
var nombre="";
var nohacer=0;
if ((document.getElementById("email2")!=null) && (email.length===0)) email=document.getElementById("email2").value;
if ((document.getElementById("txtemail2")!=null) && (email.length==0)) email=document.getElementById("txtemail2").value;
if ((document.getElementById("telefonos2")!=null) && (telefono.length==0)) telefono=document.getElementById("telefonos2").value;
if ((document.getElementById("moviles2")!=null) && (telefono.length==0)) telefono=document.getElementById("moviles2").value;
if ((document.getElementById("telefono2")!=null) && (telefono.length==0)) telefono=document.getElementById("telefono2").value;
if ((document.getElementById("movil2")!=null) && (telefono.length==0)) telefono=document.getElementById("movil2").value;
nohacer=compruebaemail(email);
if ((document.getElementById("nombre2")!=null) && ( nombre.length==0))  nombre=document.getElementById("nombre2").value;
if (telefono.length<6)
{
 alert ('Debes de Introducir un telefono valido');
 nohacer=1;
}
if (nombre.length<3)
{
 alert ('Debes de Introducir un nombre');
 nohacer=1;
}

if (nohacer==0)
    {
    document.getElementById("formulario2").submit();

    }
    else
        {
         return false;
        }


}


function cargalocalidad(valorprovincia)
{

with(document.form1)
{
    szona.length=0;


//            spuerta.options[0]=new Option('');
            szona.options[0]=new Option('');
    if (valorprovincia=='')
    {}
    else
        {
            szona.options[0]=new Option('Cargando consulta.........espere.');
            datos.location="promociones/cargalista.php?tipo=4&promo=-1&keyprov="+ valorprovincia ;
        }

    }
}


function ver()
{
  with(document.form1)
     {
    theText = window.datos.document.body.innerHTML.replace("/\[^\>]+\>/gm", "");
    eval(theText);
//    tt=tt-1;
      }
}


//////////////////////////////////////////////////////////////////////
//FUNCIONES PARA LA FICHA
//////////////////////////////////////////////////////////////////////
function locateImage(name){
   var image=false;
   if(document.images){
      image=document.images[name];
   }
   if(image){
      return image;
   }
   return false;
}

function swap(id,newsrc){
   var image=locateImage(id);
   if(image){
      image.src=newsrc;
   }
}

function doflash() {
    setInterval("txtDiv.filters.glow.enabled =true", 500);
  }
function doflashx() {
    setInterval("txtDivx.filters.glow.enabled =true", 500);
  }
function doflashz() {
    setInterval("txtDivz.filters.glow.enabled =true", 500);
  }

function ver()
{
  with(document.form1)
     {
    theText = window.datos.document.body.innerHTML.replace("/\[^\>]+\>/gm", "");
    eval(theText);
//    tt=tt-1;
      }
}

function cargalocalidad(valorprovincia)
{

with(document.form1)
{
    szona.length=0;


//            spuerta.options[0]=new Option('');
            szona.options[0]=new Option('');
    if (valorprovincia=='')
    {}
    else
        {
            szona.options[0]=new Option('Cargando consulta.........espere.');
            datos.location="../promociones/cargalista.php?tipo=4&promo=-1&keyprov="+ valorprovincia ;
        }

    }
}

function cargazona(valorciudad)
{
with(document.form1)
{
    spuerta.length=0;
            spuerta.options[0]=new Option('');
    if (valorciudad=='')
    {}
    else
        {
            spuerta.options[0]=new Option('Cargando consulta.........espere.');
            datos.location="../promociones/cargalista.php?promo=-1&keyloca="+ valorciudad ;
        }

    }
}

function ampliafotopromo(tipo,ruta,soyinmo,codigo)
{
if (ruta.length>0)
    {
    window.open("verfotopromo.php?idio=1&tipo=" + tipo + "&ruta=" + ruta + "&soyinmo=" + soyinmo  + "&codigo=" + codigo ,"top_",  'height=500,width=560,top=10,left=100, toolbar=no, location=no, directories=no, menubar=no, scrollbars=1, resizable=no,status=yes ,copyhistory=no');
    }
}

function ampliafotopromociones(tipo,ruta,soyinmo,codigo)
{
if (ruta.length>0)
    {
    window.open("../fichapromocion/verfoto.php?tipo=" + tipo + "&ruta=" + ruta + "&soyinmo=" + soyinmo  + "&codigo=" + codigo ,"top_",  'height=500,width=560,top=10,left=100, toolbar=no, location=no, directories=no, menubar=no, scrollbars=1, resizable=no,status=yes ,copyhistory=no');
    }
}

function imprimirfichapromo(codofer,soyinmo) { //v2.0
  window.open("fichapisoenviar.php?voyimprimir=1&datoofe=" + codofer + "&idio="+idio+"&soyinmo=" + soyinmo,"top_","width=700,height=800,status=no,menubar=no,toolbar=no,location=no");
}