function verify(sMsg) {
    if (confirm(sMsg)) {
        return true;
    } else {
        return false;
    }
}

function skipPage() {
    with (document.forms['skipper']) {
        var iPage = cursor.options[cursor.selectedIndex].value;
    }
    document.forms['skipper'].submit();
}


function spawnEvil(desktopURL,windowName,width,height) {
     window.open(desktopURL,windowName,'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+width+',height='+height+',resizable=1');
}

function openPreview(sFieldName) {
    tempValue = document.forms[0].elements[sFieldName].value;
    
    if (tempValue == '') {
        alert("You need to attach a file first!");
    } else {
        spawnEvil('../_lib/util/upl_preview.php?src=file:/'+tempValue,'preview',400,300);
    }
}

function setClass(sId,sClass) {
	
	oItem = document.getElementById(sId);
	oItem.className = sClass;
}