function test(form) {var v1var ctrl=(document.ctrl)v1=ctrl.v1.value;ctrl.v1.value=v1;	if(v1.length <= 0) {	alert("\n You didn't entered a user code!")ctrl.v1.focus();ctrl.v1.select();return false;   }v2=ctrl.v2.value;ctrl.v2.value=v2;	if(v2.length <= 0) {	alert("\n You didn't entered a password!")ctrl.v2.focus();ctrl.v2.select();return false;   }}function test2(form) {var v1var ctrl2=(document.ctrl2)v1=ctrl2.v1.value;ctrl2.v1.value=v1;	if(v1.length <= 0) {	alert("\n Your company name is empty!")ctrl2.v1.value=" ";ctrl2.v1.focus();ctrl2.v1.select();return false;   }v1=ctrl2.v1.value;ctrl2.v1.value=v1;	if(v1.length < 2) {	alert("\n Your campany name must exist a minimum of 2 characters!")ctrl2.v1.focus();ctrl2.v1.select();return false;   }}