function e() {
	try {
          MSDropDown.init("#phoneid select");
          MSDropDown.init("#m_phoneid select");
		  //signup_telephone_Country_countrymenu_hideShowPhone();
  		  //m_signup_telephone_Country_countrymenu_hideShowPhone();
	} catch(e){
          alert(e);
	}
        showHidePhone();
   }

 function showValue(arg, arg2) {
	//alert("calling show me: arg1 " + arg + " arg2 " +  arg2);
       //alert(document.getElementById("signup-telephone-country").value);
	var s = (arg2==undefined) ? '' : "<br /><font color='darkgreen'>value:</font> "+ arg2;
	$("#selectedvalue").html("<font color='darkgreen'>label:</font> " + arg +  s);
}
 var counter = 1;
 function output(msg, id) {
        //alert(msg+" and "+id.id);
	if(counter>=100) counter = 1;
	var  old = $("#output").html();
	$("#output").html((counter++)+": id= "+id.id +" : " + msg+"<br />"+old);
}

/*function signup_telephone_Country_countrymenu_clearPhone()
{
document.getElementById("signup-telephone-areaCode1").value="###";
document.getElementById("signup-telephone-areaCode2").value="";
document.getElementById("signup-telephone-phone1").value="###";
document.getElementById("signup-telephone-phone2").value="####";
document.getElementById("signup-telephone-phone3").value="";
}

 function signup_telephone_Country_countrymenu_hideShowPhone() {
  var countryValue=document.getElementById("signup-telephone-country-countrymenu").value;
  //alert(countryValue);
  if( countryValue=="1" || countryValue==" 1" || countryValue=="684" || countryValue=="268" || countryValue=="242" || countryValue=="767" || countryValue=="809" || countryValue=="473" || countryValue=="876" || countryValue=="869" || countryValue=="758" || countryValue=="784" || countryValue=="868") {
    document.getElementById("signup-telephone-areaCode1").style.display="";
    document.getElementById("signup-telephone-phone1").style.display="";
    document.getElementById("signup-telephone-phone2").style.display="";
    document.getElementById("section_telephone_labelforcontrol-bracket").style.display="";
    document.getElementById("section_telephone_labelforcontrol-bracketWithHyphen").style.display="";
    document.getElementById("section_telephone_labelforcontrol-hyphen").style.display="";
    document.getElementById("signup-telephone-areaCode2").style.display="none";
    document.getElementById("signup-telephone-phone3").style.display="none";
    document.getElementById("section_telephone_labelforcontrol-hyphen1").style.display="none";
  }else{
    document.getElementById("signup-telephone-areaCode1").style.display="none";
    document.getElementById("signup-telephone-phone1").style.display="none";
    document.getElementById("signup-telephone-phone2").style.display="none";
    document.getElementById("section_telephone_labelforcontrol-bracket").style.display="none";
    document.getElementById("section_telephone_labelforcontrol-bracketWithHyphen").style.display="none";
    document.getElementById("section_telephone_labelforcontrol-hyphen").style.display="none";
    document.getElementById("signup-telephone-areaCode2").style.display="";
    document.getElementById("signup-telephone-phone3").style.display="";
    document.getElementById("section_telephone_labelforcontrol-hyphen1").style.display="";
  }
 }*/
 
 /*function m_signup_telephone_Country_countrymenu_hideShowPhone()
 {
  var countryValue=document.getElementById("m-signup-telephone-country-countrymenu").value;
  //alert(countryValue);
  if( countryValue=="m1" || countryValue=="m 1" || country=="m684" || country=="m268" || country=="m242" || country=="m767" || country=="m809" || country=="m473" || country=="m876" || country=="m869" || country=="m758" || country=="m784" || country=="m868") {
    document.getElementById("m-signup-telephone-areaCode1").style.display="";
    document.getElementById("m-signup-telephone-phone1").style.display="";
    document.getElementById("m-signup-telephone-phone2").style.display="";
    document.getElementById("m-section-telephone-labelforcontrol-bracket").style.display="";
    document.getElementById("m-section-telephone-labelforcontrol-bracketWithHyphen").style.display="";
    document.getElementById("m-section-telephone-labelforcontrol-hyphen").style.display="";
    document.getElementById("m-signup-telephone-areaCode2").style.display="none";
    document.getElementById("m-signup-telephone-phone3").style.display="none";
    document.getElementById("m-section-telephone-labelforcontrol-hyphen1").style.display="none";
	}else{
    document.getElementById("m-signup-telephone-areaCode1").style.display="none";
    document.getElementById("m-signup-telephone-phone1").style.display="none";
    document.getElementById("m-signup-telephone-phone2").style.display="none";
    document.getElementById("m-section-telephone-labelforcontrol-bracket").style.display="none";
    document.getElementById("m-section-telephone-labelforcontrol-bracketWithHyphen").style.display="none";
    document.getElementById("m-section-telephone-labelforcontrol-hyphen").style.display="none";
    document.getElementById("m-signup-telephone-areaCode2").style.display="";
    document.getElementById("m-signup-telephone-phone3").style.display="";
    document.getElementById("m-section-telephone-labelforcontrol-hyphen1").style.display="";
  }
 }
 
 function m_signup_telephone_Country_countrymenu_clearPhone(){
	document.getElementById("m-signup-telephone-areaCode1").value="###";
	document.getElementById("m-signup-telephone-areaCode2").value="";
	document.getElementById("m-signup-telephone-phone1").value="###";
	document.getElementById("m-signup-telephone-phone2").value="####";
	document.getElementById("m-signup-telephone-phone3").value="";
 }*/

 
 function lostFocusFN(arg1,arg2,len){
    var l=document.getElementById(arg1).value.length;
    if(len==l){
      document.getElementById(arg2).focus();
    }
 }
 function phoneValidationUSA(arg,len){
    var ln=document.getElementById(arg).value.length;
    if(!(ln==len)){
      alert("Please Enter "+len+" Digit");
    }
 }
 function phoneValidationOthers(arg,min,max){
    var ln=document.getElementById(arg).value.length;
    if(ln<min || ln>max){
      alert("Please Enter Between "+min+" And "+max+" Digit");
    }
 }


