
function popup(doc,wd,ht)
{

	//alert("Just to Let you Know that we Successfully Arrived : (B-p)");
	//if(window.oWin)window.oWin.close();
	
  	//alert("getting to the Pop-up");
  var ScrWd=this.screen.width,ScrHt=this.screen.height;
  	wide = wd/2; high = ht/2;
	
	BordWd = (ScrWd/2)-wide; BordHt = (ScrHt/2)-(high+15);		//	+ makes the window go to the TOP
	//alert(BordWd+" : BordWd\n"+BordHt+" : BordHt\n"+wide+":"+wd+": wide\n"+high+":"+ht+" : High\n");
	
	oWin = window.open(doc,'RealEstateOnline','width='+wd+',height='+ht+',left='+BordWd+',top='+BordHt+', resizeable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no');
	oWin.focus();
}


function ProfilePopup(doc,wd,ht)
{
  //DEBUG		alert("getting to the Pop-up"+doc+' : '+wd+' : '+ht);
  var ScrWd=this.screen.width,ScrHt=this.screen.height;
  
		wide = wd/2; high = ht/2;
		
		BordWd = (ScrWd/2)-wide; BordHt = (ScrHt/2)-high;
		//		alert(BordWd+" : BordWd\n"+BordHt+" : BordHt\n"+wide+":"+wd+": wide\n"+high+":"+ht+" : High\n");
	
		ProWin = window.open(doc,'prowin','width='+wd+',height='+ht+',left='+BordWd+',top='+BordHt+', resizeable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no');

	ProWin.focus();
}

function formPopup(doc,wd,ht)
{
	//doc="'"+doc+"'";
	//DEBUG:	alert(doc+":"+wd+":"+ht);
	
  //DEBUG		alert("getting to the Pop-up"+doc);
  var ScrWd=this.screen.width,ScrHt=this.screen.height;
  
		wide = wd/2; high = ht/2;
		
		BordWd = (ScrWd/2)-wide; BordHt = (ScrHt/2)-high;
		//alert(BordWd+" : BordWd\n"+BordHt+" : BordHt\n"+wide+":"+wd+": wide\n"+high+":"+ht+" : High\n");

	
	formWin = window.open(doc,'FormWin','width='+wd+',height='+ht+',left='+BordWd+',top='+BordHt+', resizeable=no,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no');
	
	formWin.focus();
	

}

function PopSlideshow(doc,wd,ht)
{
	//doc="'"+doc+"'";
	//DEBUG:	alert(doc+":"+wd+":"+ht);
	
  //DEBUG		alert("getting to the Pop-up"+doc);
  var ScrWd=this.screen.width,ScrHt=this.screen.height;
  
  	//doc = doc+"?Dest=\<?= $Dest ?\>";\
	
/*	// QUERYSTRING PARSER	
	
	url = document.location;
	URLstr = url.toString();
		//alert("URL : "+url);
	
	Qloc = URLstr.indexOf("?");
		//alert(Qloc);
	Qstr = URLstr.substring(Qloc,URLstr.length);
*/  
		wide = wd/2; high = ht/2;
		
		BordWd = (ScrWd/2)-wide; BordHt = (ScrHt/2)-(high-15);	//	- (minus) makes the window go to the BOTTOM
		//alert(BordWd+" : BordWd\n"+BordHt+" : BordHt\n"+wide+":"+wd+": wide\n"+high+":"+ht+" : High\n");

	//doc = doc+Qstr;
	
	if(window.slideWin)window.slideWin.close();
	
		slideWin = window.open(doc,'SlideWin','width='+wd+',height='+ht+',left='+BordWd+',top='+BordHt+', resizeable=no,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no');
	
	
	
	slideWin.focus();
	

}


function a_search(doc,wd,ht)
{
  //DEBUG		alert("getting to the Pop-up"+doc+' : '+wd+' : '+ht);
  var ScrWd=this.screen.width,ScrHt=this.screen.height;
  
		wide = wd/2; high = ht/2;
		
		BordWd = (ScrWd/2)-wide; BordHt = (ScrHt/2)-high;
		//		alert(BordWd+" : BordWd\n"+BordHt+" : BordHt\n"+wide+":"+wd+": wide\n"+high+":"+ht+" : High\n");

	if(window.AgnWin)window.AgnWin.close();
	
		AgnWin = window.open(doc,'agnwin','width='+wd+',height='+ht+',left='+BordWd+',top='+BordHt+', resizeable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no');
	

	
	AgnWin.focus();
	

}
function generate_pop(doc,wd,ht,win_nm)
{
  //DEBUG		alert("getting to the Pop-up"+doc+' : '+wd+' : '+ht);
  var ScrWd=this.screen.width,ScrHt=this.screen.height;

	//if(window.win_nm)window.oWin.close();

  
		wide = wd/2; high = ht/2;
		
		BordWd = (ScrWd/2)-wide; BordHt = (ScrHt/2)-high;
		//		alert(BordWd+" : BordWd\n"+BordHt+" : BordHt\n"+wide+":"+wd+": wide\n"+high+":"+ht+" : High\n");


	
		win_nm = window.open(doc,'prowin','width='+wd+',height='+ht+',left='+BordWd+',top='+BordHt+', resizeable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no');
	

	
		win_nm.focus();
	

}


function jumpTo(URL_List){
   var URL = URL_List.options[URL_List.selectedIndex].value;
	 currentURL = window.location.href;
   window.location.href = currentURL + "&" + URL;
}

