function remote_1()
{
RemoteWin=window.open("../privacy_policy.html","","resizable=yes,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,copyhistory=0,width=550,height=550")
   RemoteWin.creator=self
}

//new Option("text","value")
//this code changes menus

function nullOptionsDMA(aMenu){
var tot=aMenu.options.length
for (i=0;i<tot;i++)
{
aMenu.options[i]=null
}
aMenu.options.length=0;
}
 
function MySubjectDMA0(aMenu){
nullOptionsDMA(aMenu)
 
with (aMenu){
 
//Rewrites the text and values
options[0]=new Option("Select Price Range","none");
options[1]=new Option("Up to $2 million","http://www.tm1031exchange.com/property/nl1.html");
options[2]=new Option("$2 to $5 million","http://www.tm1031exchange.com/property/nl2.html");
options[3]=new Option("Over $5 million","http://www.tm1031exchange.com/property/nl3.html");
options[0].selected=true
}

}

function MySubjectDMA1(aMenu){
nullOptionsDMA(aMenu)
 
with (aMenu){
 
//Rewrites the text and values
options[0]=new Option("Select Price Range","none");
options[1]=new Option("Up to $2 million","http://www.tm1031exchange.com/property/tic1.html");
options[2]=new Option("$2 to $5 million","http://www.tm1031exchange.com/property/tic1.html");
options[3]=new Option("Over $5 million","http://www.tm1031exchange.com/property/tic1.html");
options[0].selected=true
 
 
}
}
function MySubjectDMA2(aMenu){
nullOptionsDMA(aMenu)
 
with (aMenu){
 
//Rewrites the text and values
options[0]=new Option("Select Price Range","none");
options[1]=new Option("Up to $2 million","http://www.tm1031exchange.com/property/r1.html");
options[2]=new Option("$2 to $5 million","http://www.tm1031exchange.com/property/r2.html");
options[3]=new Option("Over $5 million","http://www.tm1031exchange.com/property/r3.html");
options[0].selected=true
 
 
}
}

function MySubjectDMA3(aMenu){
nullOptionsDMA(aMenu)
 
with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select Price Range","none");
options[1]=new Option("Up to $2 million","http://www.tm1031exchange.com/property/ob1.html");
options[2]=new Option("$2 to $5 million","http://www.tm1031exchange.com/property/ob2.html");
options[3]=new Option("Over $5 million","http://www.tm1031exchange.com/property/ob3.html");
options[0].selected=true
}

}


function MySubjectDMA4(aMenu){
nullOptionsDMA(aMenu)
 
with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select Price Range","none");
options[1]=new Option("Up to $2 million","http://www.tm1031exchange.com/property/mf1.html");
options[2]=new Option("$2 to $5 million","http://www.tm1031exchange.com/property/mf2.html");
options[3]=new Option("Over $5 million","http://www.tm1031exchange.com/property/mf3.html");
options[0].selected=true
}

}



function MySubjectDMA5(aMenu){
nullOptionsDMA(aMenu)
 
with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select Price Range","none");
options[1]=new Option("Up to $2 million","http://www.tm1031exchange.com/property/i1.html");
options[2]=new Option("$2 to $5 million","http://www.tm1031exchange.com/property/i2.html");
options[3]=new Option("Over $5 million","http://www.tm1031exchange.com/property/i3.html");
options[0].selected=true
}

}



function MySubjectDMA6(aMenu){
nullOptionsDMA(aMenu)
 
with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select Price Range","none");
options[1]=new Option("Up to $2 million","http://www.tm1031exchange.com/property/l1.html");
options[2]=new Option("$2 to $5 million","http://www.tm1031exchange.com/property/l2.html");
options[3]=new Option("Over $5 million","http://www.tm1031exchange.com/property/l3.html");
options[0].selected=true
}

}


function MySubjectDMA7(aMenu){
nullOptionsDMA(aMenu)
 
with (aMenu){

//Rewrites the text and values
options[0]=new Option("Select Price Range","none");
options[1]=new Option("Up to $2 million","http://www.tm1031exchange.com/property/h1.html");
options[2]=new Option("$2 to $5 million","http://www.tm1031exchange.com/property/h2.html");
options[3]=new Option("Over $5 million","http://www.tm1031exchange.com/property/h3.html");
options[0].selected=true
}

}

/* ####################### goDM() ####################### */
function goDMA(aMenu){
if (aMenu.options.value!="none")
{
location=aMenu.options[aMenu.selectedIndex].value
} 

}

/* ####################### setUp ####################### */

function setUpDMA(){
with (document.formDoubleMenuDMA) {
if (menuSubjectsDMA.selectedIndex==0){
menuSubjectsDMA.options[0].selected=true
menuFilesDMA.options[0].selected=true
}

if (menuSubjectsDMA.selectedIndex==1)
	MySubjectDMA0(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==2)
	MySubjectDMA1(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==3)
	MySubjectDMA2(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==4)
	MySubjectDMA3(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==5)
	MySubjectDMA4(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==6)
	MySubjectDMA5(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==7)
	MySubjectDMA6(menuFilesDMA)
if (menuSubjectsDMA.selectedIndex==8)
	MySubjectDMA7(menuFilesDMA)
}

}

/* ####################### changeFiles ####################### */

function changeFilesDMA(){
aMenu=document.formDoubleMenuDMA.menuSubjectsDMA
aMenu2=document.formDoubleMenuDMA.menuFilesDMA
with (aMenu){

switch (selectedIndex) {
case 0:
aMenu2.options.length=0;
aMenu2.options[0]=
new Option("Select Price Range","none")
aMenu2.options[0].selected=true;
history.go(0)
break 
case 1: 
MySubjectDMA0(aMenu2) 
aMenu2.options[0].text="Select Price Range"
break 
case 2: 
MySubjectDMA1(aMenu2) 
aMenu2.options[0].text="Select Price Range"
break 
case 3: 
MySubjectDMA2(aMenu2) 
aMenu2.options[0].text="Select Price Range"
break 
case 4: 
MySubjectDMA3(aMenu2) 
aMenu2.options[0].text="Select Price Range"
break 
case 5: 
MySubjectDMA4(aMenu2) 
aMenu2.options[0].text="Select Price Range"
break 
case 6: 
MySubjectDMA5(aMenu2) 
aMenu2.options[0].text="Select Price Range"
break 
case 7: 
MySubjectDMA6(aMenu2) 
aMenu2.options[0].text="Select Price Range"
break 
case 8: 
MySubjectDMA7(aMenu2) 
aMenu2.options[0].text="Select Price Range"
break 
}
}

}
