// String.js: v1.1.6.@20040306
var _spt=String.prototype;

_spt.trim = function(blnIgnoreCarriage, blnIgnoreInnerWhiteSpace) {
	var temp = this.replace(/^\s*/,"");
	temp = temp.replace(/\s*$/,"");
	
	blnIgnoreCarriage = blnIgnoreCarriage ? true : false;
	blnIgnoreInnerWhiteSpace = blnIgnoreInnerWhiteSpace ? true : false;
		
	if(blnIgnoreCarriage && blnIgnoreInnerWhiteSpace) {
		;
	}
	else if(blnIgnoreCarriage&&!blnIgnoreInnerWhiteSpace) {
		temp = temp.replace(/\t+/g," ");
		temp = temp.replace(/ +/g," ");
	}
	else if(!blnIgnoreCarriage && blnIgnoreInnerWhiteSpace) {
		temp=temp.replace(/(\n\r)+/g,"");
	}
	else if(!blnIgnoreCarriage && !blnIgnoreInnerWhiteSpace) {
		temp=temp.replace(/\s+/g," ");
	}
	
	if(temp==" ") {
		temp="";
	}
	
	return temp;
};

_spt.match = function(strRegExp, strOption) {
	var regEx = new RegExp(strRegExp, strOption ? strOption : "g");
	return this.match(regEx);
};

_spt.remove = function(strRegExp, strOption) {
	var temp = this;
	var regEx = new RegExp(strRegExp, strOption ? strOption : "g");
	temp = temp.replace(regEx, "");
	return temp;
};

_spt.test = function(strRegExp, strOption) {
	var regEx = new RegExp(strRegExp, strOption ? strOption : "g");
	return regEx.test(this);
};

// Validator.js: v1.1.5.@20040329
var bln_Validator_Proto_Called = false;

function Validator() {

	if(!bln_Validator_Proto_Called) {
		bln_Validator_Proto_Called = true;
		var _this = Validator.prototype;

		_this.isDefined = function(x) {
			if(typeof(x) == "undefined") {
				this._setStatusCode(this.NOT_OK);
				return false;
			}
			
			this._setStatusCode(this.OK);
			return true;
		};

		_this.isEmail=function(x) {
			var reg = "^[A-Za-z0-9]+([_\\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\\.-][A-Za-z0-9]+)*\\.([A-Za-z]){2,4}$";
			if(x.test(reg,"i")) {
				this._setStatusCode(this.OK);
				return true;
			}
			
			this._setStatusCode(this.NOT_OK);
			return false;
		};
	
		_this.isInteger = function(x) {
			x = "" + x;
			
			var intNumber = parseInt(x);
			
			if(!isNaN(intNumber)) {
				x = x.remove("^(0*)");/*0012==octal(12)*/
				if(x=="") x = 0;
			}
			
			intNumber = parseInt(x);
			if((!isNaN(intNumber)) && ((""+intNumber)==x)) {
				this._setStatusCode(this.OK);
				return true;
			}
			
			this._setStatusCode(this.NOT_OK);
			return false;
		};
	
		_this.isFloat = function(x) {
			x = "" + x;
			var re = new RegExp("^((\\d+\\.\\d+)|(\\d+))$");
			if (!re.test(x))
			{
				this._setStatusCode(this.OK);
				return false;
			}
			if(!isNaN(parseFloat(x.remove("^(0*)")))) {
				this._setStatusCode(this.OK);
				return true;
			}
			
			this._setStatusCode(this.NOT_OK);
			return false;
		};
	
		_this.isString = function(x) {
			
			if(typeof(x) == "string") {
				this._setStatusCode(this.OK);
				return true;
			}
			
			this._setStatusCode(this.NOT_OK);
			return false;
		};
		
		_this.isDate = function(intYear, intMonth, intDay) {
			if(intYear=="") {
				this._setStatusCode(this.YEAR_IS_EMPTY);
				return false;
			}
			
			if(intMonth=="") {
				this._setStatusCode(this.MONTH_IS_EMPTY);
				return false;
			}
			
			if(intDay=="") {
				this._setStatusCode(this.DAY_IS_EMPTY);
				return false;
			}
			
			var arMonths = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

			
			
			if((parseInt(intMonth) % 4) == 0) {
				arMonths[1]=29;
			}
			else {
				arMonths[1]=28;
			}
			
			var intMaxDay = arMonths[parseInt(intMonth)-1];
			
			if(parseInt(intDay) > intMaxDay) {
				this._setStatusCode(this.DAY_NOT_VALID);
				return false;
			}
			
			this._setStatusCode(this.OK);
			return true;
		};
		
		_this.getStatusCode = function() {
			return this._intStatusCode;
		};
		
		_this._setStatusCode = function(intCode) {
			this._intStatusCode=intCode;
		};
		
	}/* end if */

	/** 000000 */
	this.OK = 0
	/** 000001 */
	this.NOT_OK =1
	/** 000011 */
	this.DAY_IS_EMPTY = 3
	/** 000101 */
	this.MONTH_IS_EMPTY = 5
	/** 001001 */
	this.YEAR_IS_EMPTY = 9
	/** 010001 */
	this.DAY_NOT_VALID = 17
	/** 000000 */
	this._intStatusCode=this.OK;

}/* end Class */

//CBObject.js: v1.1.3.@20040326
var bln_CBObject_Proto_Called = false;

function CBObject(elmID) {

	if(!bln_CBObject_Proto_Called) {
		bln_CBObject_Proto_Called = true;
		var _this = CBObject.prototype;
		
		_this.getObject = function() { 
			return this._obj; 
		};
		
		_this.exists = function() { 
			return this.getObject()!=null;
		};
		
		_this._getObject = function(elmID) {
			var v = new Validator();
			
			if(!v.isString(elmID)) {
				return elmID;
			}
			
			if(document.getElementById) {
				elmID = document.getElementById(elmID);
			}
			else if(document.all) {
				elmID = document.all[elmID];
			}
			else if(document.layers) {
				elmID = this._getLayer(elmID);
			}
			else if(document.forms) {
			
				if(document.forms[elmID]) {
					elmID = document.forms[elmID];
				}
				else {
				
					for(var i=0; i<document.forms.length; i++) {

						if(document.forms[i][elmID]) {
							elmID = document.forms[i][elmID];
							break;
						}

					}
				
				}
			
			}
			else{
				elmID = null;
			}
			
			return elmID;	
		};
		
		_this._getLayer = function(elmID) {
			var i = 0;
			var objLayer = null;
			var objRoot = null;
			var objFound = null;
			
			if(!objRoot) {
				objRoot = window;
			}
			
			for(i=0; i<objRoot.document.layers.length; i++) {
			
				objLayer = objRoot.document.layers[i];
				
				if(objLayer.id==elmID) {
					return objLayer;
				}
				
				if(objLayer.document.layers.length) {
					objFound=this._getLayer(elmID,objLayer);
				}
				
				if(objFound) {
					return objFound;
				}
			
			}
			
			return null;
		};
		
	}
	
	this._obj = this._getObject(elmID);

}


//EventHandler.js: v1.1.4.@20040328
var bln_EventHandler_Proto_Called=false;

function EventHandler() {
	
	if(!bln_EventHandler_Proto_Called) {
		bln_EventHandler_Proto_Called = true;
		var _this = EventHandler.prototype;

		_this.addEventListener = function(elmID, strEventType, fncEventListener, blnUseCapture) {
			
			var v = new Validator();
		
			var obj = v.isString(elmID) ? new CBObject(elmID).getObject() : elmID;
			
			if(!obj) {
				return;
			}

			blnUseCapture = blnUseCapture ? true : false;
			
			strEventType = strEventType.toLowerCase();
			
			var strEval = "obj.on" + strEventType + "=fncEventListener";
			
			if(v.isDefined(obj.addEventListener)) {
				obj.addEventListener(strEventType, fncEventListener, blnUseCapture);/* mozilla;DOM1 */
			}
			else if(v.isDefined(obj.attachEvent)) {
				obj.attachEvent("on" + strEventType, fncEventListener);/* semi-DOM;ie5.5 */
			}
			else if(v.isDefined(obj.captureEvents)) {/* NN4- */ 
				obj.captureEvents(eval("Event." + strEventType.toUpperCase()));
				eval(strEval);
			}
			else {
				eval(strEval);
			}	
		};

		_this.removeEventListener=function(elmID, strEventType, fncEventListener, blnUseCapture){
			var v = new Validator();
			var obj = v.isString(elmID) ? new CBObject(elmID).getObject() : elmID;
								
			if(!obj) {
				return;
			}
			
			strEventType = strEventType.toLowerCase();
			
			var strEval = "obj.on" + strEventType + "=null";
			
			if(obj.removeEventListener) {
				obj.removeEventListener(strEventType, fncEventListener, blnUseCapture);
			}
			else if(obj.detachEvent) {
				obj.detachEvent("on"+strEventType, fncEventListener);
			}
			else if(obj.releaseEvents) {/* NN4 */
				obj.releaseEvents( eval("Event." + strEventType.toUpperCase()) ); 
				eval(strEval);
			}
			else {
				eval(strEval);
			}	
		};

	}/* end-if */
	
}/* end-class */

//FormObject.js: v1.0.4.@20040305
var bln_FormObject_Proto_Called = false;

/*Class FormObject Extends CBObject*/
FormObject.prototype=new CBObject();
function FormObject(objForm,strTask,strAction,strMethod,strTarget)
{
	
	if(!bln_FormObject_Proto_Called)
	{

		bln_FormObject_Proto_Called=true;
		var _this=FormObject.prototype;

		_this.setFieldValue=function(strField,strValue)
		{
			var obj=null;
			if(!(obj=this.getObject())) return;
			var objField=eval("obj."+strField);
			if(!objField)return;
			objField.value=strValue;
		}
		
		_this.getFieldValue=function(strField)
		{
			var obj=null;
			if(!(obj=this.getObject())) return null;
			var objField=eval("obj."+strField);
			if(!objField)return null;
			return objField.value;
		}

		_this.setTask=function(strTask)
		{
			var obj=null;
			if(!(obj=this.getObject())) return;
			this._strTask=strTask;
			this.setFieldValue("strTask",strTask);
		}

		_this.setTarget=function(strTarget)
		{
			var obj=null;
			if(!(obj=this.getObject())) return;
			this._strTarget=strTarget;
			obj.target=strTarget;
		}
		
		_this.setAnchor=function(strAnchor)
		{
			var obj=null;
			if(!(obj=this.getObject())) return;
			obj.action+="#"+strAnchor;
			this._strAction=obj.action;
		}

		_this.setAction=function(strAction)
		{
			var obj=null;
			if(!(obj=this.getObject())) return;
			this._strAction=strAction;
			obj.action=strAction;
		}
		
		_this.setMethod=function(strMethod)
		{
			var obj=null;
			if(!(obj=this.getObject())) return;
			this._strMethod=strMethod;
			obj.method=strMethod;
		}
		
		_this._getTask=function()
		{
			return this._strTask;
		}

		_this._getAction=function()
		{
			return this._strAction;
		}
		
		_this._getMethod=function()
		{
			return this._strMethod;
		}
		
		_this._getTarget=function()
		{
			return this._strTarget;
		}

		_this.getField=function(strField)
		{
			var obj=null;
			
			if(!(obj=this.getObject())) return null;
			
			var objField=eval("obj."+strField);
			
			if(!objField) return null;
			else return objField;
		}
		
		_this.post=function()
		{
			var obj=null;
			
			if(!(obj=this.getObject())) return;
			
			if(this._strTask) obj.strTask.value=this._strTask;
			
			if(this._strAction) obj.action=this._strAction;
			
			if(this._strMethod) obj.method=this._strMethod;
			
			if(this._strTarget) obj.target=this._strTarget;
			
			obj.submit();
		}
		
		_this.setFocus=function(strFieldName)
		{
			var obj=null;
			
			if(!(obj=this.getObject())) return;
			
			var objField=eval("obj."+strFieldName);
			
			if(objField) objField.focus();
		}
		
		_this.trimFieldValue=function(strFieldName,strOption,strRegEx) {
			var obj=null;
			if(!(obj=this.getObject()))return;
			var objField=eval("obj."+strFieldName);
			if(strRegEx) {
				objField.value=objField.value.remove(strRegEx);	
			}
			else if(strOption){
				strOption=strOption.toLowerCase();
				if(strOption=="numeric")objField.value=objField.value.remove("[^0-9\\.,-]");	
				if(strOption=="integer")objField.value=objField.value.remove("[^0-9-]");
				if(strOption=="mobile")objField.value = objField.value.remove("[^0-9]");
				if(strOption=="email")objField.value=objField.value.remove("[^A-Za-z0-9_\.\@\-]").toLowerCase();}
			return objField.value=objField.value.trim();}
		
	}/*end if*/
	
	/**/
	this._obj=objForm;

	this._strTask=strTask;
	this._strAction=strAction;
	this._strMethod=strMethod;
	this._strTarget=strTarget;
	
}


var bln_PagingForm_Proto_Called=false;

//PaginForm.js v.1.0.0@20040426
/*Class PagingForm Extends Form*/
PagingForm.prototype=new FormObject();
function PagingForm(objForm,strPagingFieldName){

	if(!bln_PagingForm_Proto_Called){
		
		bln_PagingForm_Proto_Called=true;
		var _this=PagingForm.prototype;
		
		_this.showPage=function(intPageNumber) {
			this.setFieldValue(this._getPagingFieldName(),intPageNumber);
			this.post();
		}

		_this._getPagingFieldName=function(){return this._strPagingFieldName;}
		
	}

	/*to synchronize with Form object*/
	this._obj=objForm;

	this._strPagingFieldName=strPagingFieldName;

}/*End Class*/


//LayerObject.js: v1.1.8.@20040427
var bln_LayerObject_Proto_Called=false;

/* Class LayerObject extends CBObject */
LayerObject.prototype = new CBObject();
function LayerObject(elmID) {

	if(!bln_LayerObject_Proto_Called){
		bln_LayerObject_Proto_Called = true;
		var _this = LayerObject.prototype;
		
		_this.getHeight = function() {
			var obj = null;

			if(!(obj = this.getObject())) {
				return 0;
			}

			var v = new Validator();
			if(v.isDefined(obj.offsetHeight)) {
				return obj.offsetHeight;/* mozilla;ie */
			}
			else if(v.isDefined(obj.style) && v.isDefined(obj.style.pixelHeight)) {
				return obj.style.pixelHeight;/* ie */
			}
			else if(v.isDefined(obj.clip) && v.isDefined(obj.clip.bottom)) {
				return obj.clip.bottom;/* ns */
			}
			
			return 0;
		};
	
		_this.setHeight=function(intHeight) {
			var obj = null;

			if(!(obj = this.getObject())) {
				return;
			}
			
			var v = new Validator();
			
			if(v.isDefined(obj.style) && v.isDefined(obj.style.height)) {
				this._setCssHeight(intHeight);
			}
			else if(v.isDefined(obj.style) && v.isDefined(obj.style.pixelHeight)) {
				obj.style.pixelHeight=intHeight;
			}
			else if(v.isDefined(obj.clip) && v.isDefined(obj.clip.bottom)) {
				obj.clip.bottom=intHeight;
			}
			
		};
	
		_this._setCssHeight=function(intHeight){
			var obj = null;

			if(!(obj = this.getObject())) {
				return;
			}
			
			var v = new Validator();
			
			var intPadTop = 0;
			var intPadBottom = 0;
			var intBorderTop = 0;
			var intBorderBottom = 0;
			var intCssHeight= 0;
			
			if(v.isDefined(document.defaultView) && 
					v.isDefined(document.defaultView.getComputedStyle)) {/* DOM 1 */
				
				intPadTop = this._getComputedCssStyle(obj, "padding-top");
				intPadBottom = this._getComputedCssStyle(obj, "padding-bottom");
				intBorderTop = this._getComputedCssStyle(obj, "border-top-width");
				intBorderBottom = this._getComputedCssStyle( obj, "border-bottom-width" );
			}
			else if(v.isDefined(obj.currentStyle) && 
					v.isDefined(document.compatMode) && document.compatMode=="CSS1Compat") {

				intPadTop = parseInt(obj.currentStyle.paddingTop);
				intPadBottom = parseInt(obj.currentStyle.paddingBottom);
				intBorderTop = parseInt(obj.currentStyle.borderTopWidth);
				intBorderBottom = parseInt(obj.currentStyle.borderBottomWidth);
			}
			else if(v.isDefined(obj.offsetHeight) && v.isDefined(obj.style.height)) {
			
				obj.style.height = intHeight+"px";
				obj.style.height = (2*intHeight - obj.offsetHeight) + "px";
				return;
			}
			
			if(isNaN(intPadTop)) {
				intPadTop=0;
			}
			
			if(isNaN(intPadBottom)) {
				intPadBottom=0;
			}
			
			if(isNaN(intBorderTop)) {
				intBorderTop=0;
			}
			
			if(isNaN(intBorderBottom)) {
				intBorderBottom=0;
			}
			
			intCssHeight = intHeight - (intPadTop + intPadBottom + intBorderTop + intBorderBottom);
			
			if(isNaN(intCssHeight) || intCssHeight<0) return;
			
			obj.style.height = intCssHeight+"px";
		};
	
		_this.getWidth=function() {
			var obj = null;
			if(!(obj = this.getObject())) {
				return 0;
			}

			var v = new Validator();

			if(v.isDefined(obj.offsetWidth)) {
				return obj.offsetWidth;
			}
			else if(v.isDefined(obj.style) && v.isDefined(obj.style.pixelWidth)) {
				return obj.style.pixelWidth;/* ie */
			}
			else if(v.isDefined(obj.clip) && v.isDefined(obj.clip.right)) {
				return obj.clip.right;/* ns */
			}
			
			return 0;
		};
	
		_this.setWidth = function(intWidth) {
			var obj = null;
			if(!(obj = this.getObject())) {
				return;
			}
			var v = new Validator();
			
			if(v.isDefined(obj.style) && v.isDefined(obj.style.width)) {
				this._setCssWidth(intWidth);
			}
			else if(v.isDefined(obj.style) && v.isDefined(obj.style.pixelWidth)) {
				obj.style.pixelWidth = intWidth;
			}
			else if(v.isDefined(obj.clip) && v.isDefined(obj.clip.right)) {
				obj.clip.right = intWidth;
			}
			
		};

		_this._setCssWidth = function(intWidth) {
			var obj = null;
			
			if(!(obj = this.getObject())) {
				return;
			}
			
			var v = new Validator();
			var intPadLeft = 0;
			var intPadRight = 0;
			var intBorderLeft = 0;
			var intBorderRight = 0;
			var intCssWidth = 0;
			
			if(v.isDefined(document.defaultView) && 
					v.isDefined(document.defaultView.getComputedStyle)) {/* DOM 1 */
		
				intPadLeft = this._getComputedCssStyle(obj, "padding-left");
				intPadRight = this._getComputedCssStyle(obj, "padding-right");
				intBorderLeft = this._getComputedCssStyle(obj, "border-left-width");
				intBorderRight = this._getComputedCssStyle(obj, "border-right-width");
			
			}
			else if(v.isDefined(obj.currentStyle) && 
					v.isDefined(document.compatMode) && document.compatMode=="CSS1Compat") {

				intPadLeft = parseInt(obj.currentStyle.paddingLeft);
				intPadRight = parseInt(obj.currentStyle.paddingRight);
				intBorderLeft = parseInt(obj.currentStyle.borderLeftWidth);
				intBorderRight = parseInt(obj.currentStyle.borderRightWidth);

			}
			else if(v.isDefined(obj.offsetWidth) && v.isDefined(obj.style.width)) {
				obj.style.width = intWidth+"px";
				obj.style.width = (2*intWidth - obj.offsetWidth) + "px";
				return;
			}
			
			if(isNaN(intPadLeft)) {
				intPadLeft=0;
			}
			
			if(isNaN(intPadRight)) {
				intPadRight=0;
			}
			
			if(isNaN(intBorderLeft)) {
				intBorderLeft=0;
			}
			
			if(isNaN(intBorderRight)) {
				intBorderRight=0;
			}
			
			intCssWidth = intWidth - (intPadLeft + intPadRight + intBorderLeft + intBorderRight);
			
			if(isNaN(intCssWidth) || intCssWidth<0) {
				return;
			}
			
			obj.style.width = intCssWidth+"px";
		};
		
		_this._getComputedCssStyle = function(obj, what) {
			return parseInt(document.defaultView.getComputedStyle(obj,"").getPropertyValue(what));
		};
			
		_this.getLeft = function() {
			var obj = null;
			if(!(obj = this.getObject())) {
				return 0;
			}
			
			var _vld = new Validator();
			
			if(_vld.isDefined(obj.style) && _vld.isDefined(obj.style.left)) {
			
				var ix = parseInt(obj.style.left);
				
				if(isNaN(ix)) {
					return 0;
				}
				else {
					return ix;
				}
			
			}
			else if(_vld.isDefined(obj.style) && _vld.isDefined(obj.style.pixelLeft)) {		
				return obj.style.pixelLeft;
			}
			else if(_vld.isDefined(obj.left)) {
				return obj.left;
			}
			
		};
		
		_this.setLeft = function(intLeft) {
			var obj = null;
			intLeft = parseInt(intLeft);
			
			if(isNaN(intLeft)) {
				return;
			}
			
			if(!(obj = this.getObject())) {
				return;
			}
			
			var _vld = new Validator();
			
			if(_vld.isDefined(obj.style) && _vld.isDefined(obj.style.left)) {
				obj.style.left = intLeft + "px";	
			}
			else if(_vld.isDefined(obj.style) && _vld.isDefined(obj.style.pixelLeft)) {
				obj.style.pixelLeft = intLeft;
			}
			else if(_vld.isDefined(obj.left)) {
				obj.left = intLeft;
			}
		};
		
		_this.getTop = function() {
			var obj = null;
			if(!(obj = this.getObject())) {
				return 0;
			}
			
			var _vld = new Validator();
			
			if(_vld.isDefined(obj.style) && _vld.isDefined(obj.style.top)) {
				
				var ix = parseInt(obj.style.top);
				
				if(isNaN(ix)) {
					return 0;
				}
				else {
					return ix;
				}
				
			}
			else if(_vld.isDefined(obj.style) && _vld.isDefined(obj.style.pixelTop)) {
				return obj.style.pixelTop;
			}
			else if(_vld.isDefined(obj.top)) {
				return obj.top;
			}
		};
		
		_this.setTop = function(intTop) {
			var obj = null;
			intLeft = parseInt(intTop);
			
			if(isNaN(intTop)) {
				return;
			}
			
			if(!(obj = this.getObject())) {
				return;
			}
			
			var _vld = new Validator();
			
			if(_vld.isDefined(obj.style) && _vld.isDefined(obj.style.top)) {
				obj.style.top = intTop + "px";
			}
			else if(_vld.isDefined(obj.style) && _vld.isDefined(obj.style.pixelTop)) {
				obj.style.pixelTop = intTop;
			}
			else if(_vld.isDefined(obj.left)) {
				obj.left=intLeft;
			}
		};
		
		_this.show = function() {
			var obj = null;
			
			if(!(obj = this.getObject())) {
				return;
			}
			
			var _vld = new Validator();
			
			if(obj.style && _vld.isDefined(obj.style.visibility)) {
				obj.style.visibility = "visible";
			}
			else if(_vld.isDefined(obj.visibility)) {
				obj.visibility = "show";/* nn */
			}
		};
	
		_this.hide = function() {
			var obj = null;
			
			if(!(obj = this.getObject())) {
				return;
			}
			
			var v = new Validator();
			
			if(obj.style && v.isDefined(obj.style.visibility)) {
				obj.style.visibility = "hidden";
			}
			else if(v.isDefined(obj.visibility)) {
				obj.visibility = "hide";/* NN */
			}
		};
				
		/* tekrar düzenlemek gerekebilir. */
		_this.changeContent = function(strNewHTML) {
			var obj = null;
			
			if(!(obj = this.getObject())) {
				return;
			}
						
			if(obj.innerHTML) {
				obj.innerHTML = strNewHTML;/* ie */
			}
			else {/* mozilla */
				if(obj.document && obj.document.open) {
					obj.document.open();
					obj.document.write(strNewHTML);
					obj.document.close();
				}
			}
		};
			
	}/* end if */	

	/* sync */
	this._obj=new CBObject(elmID).getObject();

}/* end class */

/* v.o. 14.11.'03 */
 var bln_WindowManager_Proto_Called=false;
 
 function WindowManager() {
	 if(!bln_WindowManager_Proto_Called){
	 	
		var _this=WindowManager.prototype;

		_this.createWindow=function(strURL,strName,intWidth,intHeight,strScroll){
			intLeft=((screen.width-intWidth)/2);
			intTop=((screen.height-intHeight)/2);
			args="width="+intWidth+",height="+intHeight+",left="+intLeft+",top="+intTop+",resizable=no,scrollbars="+strScroll+",status=0";
			remote=window.open(strURL,strName,args);
			if (remote!=null){if(remote.opener==null)remote.opener=self;}
			return remote;
		}
		
		_this.launchPreview=function(strURL){
			var previewWindow=this._previewWindow;
			if(previewWindow!=null){
				previewWindow.close();
				previewWindow=null;}
			this._previewWindow=window.open(strURL,'preview','');
			this._previewWindow.focus();
		}
		
	}
	 
	 this._previewWindow = null;
 }