// JavaScript Document
// REBT Self Help Form Script written by Will Ross
// Wednesday, Septmember 20, 2006

function DiBs()
{
	var IrrationalBelief          = document.form1.belief.value;
	var Inaccuracy                = document.form2.inaccurate.value;
	var Evidence                  = document.form3.truth.value;
	var WorstCase                 = document.form4.worst.value;
	var GoodThings                = document.form5.good.value;
	

	document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"");
	document.write("\"http://www.w3.org/TR/html4/loose.dtd\">");
	document.write("<html>");
	document.write("<head>");
	document.write("<title>Print Disputing of Irrational Beliefs Form ");
	document.write("</title>")
	document.write("</head>");
	document.write("<body>");
	document.write('<div align="center"><h1><font face="Verdana, Arial, Helvetica, sans-serif">Disputing of Irrational Beliefs (DIBS) Form</font> </h1>   ');
	document.write(' </div>');

// 1st of 5: Identify the Irrational Belief
	if (IrrationalBelief.length != 0)
	{
		document.write("<p><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\">What irrational Belief do I want to Dispute and surrender? ");
		document.write("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Answer:</b>&nbsp;");
		document.write( IrrationalBelief);
		document.write("<br><br></font></p>");
	}

// 2nd of 5: Explain why the belief is inaccurate
	if (Inaccuracy != 0)
	{
		document.write("<p><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\">Why is this Belief innacurate? ");
		document.write("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Answer:</b>&nbsp;");
		document.write( Inaccuracy);
		document.write("<br><br></font></p>");
	}

// 3rd of 5: Assess the truth of the belief
	if (Evidence != 0)
	{
		document.write("<p><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\">Does any evidence exist for the truth of my Belief?  ");
		document.write("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Answer:</b>&nbsp;");
		document.write( Evidence);
		document.write("<br><br></font></p>");
	}

// 4th of 5: Identify the bad things that could happen
	if (WorstCase != 0)
	{
		document.write("<p><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\">What is the worst that could happen if I don't get what I think I must have (or do get what I think I mustn't have)?   ");
		document.write("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Answer:</b>&nbsp;");
		document.write( WorstCase);
		document.write("<br><br></font></p>");
	}

// 5th of 5: Identify the good things you can make happen
	if (GoodThings != 0)
	{
		document.write("<font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\">What good things could I make happen if I don't get what I think I must have (or do get what I think I mustn't have)? ");
		document.write("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Answer:</b>&nbsp;");
		document.write( GoodThings);
		document.write("<br><br></font></p>");
	}

// Disclaimer
	{
		document.write("<p><font size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\"><hr><b>Warning</B>: This form should not be considered a substitute for individualized treatment with a mental health professional. If you are seeing a counselor or a therapist, it is recommended that you <b>print this page</b> and discuss your responses with him or her. ");
		document.write('<p align="center">&copy; Will Ross 2006</p>');
		document.write('<p align="center">Return to <a href="http://www.rebtnetwork.org/index.html" style="text-decoration:none; color:#0000FF">www.rebtnetwork.org</a></p>')
	}


	document.write("</body>");
	document.write("</html>");

	// SR: Other browsers require that you close the document object 
	document.close();

}
