/******************************************************************************/
/* Javascript für aikido-seishin-dojo.ch                                      */
/******************************************************************************/
/* checkForm()                                                                */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* validationInit():                                                          */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* shopValidation():                                                          */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* displayObject( popup, fix )                                                */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* hideObject( popup, fix )                                                   */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* frameSlide( obj, max, min ):                                               */
/* ----------------------------                                               */
/* - obj:		Objekt                                                            */
/* - max:		steuert Scroll-Geschwindigkeit                                    */
/* - min:		steuert Scroll-Geschwindigkeit                                    */
/* scrollt ein Objekt über den Bildschirm                                     */
/*----------------------------------------------------------------------------*/
function frameSlide(obj, max, min) {
	if (window.event.offsetX > 600) 
	{
		for (var i = min; i <= max; i++) 
		{
			delay(1);
			obj.scrollTo(i, 0);
		}
	}
	if (window.event.offsetX < 100) 
	{
		for (var i = max; i > min; i--) 
		{
			delay(1);
			obj.scrollTo(i, 0);
		}
	}
}
/*----------------------------------------------------------------------------*/
/* setInfos()                                                                 */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* buildString( vArray )                                                      */
/* ---------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* replaceAllSpecChars( text )                                                */
/* ---------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* selLink ( picture, imgNr, doc )                                            */
/* ---------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* products ( type, site, p, t, w, h ):                                       */
/* ------------------------------------                                       */
/* type:	Typ (Link zu Produkt oder Direkt                                    */
/* site:	Site                                                                */
/* p:			Bild                                                                */
/* t:			Text                                                                */
/* w:			Breite                                                              */
/* h:			Höhe                                                                */
/*----------------------------------------------------------------------------*/
function products ( type, site, p, t, w, h ) {
	if (type == "link") {
		window.open (site, "Demo", 'width='+ w + ',height=' + h + ',left=600,top=150');
	}
	else {
	  window.open('{p}', '{t}', 'width={w},height={h},left=600,top=150');
	}
}