

 function BR_PopUp(article_id, img, path){
   if ( path != "" ){
     window.open( path + "common/popup.php?id=" + article_id + "&legend=" + img + "","FSSS","toolbar=0,width=720,height=550,status=0,scrollbars=1,resizable=0,menubar=0");
 	 } else {
     window.open("common/popup.php?id=" + article_id + "&legend=" + img + "","FSSS","toolbar=0,width=720,height=550,status=0,scrollbars=1,resizable=0,menubar=0");
 	 }
 }
 
 
 function BR_PopUpPhoto(img){
   window.open( img,"FSSS","toolbar=0,width=550,height=550,status=0,scrollbars=1,resizable=0,menubar=0");
 }
 
 
 function isEmail( str ){
 
 	 var supported = 0;
	
			if ( window.RegExp ) {
				 var tempStr = "a";
				 var tempReg = new RegExp( tempStr );
				 if ( tempReg.test( tempStr ) )	{
					  supported = 1;
				 }
			}
			
			if ( !supported ){
				 return ( str.indexOf(".") > 2 ) && ( str.indexOf("@") > 0 );
			}
			
			var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
			var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
			
			return ( !r1.test(str) && r2.test(str) );
 
	}
	
	
	function addslashes (str) { 
   return (str+'').replace(/([\\"'])/g, "\\$1").replace(/\u0000/g, "\\0"); 
 }