﻿function removeCRLF(){
	if( !ua.Netscape ){ return true; }  // ブラウザ判別部分

	for ( i = 0; i < document.getElementsByTagName("*").length ; i++ ) {
		var obj = document.getElementsByTagName("*")[i];

		if( obj.getAttribute( 'title' ).match( /\x0d\x0a/ ) ){
			obj.setAttribute( 'title' , obj.getAttribute( 'title' ).replace( /\x0d\x0a/g , " " ) );
		}
	}
}


function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


var theAlert="【Windows】Right-click and select \"Save Link As ...\" from the context menu.\n【Macintosh】Click the button while pressing the Control Key and select \"Save Link As ...\" from the context menu. The file extension should be changed to \".wmv\"";

if (document.all || document.getElementById || document.layers) {
	if (document.layers) document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=disableLeftClick;
}

function disableLeftClick(e) {
	if (document.all) var na=event.srcElement.name;
	else if (document.getElementById || document.layers) var na=e.target.name;
	if (na=="leftClick") {
		if (navigator.appName=="Microsoft Internet Explorer" && (event.button==1 || event.button==3) || navigator.appName=="Netscape" && (e.which==1 || e.which==3)) {
			alert(theAlert);
			return false;
		}
		else if (navigator.userAgent.indexOf("Mac")!=-1) return false;
	}
}