
function printItem(itemID)
{
	window.showModalDialog('common/printIndexItem.aspx?id=' + itemID);
}
function sendItemToFriend(itemID)
{
	window.showModalDialog('common/sendItemToFriend.aspx?id=' + itemID);
}

var regExp = /<\/?[^>]+>/gi;
function ReplaceTags(xStr){
	xStr = xStr.replace(regExp,"");
    return xStr;
}



function opendoc(x)
{
	switch(x)
	{
	case 1: 
		document.location.href = 'index.aspx?id=1872';
		break;
	case 2:
		document.location.href = 'index.aspx?id=1845';
		break;
	case 3:
		document.location.href = 'index.aspx?id=1847';
		break;
	case 4:
		document.location.href = 'index.aspx?id=1848';
		break;

	}
}

function SetJS(location,tag){
var objRef = document.getElementById('__BANNER_' + location);
objRef.innerHTML = tag


}
function SetFlashJS(location,d,s,tag,width,height){
//var objRef = parent.document.getElementById('');
CreateFlashControl('__BANNER_' + location,width,height,tag,"Transparent","");
}

function populateIframe(langID,mainID)
{

var frm;
				var acronyms = document.getElementsByTagName("acronym"), ids = [];
				
				for(var i=0,len=acronyms.length; i<len; i++)
					ids[ids.length] = acronyms[i].id.split("_BANNER_")[1];

				if(!ids.length) ;
				frm = document.getElementById("banners_load_frame");
				frm.src = "/BannersHandler.axd?mainID=" + mainID+ "&langID=" + langID + "&ids=" + ids.join(",");
				
				
				
}

	function showPicture(src)
	{
		window.open('ImageView.aspx?img='+src,'picture','scrollbar:no statusbar:no')
	}


var bpss={
    
    bubble: function(id) {
		if($(id)) {
			if($(id).visible() == false) { /*$(id).show();*/ Effect.Appear(id); }
			else { $(id).hide(); }
		}
	}
}
function WindowOpen(address)
{
	window.open(address,"demo","width=1004,height=700,scrollbars=0,resizable=1,toolbar=0,status=0,location=0,menubar=0,top=0,left=0")
}
