function commonSearchKey(){
	with(document.form2){
		fOBJ = mail01.value;
		check = /.+@.+\..+/;
        tOBJ = toi02.value;
        check2 = /<a\shref=|<\/\w+>+|[[]url=/i;
        nOBJ = name.value;
        check3 = /http[:][/][/]|www[.]/i;
        aOBJ = tel01.value;
        check4 = /[^0-9]+/i;
        bOBJ = tel02.value;
        check5 = /[^0-9]+/i;
        cOBJ = tel03.value;
        check6 = /[^0-9]+/i;
       
 		if(name.value.length == 0){
			alert_msg("Please enter your name.",name);
			return false;
		} else if(nOBJ.match(check3)){
			alert_msg("Please enter your name.",name);
			return false;
		} else if(address01.value.length == 0){
			alert_msg("Please enter the country.",address01);
			return false;
		} else if(address02.value.length == 0){
			alert_msg("Please enter your city.",address02);
			return false;
		} else if(tel01.value.length == 0){
			alert_msg("Please enter your area code.",tel01);
			return false;
		} else if(aOBJ.match(check4)){
			alert_msg("Please enter the numbers.",tel01);
			return false;
		} else if(tel02.value.length == 0){
			alert_msg("Please enter a city area.",tel02);
			return false;
		} else if(bOBJ.match(check5)){
			alert_msg("Please enter the numbers.",tel02);
			return false;
		} else if(tel03.value.length == 0){
			alert_msg("Please enter your subscriber number.",tel03);
			return false;
		} else if(cOBJ.match(check6)){
			alert_msg("Please enter the numbers.",tel03);
			return false;
		} else if(mail01.value.length == 0){
			alert_msg("Please enter your email.",mail01);
			return false;
		} else if(!fOBJ.match(check)){
			alert_msg("E-mail address is not valid.",mail01);
			return false;
		} else if(mail02.value.length == 0){
			alert_msg("Email (confirm) Please enter.",mail02);
			return false;
		} else if(mail01.value != mail02.value){
			alert_msg("E-mail (confirmation) is incorrect.",mail02);
			return false;
		} else if(tOBJ.match(check2)){
			alert_msg("Please do not use tags.",toi02);
			return false;
		} else {
			return true;
		}
 	}
}

//alert
function alert_msg(msg, ctl) {
	alert(msg);
	if (ctl) ctl.focus();
}

$(document).ready(function () {
														
		$('#btnArea').each(function(i){
				var btnCObj =$(this);
				$(btnCObj).addClass('effective');
		});
		
		$('#btnArea2').each(function(i){
				var btnCObj =$(this);
				$(btnCObj).addClass('effective2');
		});

});
