// JavaScript Document
$.fn.extend({ reset: function() {
  return this.each(function() {
	  $(this).is('form') && this.reset();
  });
}});
var is_null = function (proto){
	var results;		
	var textarray = proto.split("");
	for(var i=0;i<textarray.length;i++){
		if (textarray[i] == " " || textarray[i] == "¡@") {
			textarray[i]="";
		}
	}
	results = textarray.join("");
	if (results == "") {
		return true ;
	} else {
		return false ;
	}	
}
var  is_mail = function (strEmail) {
	if (strEmail.search(/^\w+((-\w+)|(.\w+))*@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+)*.[A-Za-z]+$/) != -1) {
		if( strEmail.indexOf(" ") >=0 ){
			return false;
		}
		var index1 = strEmail.indexOf("@");
		var index2 = strEmail.lastIndexOf(".");
		if( (index2 > index1) && ( index1 > 0 ))
			return true;
	} 
	return false;
}
var h_redio = function(){
	if($(this).attr('checked','checked')){
		$('.'+$(this).attr('className')).attr('checked','');
		$(this).attr('checked','checked');
	}
}
/* 鎖右鍵
$(document).ready(function(){   
   $(document).bind("contextmenu",function(e){   
	   return false;   
   });   
});
*/
