

//function to popup a generic window.
//you need to pass the URL, width, and height
//..ex: <a href="javascript:popupGeneral('http://www.yahoo.com',600,200)">

function popupGeneral(theUrl,theWidth,theHeight) 
{
	var destination=theUrl;
	var r= Math.round(Math.random()*100);  //create new window name


	thatwindow = window.open(destination,"namehereew" + r ,"scrollbars=yes,menubar=no,width="+theWidth+",height="+theHeight+",resizable=yes");

}

function popupNoResize(theUrl,theWidth,theHeight) 
{
	var destination=theUrl;
	var r= Math.round(Math.random()*100);  //create new window name


	thatwindow = window.open(destination,"namehereew" + r ,"scrollbars=yes,menubar=no,width="+theWidth+",height="+theHeight+",resizable=no");

}

function popupPrint(theUrl,theWidth,theHeight) 
{
	var destination=theUrl;
	var r= Math.round(Math.random()*100);  //create new window name


	thatwindow = window.open(destination,"namehereew" + r ,"scrollbars=yes,toolbar=no,menubar=yes,width="+theWidth+",height="+theHeight+",resizable=yes");

}


function goletter(letter)
{
	var s="/agents/agent_search_results.aspx?L="+letter;
	
	if (Form1.RbShowFaces.checked)
		s+="&Face=Y";

	location.href=s;

}


function popupGeneralMenu(theUrl,theWidth,theHeight) 
{
	var destination=theUrl;
	var r= Math.round(Math.random()*100);  //create new window name


	thatwindow = window.open(destination,"namehereew" + r ,"scrollbars=yes,menubar=yes,width="+theWidth+",height="+theHeight+",resizable=yes");

}








// Function to 'popup big pic' images.
function popupUrl(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name

thatwindow = window.open(biggraphic,"win" + r ,"scrollbars=no,menubar=no,width=370,height=470,resizable=Yes");

}

function popupWindow(sUrl,wName,wHeight,wWidth) {
var biggraphic=sUrl;
var wh=wHeight;
var ww=wWidth;
var wn=wName
var r= Math.round(Math.random()*100);  //create new window name

thatwindow = window.open(biggraphic,wn+r,"scrollbars=Yes,menubar=no,width="+ww+",height="+wh+",resizable=Yes");

}


function popupZoom(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere3" +r,"scrollbars=no,menubar=no,width=600,height=725,resizable=yes");

}


function popupFloorPlan(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere4"+r,"scrollbars=Yes,width=650,height=450,resizable=Yes,menubar=yes");
}


function popupMapPlan(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere5"+r,"scrollbars=no,width=650,height=380,resizable=Yes,menubar=yes");
}



function popupCart(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
	thatwindow = window.open(biggraphic,"namehere6"+r,"scrollbars=yes,menubar=no,width=400,height=450,resizable=Yes");
}

function popupBroker(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere7"+r,"scrollbars=no,menubar=no,width=415,height=360,resizable=yes");

}

function popupEmail(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere8"+r,"scrollbars=no,menubar=no,width=400,height=450,resizable=Yes");

}

function popupMail2me(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere9"+r,"scrollbars=yes,menubar=no,width=400,height=500,resizable=Yes");

}

function popupComments(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere10"+r,"scrollbars=no,menubar=no,width=450,height=550,resizable=Yes");

}

function popupSchedule(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere11"+r,"scrollbars=no,menubar=no,width=400,height=450,resizable=Yes");

}

function popuptw(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere12"+r,"scrollbars=yes,menubar=no,width=840,height=650,resizable=yes");

}


function popupPrintListing(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere13"+r,"scrollbars=yes,menubar=yes,width=650,height=600,resizable=yes");

}


function popupbamboo(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere14"+r,"scrollbars=yes,menubar=no,width=525,height=400,resizable=yes");

}

function popup360tour(sUrl) {
var gowhere=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
if (gowhere.substr(0,12)=="http://tours" )
	thatwindow = window.open(gowhere,"namehere15"+r,"scrollbars=yes,menubar=no,width=525,height=400,resizable=yes");
else
	thatwindow = window.open(gowhere,"namehere15"+r,"width=500,height=260,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=Yes");
}


function popupvideo(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere16"+r,"scrollbars=no,menubar=no,width=585,height=500,resizable=yes");

}

function popupflash(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere17"+r,"scrollbars=no,menubar=no,width=530,height=530,resizable=yes");

}





function popupDesc(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere18"+r,"scrollbars=yes,menubar=no,width=275,height=360,resizable=yes");

}


function popupCal(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere19"+r,"scrollbars=yes,menubar=no,width=400,height=575,resizable=yes");

}

function createnetvisits(inPrt) {
	eval('window.open("http://dev.inplace.net/CNV.nvs?prt='+inPrt+'","CreateNetVisits","width=504,height=560,scrollbars=Yes");');
}

function inplacenetvisits(inPlc) {
	eval('window.open("http://www.inplace.net/net.visits?_pg=netvisit&wnm=InPlaceNetVisits&prt=1337&plc='+inPlc+'","InPlaceNetVisits","width=500,height=250,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=Yes");');
}



function popupGeneralMap(theUrl,theWidth,theHeight) {
var destination=theUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(destination,"namehere20"+r,"scrollbars=yes,menubar=yes,width="+theWidth+",height="+theHeight+",resizable=yes");
}

function popupBigMap(theUrl,theWidth,theHeight) {
var destination=theUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = parent.window.open(destination,"namehere77"+r,"scrollbars=yes,menubar=no,width="+theWidth+",height="+theHeight+",resizable=yes");
}

function popupMa(theUrl,theWidth,theHeight) {
var destination=theUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(destination,"namehere27"+r,"scrollbars=yes,menubar=no,width="+theWidth+",height="+theHeight+",resizable=yes");
}


function closeWin() {
   self.close()
}
