function radfunc()
{
if(document.cityform.rad[0].checked){
document.all.pac.style.display = 'block';
document.all.cla.style.display = 'none';
}
else if(document.cityform.rad[1].checked){
document.all.cla.style.display = 'block';
document.all.pac.style.display = 'none';
}
else{
document.all.pac.style.display = 'none';
document.all.cla.style.display = 'none';
}
}
function list()
{
var select1 = document.search.country;
if(select1.value!='All'){
var cou = '';
var abc = new Array();
var j = 0;
var ii = 0;
var couall="";
for(var i = 0; i < select1.options.length; i++){
if (select1.options[i].selected){
abc[i] = select1.options[i].value;
if (abc[i] == "All"){
couall="TRUE";
}
k=i;
j++;
}
}
if (couall != "TRUE"){
if (j == 1){
cou = select1.value;
}
else if (j != 1){
for(i = 0; i < select1.options.length; i++){
if (select1.options[i].selected){
ii++;
if( ii == 1 ){
cou = abc[i];
}
else{
cou += ','+abc[i];
}
}
} 
}
document.cityform.countrystr1.value=cou;
document.search.countrystr2.value=document.cityform.countrystr1.value;
document.cityform.submit();
}
else{
document.search.coucheck.value='All';
}
}
}
function check(){
if(document.search.country.value=='All'){
document.search.coucheck.value='All';
}
if(document.cityform.rad[0].checked){
document.search.action = 'http://www.planetwanderer.com/travel_deals/index.php';
}
else if(document.cityform.rad[1].checked){
document.search.action = 'http://www.planetwanderer.com/hotel_deals/index.php';
}
else{
alert('Please make a search choice for Travel or Hotel Deals !');
event.returnValue=false;
}
}