var url;var windowname;var winwidth;var winheight;
function openScreenshot( windowname,winwidth,winheight,url){window.open( '/screenshot.php?imgsrc=' + url, 'screen' + windowname,'width=' + winwidth + ',height=' + winheight + 'scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');}
function openSeeDick(){window.open('/seedick/', 'tutorial','width=720,height=480,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');}
function openFeedback( page ){window.open('/feedback.php?page=' + page, 'tutorial','width=500,height=575,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');}
function dodownload( startDLURL, thankyouURL ) { return startdownload(startDLURL,thankyouURL); }
function downloadnm2( thankyouURL ) { return startdownload('/download/_start_download.php',thankyouURL); }
function downloadnm() { return startdownload('/download/_start_download.php','/download/thankyou.php'); }
function downloadmacnm() { return startdownload('/download/_start_download_mac.php','/download/thankyoumac.php'); }

function startdownload(fileURL,redirectURL)
{
    var isIe = (window.navigator.userAgent.toUpperCase().indexOf('MSIE') != -1);
    var isOpera = (window.navigator.userAgent.toUpperCase().indexOf('OPERA') != -1);

    if (isIe && !isOpera) {
        window.open(fileURL,'dlnow','toolbar=0,location=no,directories=0,status=0, scrollbars=no,resizable=0,width=1,height=1,top=0,left=0');
        window.focus();
        location.href = redirectURL + '?dldone=1';
    } else {
        location.href = redirectURL;
    }
	return false;
}


