function populateData_city(url, string) {
if (url.length==0) { 
  document.getElementById("citywxc").innerHTML="";
    return;
  }
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null) {
  alert ("Your browser does not support AJAX!");
  return;
  } 
	url=url+"?sid="+Math.round(Math.random() * 100000000)+string;
	xmlHttp.onreadystatechange=stateChanged_city;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	
	//return false;
}

function populateData_province(url, string) {
if (url.length==0) { 
  document.getElementById("provincewxc").innerHTML="";
  return;
  }
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null) {
  alert ("Your browser does not support AJAX!");
  return;
  } 
	url=url+"?sid="+Math.round(Math.random() * 100000000)+string;
	xmlHttp.onreadystatechange=stateChanged_province;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	
	//return false;
}

function stateChanged_city() { 
if(lang=="fr") { loadingText = "Patientez SVP....."; } else { loadingText = "Loading....."; }
document.getElementById("citywxc").innerHTML='<select class="select200" name="city_select_loading" id="city_select_loading" size="10"><option id="loading">'+loadingText+'</option></select>';
	if (xmlHttp.readyState==4) { 
		if(!document.getElementById("citywxc")) return false;
		document.getElementById("citywxc").innerHTML=xmlHttp.responseText;
	}
}

function stateChanged_province() { 
	if (xmlHttp.readyState==4) { 
		if(!document.getElementById("provincewxc")) return false;
		document.getElementById("provincewxc").innerHTML=xmlHttp.responseText;
	}
}



function clearList(objSelect) {
	var selectboxtoclear = document.getElementById(objSelect);
	selectboxtoclear.options.length = 0;
}

function windowOpener(fileToOpen) {
	var newWinObj=window.open(fileToOpen,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=700,height=615');
}

function removalConfirmation(url,msg) {
	if (confirm(msg)){
		window.location = url;
	}
}