//js function for place retaining
function  placeRetain(countryName,stateName,cityName,jsCountry,jsState,jsCity)
    {
     var countryCombo=document.getElementById(countryName);
     var stateCombo=document.getElementById(stateName);
     var cityCombo=document.getElementById(cityName);
     var countryValue=jsCountry;
     var stateValue=jsState;
     var cityValue=jsCity;
     for(var index=0;index<countryCombo.length;index++)
	 {
	    //country combo
	   if(countryCombo.options[index].value==countryValue)
	   {
	     countryCombo.options[index].selected=true;
	     stateDynamicCombo(countryValue,stateName);
	     
	     //state combo 
	     for(var stateIndex=0;stateIndex<stateCombo.length;stateIndex++)
	     {
	        if(stateCombo.options[stateIndex].value==stateValue)
	        {
	           stateCombo.options[stateIndex].selected=true;
	           cityDynamicCombo(stateValue,cityName);
	           
	           //city combo
	           for(var cityIndex=0;cityIndex<cityCombo.length;cityIndex++)
	           {
	             if(cityCombo.options[cityIndex].value==cityValue)
	             {
	               cityCombo.options[cityIndex].selected=true;
	             }
	           }
	        }
	     }
	     
	   }
	   
	}
	}
	
