
function reSchedule(objectID, functionCall)
{
	schedule(objectID, functionCall);
}




function schedule(objectID, functionCall)
{
	if (objectID == "window")
	{
		var oldonload = window.onload;
		
		if (typeof window.onload != "function")
		{
			window.onload = functionCall;
		}
		else
		{
			window.onload = function()
			{
				oldonload();
				functionCall();
			}
		}
	}
	else if (document.getElementById(objectID))
	{
		functionCall();
	}
	else
	{
		setTimeout(function(){reSchedule(objectID, functionCall)}, 50);
	}
	
	return true;
}


function leavingSite(url)
{
	var strMsg = "You are now leaving Diners Club Australia website and entering a third party website.\n" +
					"Any information you may provide on the third party website shall be subject to the confidentiality and security terms of such websites and not the privacy policies of Diners Club Australia. Diners Club Australia shall not bear any responsibility for any unauthorised disclosure or breach of confidentiality in relation to such information provided.\n" +
					"Furthermore, any link to a third party website herein does not constitute an endorsement by Diners Club Australia of such a third party, their website or their products and/or services, and Diners Club Australia also makes no warranties as to the content of such websites.";
					
	if(confirm(strMsg))
	{
		window.open(url);
	}
}