function getElement(id){ 
	return (document.getElementById) ? document.getElementById(id) : document.all[id];
}
	 
function fixURL(){
	var curr_val = getElement("account_name").value;
	var url_div = getElement("account_div");
	if(curr_val != ''){
		url_div.innerHTML = 'http://' + curr_val + '.bandvista.com';
		var fixed_name = curr_val.replace(/[^0-9a-zA-Z]/g, "");
		
		if (curr_val != fixed_name) getElement("account_name").value = fixed_name;
		url_div.innerHTML = 'http://' + fixed_name + '.bandvista.com';
	}else{
		url_div.innerHTML = 'http://accountname.bandvista.com';
	}
}

if(window.addEventListener){
	if (getElement("account_name"))
		window.addEventListener("load", fixURL, false);
}else if(window.attachEvent){
	if (getElement("account_name"))
		window.attachEvent("onload", fixURL);
}

function submitchangefontlistcategory(){
	document.forms['changefontlistcategory'].submit();
}

function submitform(formname){
	document.forms[formname].submit();
}

function stepactions(){
	document.forms['form3'].submit();
}

function verify() {
  var chk;
  chk = confirm("Do you want to finish the wizard ?");
  if(chk == false)
     return false;
  else
     return true;
}