		function facebook_share(url, custom_title) {
		
		    if(url == null || url == ''){
				u=location.href;
			}else{
				u='http://'+location.host+url;
			}
			var t=custom_title;
			if(t == null){
				t=document.title;
			}

			/*
			if (custom_title != null)	{
				t = custom_title;
			}*/
			window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
		
		function weibo_share(url, custom_title, image) {
		    if(url == null || url == ''){
				u=location.href;
			}else{
				u='http://'+location.host+url;
			}
			var t=custom_title;
			if(t == null || t == ''){
				t=document.title;
			}
			var image_param = '';
			if(image != null && image != ''){
				image_param = '&pic='+encodeURIComponent(image);
			}
			window.open('http://v.t.sina.com.cn/share/share.php?title='+encodeURIComponent(t)+'&url='+encodeURIComponent(u)+image_param,'sharer','toolbar=0,status=0,width=626,height=436');
		}
			
		
		function tencent_share(url, custom_title, image, appkey){
		    if(url == null || url == ''){
				u=location.href;
			}else{
				u='http://'+location.host+url;
			}
			var t=custom_title;
			if(t == null || t == ''){
				t=document.title;
			}
			
			var image_param = '';
			if(image != null && image != ''){
				image_param = '&pic='+encodeURI(image);
			}
			
			var appkey_param = '';
			if(appkey != null && appkey != ''){
				appkey_param = encodeURI(appkey);
			}
			
			var site = '';
			
			var u = 'http://v.t.qq.com/share/share.php?url='+encodeURIComponent(u)+appkey_param+'&site='+site+image_param+'&title='+encodeURI(t);
			window.open( u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );

		}
		
		function kaixin_share(url, custom_title, content) {
		    if(url == null || url == ''){
				u=location.href;
			}else{
				u='http://'+location.host+url;
			}
			t=custom_title;
			if(t == null){
				t=document.title;
			}
			c=content;
			if(c == null){
				//c='想讓你知';
				c = $('meta[name=description]').attr("content");
			}
			window.open('http://www.kaixin001.com/repaste/bshare.php?rtitle='+encodeURIComponent(t)+'&rurl='+encodeURIComponent(u)+'&rcontent='+encodeURIComponent(c),'sharer','toolbar=0,status=0,width=626,height=436');
		}

		function renren_share(url, custom_title, content) {
		    if(url == null || url == ''){
				u=location.href;
			}else{
				u='http://'+location.host+url;
			}
			t=custom_title;
			if(t == null){
				t=document.title;
			}
			window.open('http://share.renren.com/share/buttonshare.do?title='+encodeURIComponent(t)+'&link='+encodeURIComponent(u)+'&rcontent='+encodeURIComponent(c),'sharer','toolbar=0,status=0,width=626,height=436');
		}
		function submit_form(form){
			form.submit();
		}
