
function validate()
{
	location.replace("retailer_registration_second.php");
}
function popupd(acctype,d)
{ 
	window.open("Ajs/feature_description.php?title="+d+"&&acctype="+acctype,'preview','width=800,height=400,toolbar=no,location=0,status=0,menubar=0,titlebar=0,scrollbars=0,resizable=0');
}
function popupcontactus()
{
	window.open("registercontact.php",'width=800,height=400,toolbar=yes,location=0,status=0,menubar=0,titlebar=0,scrollbars=0,resizable=0');
}
/**function goto(f)
{  
 if(f.opt.value==0)
 { 
   if(f.accsel_no.value==1)
   location.href="registration.php";//for preview account registration
   else if(f.accsel_no.value==2)
   location.href="previewM_premierM.php";
   else if(f.accsel_no.value==3)
   location.href="previewM_regularM.php";
   else if(f.accsel_no.value==4)
   location.href="premierplus_register.php";
   else if(f.accsel_no.value==5)
   location.href="regularplus_registration.php";
   else if(f.accsel_no.value==6)
   location.href="preview_buyer.php";
   else if(f.accsel_no.value==7)
   location.href="gift_buy_registration.php";
   else if(f.accsel_no.value==8)
   location.href="retailer_registration_first.php";
   else if(f.accsel_no.value==9)
   location.href="wholesale_registration_first.php";
   else if(f.accsel_no.value==10)
   location.href="affiliates_registration.php";
   else if(f.accsel_no.value==11)
   location.href="associates_registration_first.php";   
 }
 if(f.opt.value==1)
 { if(f.accsel_yes.value==1)
   ajax_acc_type('Ajs/personal1.php'); 
   else if(f.accsel_yes.value==2)
   ajax_acc_type('Ajs/initial_retailer.php');
   else if(f.accsel_yes.value==3)
   ajax_acc_type('Ajs/initial_wholesaler.php');
   else if(f.accsel_yes.value==4)
   ajax_acc_type('Ajs/initial_affiliates.php');
   else if(f.accsel_yes.value==5)
   ajax_acc_type('Ajs/initial_associates.php');
   else alert("Under Construction....");
 } 
}***/

function goto1(f){
alert("herere");
	location.href="member_upgrade.php";

}
function change_acc_type(val) //to change the list of drop down box according to yes or no
{ 

if(val==0)
  { document.getElementById('account_type_no').style.display='';
    document.getElementById('account_type_yes').style.display='none';
  }
  if(val==1)
  { document.getElementById('account_type_no').style.display='none';
    document.getElementById('account_type_yes').style.display=''; 
  }	  
}


function showHide(div,div2){

if(document.getElementById(div).style.display=='block'){
	document.getElementById(div).style.display='none';
	document.getElementById(div2).style.display='block';
	
}else if(document.getElementById(div).style.display=='none'){
document.getElementById(div).style.display='block';
document.getElementById(div2).style.display='none';
}
}