// send to SNS 
function toSNS(sns, strTitle, strURL, id) {
    var snsArray = new Array();
    var strMsg = strTitle + " " + strURL;
    var image = "이미지경로";

    snsArray['twitter'] = "http://twitter.com/intent/tweet?text=" + encodeURIComponent(strTitle) + '&url=' + encodeURIComponent(strURL);
    snsArray['facebook'] = "http://www.facebook.com/share.php?u=" + encodeURIComponent(strURL);
    snsArray['band'] = "http://band.us/plugin/share?body=" + encodeURIComponent(strTitle) + "  " + encodeURIComponent(strURL) + "&route=" + encodeURIComponent(strURL);
    snsArray['blog'] = "http://blog.naver.com/openapi/share?url=" + encodeURIComponent(strURL) + "&title=" + encodeURIComponent(strTitle);
	
	var a = window.open(snsArray[sns], sns, 'width=845, height=500px'); //'width=745, height=335px'
	if (a) {a.focus();}

	/* $.ajax({
		url: '/inc/SnsShareCount',
		type: 'GET',
		data: { 'id': id },
		success: function (data) {
			console.log('snscntchk=' + data);

			//window.open(snsArray[sns]);
			var a = window.open(snsArray[sns], sns, 'width=845, height=500px'); //'width=745, height=335px'
			if (a) {
				a.focus();
			}
		},
		error: function (xhr) {
			alert('Error : SNS Share failed..');
		}
	}); */
}