function common(){

	

}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}


function hide(all)
{
    for(var i=all.length-1; i>=0; i--){
        document.getElementById(all[i]).style.display = 'none';
    }	    
}

function show(toShow, all)
{
    hide(all);
	document.getElementById(toShow).style.display = 'block';
} 



function changepassword(el)
{
	if(el.value=='Change Password'){
		show('changepassword','');
		el.value='Keep Password';
		document.getElementById('newpasswd').value = '1';		
	}else{
		hide(['changepassword']);
		el.value='Change Password';	
		document.getElementById('newpasswd').value = '0';
	}
}

function checkout()
{
	if(DataValidation('frmCheckout', 'Continue')){
		window.document.frmCheckout.submit();
	}
}

function confirmDelete(form, args)
{
	if(confirm('are you sure you want to delete this ?')){
		window.location = form.action + "?" + args ;
	}
}

function confirmDeletion(msg, args) {
    if (confirm(msg)) {
        window.location = args;
    }
}







