$(document).ready(function()
{

	
	
	
	$("#departure_dialog").dialog({
	    bgiframe: true,
        resizable: false,
        autoOpen: false,
        height: 375,
        width: 300,
        modal: true,
		overlay: { backgroundColor: '#000', opacity: 0.5 },
        buttons: { 'Continue': function() {
			window.open(curURl,'','statue=1,toolbar=1,location=1,menubar=1,directories=1,resizable=1,scrollbars=1');
			$(this).dialog('close');
        },
		'Cancel' :function(){
		$(this).dialog('close');
		}
            
        }
	});
	$("#email_notice").dialog({
		bgiframe:true,
		resizable: false,
		autoOpen: false,
		height: 250,
		width:300,
		modal: true,
		overlay:{ backgroundColor: '#000', opacity: 0.9 },
		buttons:{'Continue': function() {
		var ur = $("#hspan").attr("rel");
		document.getElementById('mailclick').href = ur;
		if(navigator.appName == "Microsoft Internet Explorer"){
		document.getElementById('mailclick').click();
		}
		else
		{
		window.location.href= document.getElementById('mailclick').href;
		}
			//
			$(this).dialog('close');
			return false;
		},
		'Cancel': function(){
		$(this).dialog('close');
		}
		
		}
	});

});
