// ==============================================================================================================================
// Class TemcoInterface1
// ==============================================================================================================================
TemcoInterface1.prototype = new Interface1;
TemcoInterface1.prototype.constructor = TemcoInterface1;
TemcoInterface1.superclass = Interface1.prototype;

function TemcoInterface1 (sId) {
	if ( arguments.length > 0 ) this.construct(sId);
}

//-----------------------------------------------------------------
// Method TemcoInterface1.construct()
//-----------------------------------------------------------------
TemcoInterface1.prototype.construct = function (sId) {
	TemcoInterface1.superclass.construct.call(this, sId);
}

//-----------------------------------------------------------------
// Method TemcoInterface1.login()
//-----------------------------------------------------------------
TemcoInterface1.prototype.login = function () {
	this.setArgument('prev_' + this.cmd, this.getArgument(this.cmd));
	this.setArgument(this.cmd, 'login');
	this.setAction(document.location.href);
	this.submit();
}

//-----------------------------------------------------------------
// Method TemcoInterface1.logout()
//-----------------------------------------------------------------
TemcoInterface1.prototype.logout = function () {
	this.setArgument('prev_' + this.cmd, this.getArgument(this.cmd));
	this.setArgument(this.cmd, 'logout');
	this.setAction(document.location.href);
	this.submit();
}

//-----------------------------------------------------------------
// Method TemcoInterface1.show_resend()
//-----------------------------------------------------------------
TemcoInterface1.prototype.show_resend = function () {
	this.setArgument('prev_' + this.cmd, this.getArgument(this.cmd));
	this.setArgument(this.cmd, 'show_resend');
	this.setAction(document.location.href);
	this.submit();
}

//-----------------------------------------------------------------
// Method TemcoInterface1.show_login()
//-----------------------------------------------------------------
TemcoInterface1.prototype.show_login = function () {
	this.setArgument('prev_' + this.cmd, this.getArgument(this.cmd));
	this.setArgument(this.cmd, 'show_login');
	this.setAction(document.location.href);
	this.submit();
}

//-----------------------------------------------------------------
// Method TemcoInterface1.resend()
//-----------------------------------------------------------------
TemcoInterface1.prototype.resend = function () {
	this.setArgument('prev_' + this.cmd, this.getArgument(this.cmd));
	this.setArgument(this.cmd, 'resend');
	this.setAction(document.location.href);
	this.submit();
}

//-----------------------------------------------------------------
// Method TemcoInterface1.gotoBasket()
//-----------------------------------------------------------------
TemcoInterface1.prototype.gotoBasket = function () {
	this.setAction('/producten/basket.php');
	this.setArgument(this.cmd, '');
	this.submit();
}

//-----------------------------------------------------------------
// Method TemcoInterface1.showMessage()
//-----------------------------------------------------------------
TemcoInterface1.prototype.showMessage = function (sType, sText, sSubText) {
	var iNumButtons = 0;
	for ( var i = 3; i < arguments.length; i++ )
		iNumButtons++;
	if ( sSubText )
		sText += ' ' + sSubText;
	if ( iNumButtons > 1 )
		return confirm(sText);
	else
		return alert(sText);
}