function SwitchControl(currentCtrl, index, nextCtrl, p1, p2, p3, pe, pc){
	if(currentCtrl.value.length >= index){
		var obj = document.getElementById(nextCtrl);
		var vp1 = document.getElementById(p1);
		var vp2 = document.getElementById(p2);
		var vp3 = document.getElementById(p3);
		var vpe = document.getElementById(pe);
		var vpc = document.getElementById(pc);
		
		if(obj != null && vp1 != null && vp2 != null &&
			vp3 != null && vpe != null && vpc != null) {
		
			vpc.value = vp1.value + vp2.value + vp3.value + " " + vpe.value;
			if(obj != null) {
				return obj.focus();
			}
		} else {
			// alert('error');
		}
	}
}
