public/javascripts/jslardo.js
function openModal(src, width) {
	if ( !width ) width = 680;
	//var elementId = 'orcodio';
	var originalYScroll = window.pageYOffset;
	//var modalFrame = $.modal('<iframe id="'+ elementId +'" src="' + src + '" width="' + width + '" onload="centerModal(this,' + originalYScroll + ')" style="border:0">', {
	var modalFrame = $.modal('<iframe src="' + src + '" width="' + width + '" onload="centerModal(this,' + originalYScroll + ')" style="border:0">', {
		closeHTML:'',
		containerCss:{
			backgroundColor:"#fff",
			borderColor:"#fff",
			width:width,
			padding:0,
			margin:0
		},
		overlayClose:true,
		autoPosition:false,
		modal:true,
		opacity:70
	});
}
function openModal(src, width) {
	if ( !width ) width = 680;
	//var elementId = 'orcodio';
	var originalYScroll = window.pageYOffset;
	//var modalFrame = $.modal('<iframe id="'+ elementId +'" src="' + src + '" width="' + width + '" onload="centerModal(this,' + originalYScroll + ')" style="border:0">', {
	var modalFrame = $.modal('<iframe src="' + src + '" width="' + width + '" onload="centerModal(this,' + originalYScroll + ')" style="border:0">', {
		closeHTML:'',
		containerCss:{
			backgroundColor:"#fff",
			borderColor:"#fff",
			width:width,
			padding:0,
			margin:0
		},
		overlayClose:true,
		autoPosition:false,
		modal:true,
		opacity:70
	});
}
function openModal ( src , width ) { if ( ! width ) width = 680 ; //var elementId = 'orcodio'; var originalYScroll = window . pageYOffset ; //var modalFrame = $.modal('<iframe id="'+ elementId +'" src="' + src + '" width="' + width + '" onload="centerModal(this,' + originalYScroll + ')" style="border:0">', { var modalFrame = $ . modal ( '<iframe src="' + src + '" width="' + width + '" onload="centerModal(this,' + originalYScroll + ')" style="border:0">' , { closeHTML : '' , containerCss : { backgroundColor : "#fff" , borderColor : "#fff" , width : width , padding : 0 , margin : 0 } , overlayClose : true , autoPosition : false , modal : true , opacity : 70 } ) ; }
open modal iframe popup
open modal iframe popup