﻿function surfto(form)
   	{
	var myindex=form.city.selectedIndex 
	if (form.city.options[myindex].value != 0) { 
		location=form.city.options[myindex].value;} 
	} 

function surfto2(form)
   	{
   	var myindex2=form.sort.selectedIndex 
   	if (form.sort.options[myindex2].value != 0) { 
	   	location=form.sort.options[myindex2].value;} 
   	} 

function surfto3(form)
   	{
   	var myindex3=form.pl.selectedIndex 
   	if (form.pl.options[myindex3].value != 0) { 
	   	location=form.pl.options[myindex3].value;} 
   	} 

function surfto4(form)
   	{
   	var myindex4=form.ph.selectedIndex 
   	if (form.ph.options[myindex4].value != 0) { 
	   	location=form.ph.options[myindex4].value;} 
   	} 

function surfto5(form)
   	{
   	var myindex5=form.bed.selectedIndex 
   	if (form.bed.options[myindex5].value != 0) { 
	   	location=form.bed.options[myindex5].value;} 
   	} 

function surfto6(form)
   	{
   	var myindex6=form.bath.selectedIndex 
   	if (form.bath.options[myindex6].value != 0) { 
	   	location=form.bath.options[myindex6].value;} 
   	} 

function surfto7(form)
   	{
	var myindex=form.nh.selectedIndex 
	if (form.nh.options[myindex].value != 0) { 
		location=form.nh.options[myindex].value;} 
	} 

function surfto8(form)
   	{
	var myindex=form.prangel.selectedIndex 
	if (form.prangel.options[myindex].value != 0) { 
		location=form.prangel.options[myindex].value;} 
	} 

function surfto9(form)
   	{
	var myindex=form.prangeh.selectedIndex 
	if (form.prangeh.options[myindex].value != 0) { 
		location=form.prangeh.options[myindex].value;} 
	} 

function openpopup(popurl)
	{
	var winpops=window.open(popurl,"","width=850,height=800,status=no,scrollbars=yes,resizeable=no,top=" + ((screen.availHeight/2)-(800/2)) + ",left=" + ((screen.availWidth/2)-(850/2)) )
	}

function openpopupfull(popurl)
	{
	var winpops=window.open(popurl,"","")
	}

function openpopup10046753(popurl)
	{
	var winpops=window.open(popurl,"","width=800,height=800,status=no,scrollbars=yes,resizeable=no,top=" + ((screen.availHeight/2)-(800/2)) + ",left=" + ((screen.availWidth/2)-(800/2)) )
	}

function openpopup10048630(popurl)
	{
	var winpops=window.open(popurl,"","width=800,height=800,status=no,scrollbars=yes,resizeable=no,top=" + ((screen.availHeight/2)-(800/2)) + ",left=" + ((screen.availWidth/2)-(800/2)) )
	}

function openpopup10058669(popurl)
	{
	var winpops=window.open(popurl,"","width=800,height=800,status=no,scrollbars=yes,resizeable=no,top=" + ((screen.availHeight/2)-(800/2)) + ",left=" + ((screen.availWidth/2)-(800/2)) )
	}

function openpopup10146753(popurl)
	{
	var winpops=window.open(popurl,"","width=800,height=800,status=no,scrollbars=yes,resizeable=no,top=" + ((screen.availHeight/2)-(800/2)) + ",left=" + ((screen.availWidth/2)-(800/2)) )
	}

function reload()
	{
	location.href=location.href;
	map.checkResize();
	}

function maximize()
	{
	window.moveTo(0, 0);
	window.resizeTo(screen.width, screen.height);
	}

function addCommas(nStr)
{
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}

