
function doNewsletterForm(){

    var nameValue = document.getElementByName('name').value;
    var companyValue = document.getElementByName('company').value;
    var phoneValue = document.getElementByName('phone').value;
    var emailValue = document.getElementByName('email').value;
    var howValue = document.getElementByName('how').value;
    
    document.write(nameValue);
    document.write(companyValue);
    document.write(phoneValue);
    document.write(emailValue);
    document.write(howValue);

}

function externalURL(theURL){

    var externalLink = window.open('http://' + theURL,'externalWindow','');
    // var externalLink = window.open('http://' + theURL,'externalWindow','height=700,width=1000');

}

function doExternalLink(){  
    if (!document.getElementsByTagName) return;  
    var anchors = document.getElementsByTagName("a");  
    for (var i=0; i<anchors.length; i++) {  
        var anchor = anchors[i];  
        if (anchor.getAttribute("href") &&  
            anchor.getAttribute("rel") == "external")  
            anchor.target = "_blank";  
    }  
}  
window.onload = doExternalLink;

function doInteractivePresentation(theFile,windowHeight,windowWidth){

    var interactivePresentation = window.open(theFile,'interactivePresentationWindow','height=' + windowHeight + ',width=' + windowWidth + '');

}

function doCaseStudyWindow(theFile){
    var theCaseStudy = window.open(theFile,'caseStudyWindow','height=310,width=430');   
}    

    
categoryBon = new Image(); 
categoryBon.src = "/images/our-work/category-B-on.gif";

categoryPon = new Image(); 
categoryPon.src = "/images/our-work/category-P-on.gif";

categoryWon = new Image(); 
categoryWon.src = "/images/our-work/category-W-on.gif";

categoryMon = new Image(); 
categoryMon.src = "/images/our-work/category-M-on.gif";



categoryBoff = new Image(); 
categoryBoff.src = "/images/our-work/category-B-off.gif";

categoryPoff = new Image(); 
categoryPoff.src = "/images/our-work/category-P-off.gif";

categoryWoff = new Image(); 
categoryWoff.src = "/images/our-work/category-W-off.gif";

categoryMoff = new Image(); 
categoryMoff.src = "/images/our-work/category-M-off.gif";


