﻿function openVideo()
{
    var win;
	win = window.open("LPComfy.html", "videoDemo", "top=0, left=0, width=760, height=640, status=no, resizable, scrollbars=no");
	window.focus;
}

function displayForm()
{
    if (document.getElementById("part2Form").style.display == 'none')
    {
        document.getElementById("part2Form").style.display = 'inline';
        document.getElementById("confirmBtn").style.display = 'none';
    }
}

// display the movie of trade if thankYouC.html
function displayMovie()
{
    document.getElementById('imgGraphC').style.display = 'none';
    document.getElementById('movieTrade').style.display = 'inline';
}

// display the movie of trade if thankYouC.html
function displayMovieSmall()
{
    document.getElementById('imgGraphD').style.display = 'none';
    document.getElementById('movieTradeS').style.display = 'inline';
}

// hide the movie of trade if thankYouC.html
function hideMovie()
{
    document.getElementById('imgGraphC').style.display = 'inline';
    document.getElementById('movieTrade').style.display = 'none';
}

// add to favorites
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

