﻿//loadedTimes=0;
mdWin=false;
mdSignup=false;
mdRetrieve=false;

function firePartnerPopup(myUrl)
{
	mdWin = window.open(myUrl,'mdragon','width=1020,location=no,menubar=no,resizable=yes,scrollbars=yes');
	mdWin.focus();
}

function fireSignup(myUrl)
{
	mdWin = window.open(myUrl,'mdragon','width=1020,location=no,menubar=no,resizable=yes,scrollbars=yes');
	mdWin.focus();
}

function fireRetrieve(myUrl)
{
	mdWin = window.open(myUrl,'mdragon','width=1020,location=no,menubar=no,resizable=yes,scrollbars=yes');
	mdWin.focus();
}

function addEvent( obj,type,fn )
{
	if ( obj.attachEvent )
	{
		obj['e'+type+fn] = fn; // This makes the function a child of the specified object. The key, which is placed in the object hash, is (hopefully) unique and won't collide with any other function additions.
		obj[type+fn] = function(){obj['e'+type+fn]( window.event );} // This line creates an anonymous function who, once executed, will fire the previously attached function - passing it the global event object. This whole function is being attached to the object so that it can be removed later, using the removeEvent() function.
		obj.attachEvent( 'on'+type, obj[type+fn] );
	} else
	{
		obj.addEventListener( type, fn, false );
	}
}

