
var d = new Date();
var curr_year = d.getFullYear();

function popUp(URL, pWidth, pHeight) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + pWidth + ",height=" + pHeight + ",left = 50,top = 50');");
}

function UpdateThankYouURL()
{
    var objMailingThankyouURL = document.getElementsByName('MailingThankyouURL').item(0);
    var objname1 = document.getElementsByName('name1').item(0);
    var objemail1 = document.getElementsByName('email1').item(0);
    objMailingThankyouURL.value += '?name=' + objname1.value + '&email=' + objemail1.value;
}

function PopupFlvPlayer(pUrl,strOptions) {
	
	strOptions += ", screenX=50, screenY=50";
	strOptions += ",resizable=1, statusbar=0, toolbar=0, location=0, menubar=0, scrollbars=0";
    window.open(pUrl, "_blank", strOptions);
}

function post_to_url(path, params, method) {
    method = method || "post";

    var form = document.createElement("form");
    form.setAttribute("method", method);
    form.setAttribute("action", path);

    for (var key in params) {
        var hiddenField = document.createElement("input");
        hiddenField.setAttribute("type", "hidden");
        hiddenField.setAttribute("name", key);
        hiddenField.setAttribute("value", params[key]);

        form.appendChild(hiddenField);
    }

    document.body.appendChild(form);
    form.submit();
}

function RemoveBackground(id) {
    document.getElementById(id).setAttribute('class', 'iframeComplete');
}
