/*
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * File Name: ajaxPost.js
 * 	ajaxPost Object.
 * 
 * File Authors:
 * 		Paul Moers (http://www.saulmade.nl, http://www.saulmade.nl/FCKeditor/FCKPlugins.php)
*/

// AxpObject constructor
var AxpObject = function ()
{
}

// initialize
AxpObject.prototype.initialize = function ()
{
	parentObject = this;

	// create requestObject
	if (window.XMLHttpRequest) // Mozilla, Safari, IE7, ...
	{
		requestObject = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) // IE
	{
		requestObject = new ActiveXObject('MsXml2.XmlHttp');
	}
	this.requestObject = requestObject;
	
	// set function to do on completion of the request
	//requestObject.onreadystatechange = this.onReadyStateChange;	
}

AxpObject.prototype.post = function (lheight)
{
	// set up the requestObject
	this.initialize();

	// make request
	requestObject.open('POST', 'pgIncSize.aspx', true);
	requestObject.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	
	requestObject.send('lheight=' + lheight);
}