

function get_frame_html( urlID1, urlID2, winID )
{
	var queryString = unescape(location.search.replace(/^[^\?]+\??/,'').toLowerCase());
	
	if (window.location.href.indexOf('?') < 0){	
		baseurl = window.location.href
	}else{
		baseurl = window.location.href.substring(0,window.location.href.indexOf('?'))
	}
	
	if (queryString.indexOf('?') >= 0){
		var appendchar='&amp;';
	}else{
		var appendchar='?';
	}
	queryString = queryString + appendchar + 'lflocationname=' + baseurl;
	var url = 'https://www.logiforms.com/formdata/user_forms/' + urlID1 + '/' + urlID2 + '/'+queryString;
	var html = '';
	html += '<iframe src="'+url+'" class="outframe" '; 
	html += ' name="' + winID + '" frameborder="0" scrolling="no"></iframe>'; 
	html += '<noframes>'; 
	html += '	<a href="#" onclick="window.open(\''+url+"',"; 
	html += '\'' + winID + '\', \'toolbar=no,width=600,height=400,left=20,top=20, screenX=20,screenY=20,status=no,scrollbars=yes, resizable=no\');return false">Click here to open the window</a>\n'; 
	html += '</noframes>'; 
	
	var container = document.getElementById('formcontainer');
	container.innerHTML = html;
}