function CurrencyPopup(QueryString)
    { 
      CurrencyWindow = window.open ('1', 'CurrencyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,height=170,width=600')
      CurrencyWindow.focus()
      CurrencyWindow.location.href = 'http://currency.xe.net/ecc/input.cgi?Template=sw&'+QueryString
    }


/*
Required field(s) validation- By NavSurf
Visit NavSurf.com at http://navsurf.com
Visit http://www.dynamicdrive.com for this script
*/

function formCheck(formobj){
	//1) Enter name of mandatory fields
	var fieldRequired = Array("Client_Name", "Email", "Address_1", "City", "State", "Area_Code", "Country", "Contact_Telephone", "Tour_Option", "Number_Adults", "Date_First_Choice", "Date_Second_Choice", "Accommodation_City", "Total_Amount", "Name_On_Card", "Card_Type", "Card_Number", "Expiry_Date");
	//2) Enter field description to appear in the dialog box
	var fieldDescription = Array("Name", "Email", "Address", "City", "State", "AreaCode", "Country", "Telephone", "Tour_Option", "Number_Adults", "Date_First_Choice", "Date_Second_Choice", "Accommodation_City", "Total_Amount", "Name_On_Card", "Card_Type", "Card_Number", "Expiry_Date");

	//3) Enter dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}
