function goSelect(theform) {
    var familyname;

    with (theform) {
        familyname = options[selectedIndex].value;
        switch (familyname) {
            case "": 	//no url found for product
                theform.selectedIndex = 0;
                break;
            default:
                theform.selectedIndex = 0;
                window.location = currentlocation + "?family=" + familyname;
                break; 	//jump to product page
        }
    }
}
function startVideoDownload(theSelection) {

    var daFile;

    daFile = $('#' + theSelection).val();
    if (daFile != '0') {
        window.location.href = "http://download.wdbrand.com/videos/" + daFile;
    }

    return false;

}
function getFile(theform) {
    var filename;
    var newWin;

    with (theform) {
        filename =  options[selectedIndex].value;
        switch (filename) {
            case "": 	//no filename found
                //theform.selectedIndex = 0;
                break;
            default:
                //theform.selectedIndex = 0;
                //window.location.href = "http://download.wdbrand.com/videos/" + filename;
                //newWin = window.open('http://download.wdbrand.com/videos/' + filename, 'vWin', 'scrollbars=yes,resizable=yes,status=no,location=no,menubar=yes,width=10,height=10');
                //newWin.opener;
                break; 
					}
			}
			return false;
}
function getBannerFile(theform) {
    var filename;

    with (theform) {
        filename =  options[selectedIndex].value;
        switch (filename) {
            case "": 	//no filename found
               // theform.selectedIndex = 0;
                break;
            default:
               // theform.selectedIndex = 0;
               // window.location = "/collateral/bannerad/" +filename;
                //window.open("/collateral/bannerad/" +filename);
                break; 
					}
			}
			return false;
}
function startBannerDownload(theSelection,thedirectory) { 

    var daFile;

    daFile = $('#' + theSelection).val();
    if (daFile != '0') {
        window.location.href = "/collateral/bannerad/" + thedirectory + daFile + ".zip";
    }

    return false;

}
