function addEvent( obj, type, fn ) {
	if ( obj.attachEvent ) {
		obj['e'+type+fn] = fn;
		obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
		obj.attachEvent( 'on'+type, obj[type+fn] );
	} else
		obj.addEventListener( type, fn, false );
}
function removeEvent( obj, type, fn ) {
	if ( obj.detachEvent ) {
		obj.detachEvent( 'on'+type, obj[type+fn] );
		obj[type+fn] = null;
	} else
		obj.removeEventListener( type, fn, false );
}
function frameset(navig, content,website) {
	var loadIt = false;
	var newURL = '/www/dev_center.nsf/frameset?OpenAgent';
	if (website) newURL = newURL + '&website=' + website;
	if (navig) newURL = newURL + '&navig=' + navig;
	if (content) newURL = newURL + '&content=' + content;
	if (website == "jp") {
		if (top.frames.length < 1) {
			loadIt = true;
		}
	} else {
		if (top.frames.length < 2) {
			loadIt = true;
		}
	}
	if (loadIt) top.location.replace(newURL);
}
function redirect(docURL) {
	if (location.href.search(/noredirect/i) > 0) {
		docURL= "";
	}
	if (unescape(window.location.search).search(/&noredirect/) > 0) {
		docURL = "";
	}
	if (top.frames.length < 2) {
		docURL = "";
	}
	if(docURL !="") parent.content.location.href = docURL;
}

