﻿function OpenModalWindow(url) {
    var anchor = document.createElement("A");
    
    if (anchor) {
        anchor.setAttribute("href", url);
        anchor.setAttribute("id", "linkID");
        
        new Control.Modal('linkID',{
            opacity: 0.8,
            position: 'absolute',
            iframe: true, 
            width: 640, 
            height: 385
        });
    }
}

function InputIndication(id, remove) {    
    var elem = document.getElementById(id);

    if (remove && elem.value == "email@address.com") {
        elem.value = "";
        elem.setAttribute("class", "text");
    }
    else if (!remove && elem.value == "") {
        elem.value = "email@address.com";
        elem.setAttribute("class", "text indication");
    }
}