function searchMultiCheck(obj1,obj2,obj3,obj4,obj5,obj6){

	if(obj1||obj2){
		var z1=""+obj1.value;
		var z2=""+obj2.value;
		if(z1.length>0 || z2.length>0){
			if(z1.length!=3 || checkNumber(z1)!=true){
				alert("郵便番号を7桁の半角数字で入力してください")
				obj1.focus();
				return false;
			}

			if(z2.length!=4 || checkNumber(z2)!=true){
				alert("郵便番号を7桁の半角数字で入力してください")
				obj2.focus();
				return false;
			}
		}
	}
	
	var tel1=""+obj3.value;
	var tel2=""+obj4.value;
	var tel3=""+obj5.value;
	if(tel1.length>0 || tel2.length>0 || tel3.length>0){
		if(tel1.length>4 || checkNumber(tel1)!=true ||
			tel2.length>6 || checkNumber(tel2)!=true ||
			tel3.length>6 || checkNumber(tel3)!=true){
			alert("電話番号を半角数字で正しく入力してください")
			obj3.focus();
			return false;
		}
	}
	else{
		alert("電話番号を半角数字で正しく入力してください")
		obj3.focus();
		return false;
	}

	if(obj6){
		var build="";
		for(i=0;i<obj6.length;i++){
			if(obj6[i].checked){
				build=obj6[i].value;
			}
		}
		if(build!="1"&&build!="2"){
			alert("住居タイプを正しく選択してください")
			obj6[0].focus();
			return false;
		}
	}

	if(obj1.form.random_k){
		var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
		var string_length = 48;
		var randomstring = '';
		for (var i=0; i<string_length; i++) {
			var rnum = Math.floor(Math.random() * chars.length);
			randomstring += chars.substring(rnum,rnum+1);
		}
		obj1.form.random_k.value=randomstring;
	}

	function checkNumber( checkint ) {
		var num;
		for( var j=0; j<checkint.length; j++ ) {
			num = checkint.charAt(j);
			if ( num < "0" || num > "9" ) {
				return false;
			}
		}
		return true;
	}
}

