function loadWizChorus(culture)
{
var title ="";
var urlBase=window.location.toString().substring(0,window.location.toString().indexOf('/e'));//+"http://testing.wscm9.com";
var sitio=urlBase+"/wiz/culture/wiznewchoru.html";
if( !culture)
  culture = "en";
sitio = sitio.replace("/culture/","/"+culture+"/");
sitio = sitio.replace(".html","_"+culture+".html");
if(culture=="es")
  title = "Asistente para el ingreso de nuevo coro";
else
  title = "Wizard for register new choir";
var w=0,h=0; 
 w = 650;
 h = 580;

var existWin=false;
if(Windows.getWindow('pgNewChorus'))
{
    newWin = Windows.getWindow('pgNewChorus');
    existWin=true;
}

var opt={	
	method:'get',
	asynchronous:true,
	onSuccess:function(t)
	{  
	  try{	  	  
	  window.setTimeout("Windows.windows[Windows.windows.length-2].showCenter(Windows.windows[Windows.windows.length-2].modal); ",70);
	  }catch(e){
	  alert(e.message);
	  }
	},
	onFailure:function(t)
	{
	var strErr="";
	  strErr = t.responseText;
	  try{
	  strErr = strErr.substring(strErr.indexOf("<title>")+7,strErr.lastIndexOf("</title"));	  
	  alert('Ocurrio error en la solicitud:\n'+	strErr);	  
	  }catch(exInt){}
	}	
	} 
 var myDelegate = 
         {
		canClose: function(win) {
		    win.destroy();
		    WindowUtilities.enableScreen();
		    }
	 }
if(!existWin)
newWin = new Window('pgNewChorus', { className:"mac_os_x",title: '<span style="color:blue"><b>'+title+'</b></span>', top:0, right:20, width: w, height: h, 
                  draggable:false, closable:false, minimizable:false, maximizable: false,resizable:false,url: sitio  , showEffectOptions: {duration:0}})
newWin.setDelegate(myDelegate);
showHideFlash('none')
newWin.showCenter(true);

}

function loadInfoChorus(culture)
{
var title ="";
var urlBase=window.location.toString().substring(0,window.location.toString().indexOf('/e'));//+"http://testing.wscm9.com";
var sitio=urlBase+"/wiz/culture/showchoru.html";

if( !culture)
  culture = "en";
sitio = sitio.replace("/culture/","/"+culture+"/");
sitio = sitio.replace(".html","_"+culture+".html");
if(culture=="es")
  title = "Informaci&oacute;n de coro";
else
  title = "Choir information";
var w=0,h=0; 
 w = 580;
 h = 590;

var existWin=false;
if(Windows.getWindow('pgNewChorus'))
{
    newWin = Windows.getWindow('pgNewChorus');
    existWin=true;
}

var opt={	
	method:'get',
	asynchronous:true,
	onSuccess:function(t)
	{  
	  try{	  	  
	  window.setTimeout("Windows.windows[Windows.windows.length-2].showCenter(Windows.windows[Windows.windows.length-2].modal); ",70);
	  }catch(e){
	  alert(e.message);
	  }
	},
	onFailure:function(t)
	{
	var strErr="";
	  strErr = t.responseText;
	  try{
	  strErr = strErr.substring(strErr.indexOf("<title>")+7,strErr.lastIndexOf("</title"));	  
	  alert('Ocurrio error en la solicitud:\n'+	strErr);	  
	  }catch(exInt){}
	}	
	} 
 var myDelegate = 
         {
		canClose: function(win) {
		    win.destroy();
		    WindowUtilities.enableScreen();
		    }
	 }
if(!existWin)
newWin = new Window('pgNewChorus', { className:"mac_os_x",title: '<span style="color:blue"><b>'+title+'</b></span>', top:0, right:20, width: w, height: h, 
                  draggable:false, closable:false, minimizable:false, maximizable: false,resizable:false,url: sitio  , showEffectOptions: {duration:0}})
newWin.setDelegate(myDelegate);
showHideFlash('none')
newWin.showCenter(true);

}


function loadGallery(indexGallery)
{
var title ="";
var urlBase=window.location.toString().substring(0,window.location.toString().indexOf('/e'));//+"http://testing.wscm9.com";
var sitio=urlBase+"/gallery/index_0"+indexGallery+".php";
title = "Galer&iacute;a - Gallery";

var w=0,h=0; 
 w = 680;
 h = 590;

var existWin=false;
if(Windows.getWindow('pgNewChorus'))
{
    newWin = Windows.getWindow('pgNewChorus');
    existWin=true;
}

var opt={	
	method:'get',
	asynchronous:true,
	onSuccess:function(t)
	{  
	  try{	  	  
	  window.setTimeout("Windows.windows[Windows.windows.length-2].showTop(Windows.windows[Windows.windows.length-2].modal); ",70);
	  }catch(e){
	  alert(e.message);
	  }	
	},
	onFailure:function(t)
	{
	var strErr="";
	  strErr = t.responseText;
	  try{
	  strErr = strErr.substring(strErr.indexOf("<title>")+7,strErr.lastIndexOf("</title"));	  
	  alert('Ocurrio error en la solicitud:\n'+	strErr);	  
	  }catch(exInt){}
	}	
	} 
 var myDelegate = 
         {
		canClose: function(win) {
		    win.destroy();
		    WindowUtilities.enableScreen();
		    }
	 }
if(!existWin)
newWin = new Window('pgNewChorus', { className:"mac_os_x",title: '<span style="color:blue"><b>'+title+'</b></span>', top:20, right:20, width: w, height: h, 
                  draggable:false, closable:false, minimizable:false, maximizable: false,resizable:false,url: sitio  , showEffectOptions: {duration:0}})
newWin.setDelegate(myDelegate);
showHideFlash('none')
newWin.showCenter(true);

}


function closeWindow()
{
Windows.close(null,'pgNewChorus');
showHideFlash('block')
}

function showHideFlash(op)
{
 if(getObjFlash()!= null)
  getObjFlash().style.display=op;
 else ;
}

function getObjFlash()
{
return document.getElementById('swfObj');
}

function _$(id)
{
  return document.getElementById(id);
}

function loadWizProjects(culture)
{
var title ="";
var urlBase=window.location.toString().substring(0,window.location.toString().indexOf('/e'));//+"http://testing.wscm9.com";
var sitio=urlBase+"/wiz/culture/wiznewproject.html";
if( !culture)
  culture = "en";
sitio = sitio.replace("/culture/","/"+culture+"/");
sitio = sitio.replace(".html","_"+culture+".html");
if(culture=="es")
  title = "Asistente para el ingreso de nuevo Proyecto";
else
  title = "Wizard for register new Project";
var w=0,h=0; 
 w = 650;
 h = 580;

var existWin=false;
if(Windows.getWindow('pgNewProject'))
{
    newWin = Windows.getWindow('pgNewProject');
    existWin=true;
}

var opt={	
	method:'get',
	asynchronous:true,
	onSuccess:function(t)
	{  
	  try{	  	  
	  window.setTimeout("Windows.windows[Windows.windows.length-2].showCenter(Windows.windows[Windows.windows.length-2].modal); ",70);
	  }catch(e){
	  alert(e.message);
	  }
	},
	onFailure:function(t)
	{
	var strErr="";
	  strErr = t.responseText;
	  try{
	  strErr = strErr.substring(strErr.indexOf("<title>")+7,strErr.lastIndexOf("</title"));	  
	  alert('Ocurrio error en la solicitud:\n'+	strErr);	  
	  }catch(exInt){}
	}	
	} 
 var myDelegate = 
         {
		canClose: function(win) {
		    win.destroy();
		    WindowUtilities.enableScreen();
		    }
	 }
if(!existWin)
newWin = new Window('pgNewProject', { className:"mac_os_x",title: '<span style="color:blue"><b>'+title+'</b></span>', top:0, right:20, width: w, height: h, 
                  draggable:false, closable:false, minimizable:false, maximizable: false,resizable:false,url: sitio  , showEffectOptions: {duration:0}})
newWin.setDelegate(myDelegate);
showHideFlash('none')
newWin.showCenter(true);

}


function close_window(win)
{
	win.destroy();
	WindowUtilities.enableScreen();
}
function loadInfoprojects(culture)
{
try{
var title ="";
var urlBase=window.location.toString().substring(0,window.location.toString().indexOf('/e'));//+"http://testing.wscm9.com";
var sitio=urlBase+"/wiz/culture/showproject.html";

if( !culture)
  culture = "en";
sitio = sitio.replace("/culture/","/"+culture+"/");
sitio = sitio.replace(".html","_"+culture+".html");
if(culture=="es")
  title = "Informaci&oacute;n de proyecto";
else
  title = "Project information";
var w=0,h=0; 
 w = 580;
 h = 590;

var existWin=false;

if(Windows.getWindow('pgNewChorus2'))
{
    newWin = Windows.getWindow('pgNewChorus2');
    existWin=true;
}

var opt={	
	method:'get',
	asynchronous:true,
	onSuccess:function(t)
	{  
	  try{	  	  
	  window.setTimeout("Windows.windows[Windows.windows.length-2].showCenter(Windows.windows[Windows.windows.length-2].modal); ",70);
	  }catch(e)
	  {  alert(e.message);	  }
	},
	onFailure:function(t)
	{
	var strErr="";
	  strErr = t.responseText;
	  try{
	  strErr = strErr.substring(strErr.indexOf("<title>")+7,strErr.lastIndexOf("</title"));	  
	  alert('Ocurrio error en la solicitud:\n'+	strErr);	  
	  }catch(exInt){}
	}	
	}; 
 var myDelegate = {	canClose: close_window };
 
 var optw = {  className:"mac_os_x",title: '<span style="color:blue"><b>'+title+'</b></span>', top:0, right:20, width: w, height: h, 
                  draggable:false, closable:true, minimizable:false, maximizable: false,resizable:false,url: sitio  , showEffectOptions: {duration:0}};
 optw.closable = true;
 alert('va'+optw.closable);
 if(!existWin)
newWin = new Window('pgNewChorus2', optw)
newWin.setDelegate(myDelegate);
showHideFlash('none')
newWin.showCenter(true);

}catch(e)
{alert(e.message);}

}
function getServerURL()
{
 return "https://secure.wscm9.com";
}

function loadWindowSystem(opt)
{
try{  
  NwindowSus = window.open("https://secure.wscm9.com/suscription_"+getCulture()+".html?culture="+getCulture()+opt, "", "status=yes,left=1,top=1,height="+(screen.availHeight-50)+",width="+(screen.availWidth-5)+",status=yes,minimizable=no,resizable=no,scrollbars=yes"); 
}catch(e)
{}
}

function loadWindowShowSystem()
{
try{
  //var Nwindow = window.open("/system_show.html?culture="+getCulture(), "", "status=yes,minimizable=no,resizable=no,scrollbars=yes"); 
  var Nwindow = window.open("https://secure.wscm9.com/suscription_show_"+getCulture()+".html?culture="+getCulture()+opt, "", "status=yes,left=1,top=1,height="+(screen.availHeight-50)+",width="+(screen.availWidth-5)+",status=yes,minimizable=no,resizable=no,scrollbars=yes"); 
  Nwindow.moveTo(30, 30);
  Nwindow.resizeTo(screen.availWidth-30, screen.availHeight-30);
}catch(e)
{}
}

function loadWindowShowSystem2(opt)
{
try{
  var Nwindow = window.open("https://secure.wscm9.com/suscription_show_"+getCulture()+".html?culture="+getCulture()+opt, "wconsulta", "status=yes,left=1,top=1,height="+(screen.availHeight-50)+",width="+(screen.availWidth-5)+",status=yes,minimizable=no,resizable=no,scrollbars=yes"); 
}catch(e)
{}
}

function loadWindowHotel()
{
  try{
    var Nwindow = window.open("http://www.argentinavision.com/wscm9", "", "status=yes,minimizable=no,resizable=no,scrollbars=yes");
    Nwindow.moveTo(70, 70);
    Nwindow.resizeTo(screen.availWidth-70, screen.availHeight-70);
	Nwindow.focus();
  }catch(e)
	{}
}


/*------------------  WINDOW PARA CARGAR  LAS FRANJAS HORARIAS-----------------*/
function loadShowInfoAsist(culture,id)
{
var title ="";
var fnbuildWindow=null;

	if(parent.buildWindow)  
			fnbuildWindow = parent.buildWindow;
		else
			fnbuildWindow = buildWindow;
			
if(culture=="es")
  title = "Informaci&oacute;n de inscripci&oacute;n";
else
  title = "Inscription Information";
var w=0,h=0; 
 w = 580;
 h = 510;
newWin = fnbuildWindow("/wiz/showasist.html?culture="+culture+"&id="+id, "pgShowInsc",title,w,h,false);

}

function showHelp(culture)
{
var title ="";
//var urlBase=window.location.toString().substring(0,window.location.toString().indexOf('/e'));
//var sitio=urlBase+"/wiz/es/wiznewasist.html";
var fnbuildWindow=null;

	if(parent.buildWindow)  
			fnbuildWindow = parent.buildWindow;
		else
			fnbuildWindow = buildWindow;
			
if(culture=="es")
  title = "Ayuda para la inscripci�n individual";
else
  title = "Individual inscription help";
var w=0,h=0; 
 w = 580;
 h = 510;
newWin = fnbuildWindow("/wiz/"+culture+"/help.html", "pgHelp",title,w,h,true);
}

function addComment(culture)
{
var title ="";
//var urlBase=window.location.toString().substring(0,window.location.toString().indexOf('/e'));
//var sitio=urlBase+"/wiz/es/wiznewasist.html";
var fnbuildWindow=null;

	if(parent.buildWindow)  
			fnbuildWindow = parent.buildWindow;
		else
			fnbuildWindow = buildWindow;
			
if(culture=="es")
  title = "Ingreso de comentario";
else
  title = "Add Comments";
var w=0,h=0; 
 w = 500;
 h = 400;
newWin = fnbuildWindow("/wiz/addComment.html?culture="+culture, "pgcomment",title,w,h,true);
}


function showWizNewAsist(culture)
{
var title ="";
//var urlBase=window.location.toString().substring(0,window.location.toString().indexOf('/e'));
//var sitio=urlBase+"/wiz/es/wiznewasist.html";
var fnbuildWindow=null;

	if(parent.buildWindow)  
			fnbuildWindow = parent.buildWindow;
		else
			fnbuildWindow = buildWindow;
			
if(culture=="es")
  title = "Asistente para inscripci&oacute;n";
else
  title = "Inscription wizard";
var w=0,h=0; 
 w = 580;
 h = 510;
newWin = fnbuildWindow("/wiz/wiznewasist.html?culture="+culture, "pgwizInsc",title,w,h,false);
}

function showWizNewPay(culture)
{
  TopFixed= 1;
  applyLeft= screen.availWidth/2-200;  
  Tip(getText('lbl-tooltip-no-action-pay',getCulture_()),WIDTH, 370,LEFT,applyLeft,HEIGHT,150,PADDING,5, SHADOW, true, TITLE, getText('lbl-tooltip-no-action-pay-title',getCulture_()), FADEIN, 300, FADEOUT, 300, STICKY,1, CLOSEBTN, true, CLICKCLOSE, true, BGCOLOR, '#E7ECF2', FONTCOLOR, '#000000', TITLEBGCOLOR, '#8c3663');
  window.setTimeout("TopFixed= 0;applyLeft=100;",150);
  hidepgbar();
}
function loadShowSched(culture)
{
var title ="";
var fnbuildWindow=null;

	if(parent.buildWindow)  
			fnbuildWindow = parent.buildWindow;
		else
			fnbuildWindow = buildWindow;
			
if(culture=="es")
  title = "Cronograma de actividades";
else
  title = "Activities Schedule";
var w=0,h=0; 
 w = screen.availWidth-200
 h = screen.availHeight-200;
newWin = fnbuildWindow("/wiz/showSched.html?culture="+culture, "pgShowInsc",title,w,h,true);

}
		

function verCVCoros(culture)
{
var title ="";
var fnbuildWindow=null;

	if(parent.buildWindow)  
			fnbuildWindow = parent.buildWindow;
		else
			fnbuildWindow = buildWindow;
			
if(culture=="es")
  title = "Coros Seleccionados";
else
  title = "Selected Choirs";
var w=0,h=0; 
 w = 470
 h = 520;
newWin = fnbuildWindow("/cv/cv-coros-" + culture + ".html", "pgCVCoros",title,w,h,false);

}

function verCVMasters(culture)
{
var title ="";
var fnbuildWindow=null;

	if(parent.buildWindow)  
			fnbuildWindow = parent.buildWindow;
		else
			fnbuildWindow = buildWindow;
			
if(culture=="es")
  title = "Maestros de las clases magistrales";
else
  title = "Master Classes Masters";
var w=0,h=0; 
 w = 470
 h = 520;
newWin = fnbuildWindow("/cv/cv-masters-" + culture + ".html", "pgCVMasters",title,w,h,false);

}





