var enterName = 'Please Enter your Name';
var enterNumber = 'Please, enter your telephone number';
var enterCountry = 'Please, enter your country';
var qCConfirmation  = 'Would you like to call you back ?';
function QuickCallPopulateCountries(x,cacheobj)
{
for (m=cacheobj.options.length-1;m>0;m--)
cacheobj.options[m]=null;
regionArray=eval(x);
for (i=1;i<regionArray.length;i++)
cacheobj.options[i]=new Option(regionArray[i-1].text,regionArray[i-1].value);
cacheobj.options[0].selected=true


}

function setTextOfCombo(divWithTextOfComboboxID, combobox) 
{
divWithTextOfCombobox = document.getElementById(divWithTextOfComboboxID);
if (divWithTextOfCombobox)
divWithTextOfCombobox.innerHTML= combobox.options[combobox.selectedIndex].innerHTML;
}
function quickCheck(objstrName,objstrTelephone,objstrCountryVar)
{
if (objstrName.value == '' || objstrName.value == objstrName.defaultValue)
				{
					alert(enterName);
					objstrName.focus();
					return false;
				}
				if (objstrTelephone.value == '' || objstrTelephone.value == objstrTelephone.defaultValue || objstrTelephone.value.match(/[a-zA-Z]/g) != null)
				{
					alert(enterNumber);
					objstrTelephone.focus();
					return false;
				}
                                if (objstrCountryVar.selectedIndex==0)
                                {
                                        alert(enterCountry);
					return false;
                                }
				
				if (!confirm(qCConfirmation ))
					return false;
				return true;

}

function ChangeMessage(message) 
{
 var newmessage=message.replace('&lt;br&gt;&lt;br&gt;','\n');
 return newmessage;
}