//----------------------------------------------------------------------
function change(varb) {

//alert(varb);

current = document.slideform.slide_language.selectedIndex;

//window.status = current;
//document.images.show.src = document.slideform.slide[current].value;

//window.status = document.slideform.slide_language[current].value;

country = document.slideform.slide_language[current].value;
//countrytxt = document.slideform.slide_language[current].label;

//alert(language_id);
//alert(document.slideform.slide_language.value);

// update frame on the right of the category menu
document.location.href="/"+country+".html";
}

//----------------------------------------------------------------------
function changev2(varb) {

//alert(varb);

current = document.slideform.slide_language.selectedIndex;

//window.status = current;
//document.images.show.src = document.slideform.slide[current].value;

//window.status = document.slideform.slide_language[current].value;

country = document.slideform.slide_language[current].value;
//countrytxt = document.slideform.slide_language[current].label;

//alert(language_id);
//alert(document.slideform.slide_language.value);

// update frame on the right of the category menu
document.location.href="/comparison/redirectv2.php?c="+country;
}

//----------------------------------------------------------------------
// Function: changecon(varb)
// Input:    varb: Selected language_id
// Pre:      option2.php
// Purpose:  Load option2-2.php based on selected continent
// Post:     Request is ent to load option2-2.php for further selection
//           based on continennt
//----------------------------------------------------------------------
function changecon(varb) {

//alert(varb);

current = document.slideform.slide_continent.selectedIndex;

//window.status = current;
//document.images.show.src = document.slideform.slide[current].value;
//window.status = document.slideform.slide_continent[current].value;

continent = document.slideform.slide_continent[current].value;

 switch (continent)
 {
  case("Antarctica"):
    l_continentreq = "Antarctica";
    document.location.href="/continent-region/antarctica.html";
    break
	
  case("Africa"):
    l_continentreq = "Africa";
    document.location.href="/continent-region/africa.html";
    break
	
  case("Asia"):
    l_continentreq = "Asia";
    document.location.href="/continent-region/asia.html";
    break

  case("Carribean"):
    l_continentreq = "Carribean";
    document.location.href="/continent-region/carribean.html";
    break	

  case("Central America"):
    l_continentreq = "Central America";
    document.location.href="/continent-region/central-america.html";
    break

  case("Europe"):
    l_continentreq = "Europe";
    document.location.href="/continent-region/europe.html";
    break
	
  case("North America"):
    l_continentreq = "North America";
    document.location.href="/continent-region/north-america.html";
    break

  case("Pacific"):
    l_continentreq = "Pacific";
    document.location.href="/continent-region/pacific.html";
    break
	
  case("South America"):
    l_continentreq = "South America";
    document.location.href="/continent-region/south-america.html";
    break	
	  
  default:
    l_continentreq = "";
    break
 }

}

//----------------------------------------------------------------------
// Function: ccountry(varb)
// Input:    varb: Selected language_id
// Pre:      Option2-2.php page
// Purpose:  Load country page based on selected country in listbox
// Post:     Request is sent to load country.php with required country
//----------------------------------------------------------------------
function ccountry(varb) 
{
 current = document.slideform.slide_country.selectedIndex;
 country = document.slideform.slide_country[current].value;
 document.location.href="/"+country+".html";
}

//----------------------------------------------------------------------
// Function: 
// Input:    
// Pre:      
// Purpose:  
// Post:     
//----------------------------------------------------------------------
function changecountry(vara) {
//get selected country (index)
current = document.form1.sp_country.selectedIndex;

//window.status = current;
//document.images.show.src = document.slideform.slide[current].value;

//window.status = document.slideform.slide_language[current].value;

country = document.form1.sp_country[current].value;
//window.status = vara;
//countrytxt = document.slideform.slide_language[current].label;

//alert(language_id);
//alert(document.slideform.slide_language.value);

// update frame on the right of the category menu
//document.location.href="supplierinfo.php";
document.location.href="/admin/suppliers/setcountry.php?sid="+vara+"&cc="+1+"&co="+country;
}

//----------------------------------------------------------------------
// Function: 
// Input:    
// Pre:      
// Purpose:  
// Post:     
//----------------------------------------------------------------------
function changecountry2(vara) {
//get selected country (index)
current = document.form1.sp_country.selectedIndex;

//window.status = current;
//document.images.show.src = document.slideform.slide[current].value;

//window.status = document.slideform.slide_language[current].value;

country = document.form1.sp_country[current].value;
//window.status = vara;
//countrytxt = document.slideform.slide_language[current].label;

//alert(language_id);
//alert(document.slideform.slide_language.value);

// update frame on the right of the category menu
//document.location.href="supplierinfo.php";
document.location.href="/admin/providers/setcountry.php?sid="+vara+"&cc="+1+"&co="+country;
}

//----------------------------------------------------------------------
function changefaq(varb) {

current = document.faqform.frm_faqtype.value;
//alert(current);
// update frame on the right of the category menu
document.location.href="/contactinfo.php?p=16&f="+current;
}

//----------------------------------------------------------------------
function changefaqquestion(varb) {

current = document.faqquestionsform.frm_faqtype.value;
//alert(current);
// update frame on the right of the category menu
document.location.href="/showfrmfaqquestion.php?id="+current;
}
