function adjustIFrameSize(iframe)
{
	element = document.getElementById(iframe);


	if (element.contentDocument) // FF
	{
		element.height = element.contentDocument.documentElement.scrollHeight;
	}
	else // IE
	{
		element.height = element.contentWindow.document.body.scrollHeight;
	}

	return true;
}

function returnPageStrap()
{
	var random = Math.floor(Math.random() * 3);
	var image;
	switch(random)
	{
	case 0:
		image = 'tiger';
		break;
	case 1:
		image = 'tiger2';
		break;
	case 2:
		image = 'tiger3';
		break;
	}
	return '<div class="page-strap-wrapper-' + image + '">';
}

function toggle(obj) {
	var el = document.getElementById(obj);
	el.style.display = (el.style.display != 'none' ? 'none' : '' );
}

function OpenCPUWindow(targetUrl) {
    var width = 800;
    var height = 800;

    if (width > screen.availWidth) {
        width = screen.availWidth;
    }
    if (height > screen.availHeight) {
        height = screen.availHeight;
    }
    var features = "height=" + height + ",width=" + width + ",directories=no,menubar=yes,scrollbars=yes,resizable=yes,location=yes,toolbar=yes,status=yes";
    var win = window.open(targetUrl, "", features, true);
    win.focus();

}

function OpenInsuranceWindow(targetUrl) {
    var width = 1024;
    var height = 768;

    if (width > screen.availWidth) {
        width = screen.availWidth;
    }
    if (height > screen.availHeight) {
        height = screen.availHeight;
    }
    var features = "height=" + height + ",width=" + width + ",directories=no,menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,status=yes";
    var win = window.open(targetUrl, "", features, true);
    win.focus();

}

function OpenInsuranceWindow(targetUrl) {
    var width = 1024;
    var height = 768;

    if (width > screen.availWidth) {
        width = screen.availWidth;
    }
    if (height > screen.availHeight) {
        height = screen.availHeight;
    }
    var features = "height=" + height + ",width=" + width + ",directories=no,menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,status=yes";
    var win = window.open(targetUrl, "", features, true);
    win.focus();

}