﻿// JScript File
 function confirm_delete()
{
    if(confirm('*** Warning ***\n\nThis will permanately delete the current post\nThis actions cannot be undone.\n\nDo you want to continue?') == true)
    {
        return true;
    }
    else
    {
        return false;
    }
}
        
function helpWindow()
{
    window.open("userGuide/index.html", "help", "width=600, height=300, resizeable");   
}

function previewWindow()
{
    var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
	document.getElementById("hEditorText").value = oEditor.GetXHTML();
	window.open("preview.aspx", "Preview", "Width=700, Height=500, resizeable, scrollbars");
}

function setWindowName(name)
{
    window.name = name;
}

function apply()
{
    opener.document.location.href="apply.aspx?job=" + document.getElementById("titleLabel").innerHTML;
    window.opener = "notempty";
    window.close();
}