function bookmark()
{
	var url = eval(self.location);

	var title = document.title;

	var msg = 'Could not create a bookmark on your client.\n\nTo return to ' + title + ' you must manually create a bookmark to: \n' + url + '.';

	try {
		if (window.sidebar) { // Mozilla Firefox Bookmark
			return window.sidebar.addPanel(title, url, "");
		} else if( window.external ) { // IE Favorite
			return window.external.AddFavorite( url, title);
		} else if(window.opera && window.print) { // Opera Hotlist
			alert(msg);
		}
	}
	catch(err)
	{
		alert(msg);
	}
}


function checkGeschenkefinderForm( sFormLocation )
{
 	var bGenderFemail	= document.forms[sFormLocation].gender[0].checked;
 	var bGenderMail 	= document.forms[sFormLocation].gender[1].checked;
 	var iAge 			= document.forms[sFormLocation].age.value;
 	var iCategorie		= document.forms[sFormLocation].categorie.value;
 	var iPrice			= document.forms[sFormLocation].price.value;

 	if( bGenderFemail==false
 	&& bGenderMail==false
 	&& iAge == 0
 	&& iCategorie == 0
 	&& iPrice == 0 )
 	{
 		return false;
 	}

	return true;
}


function submitForm( sFormLocation )
{
 	if( checkGeschenkefinderForm( sFormLocation ) == true )
 	{
 		document.forms[sFormLocation].submit();
 	}
 	else
 	{
 		alert('Bitte w�hlen Sie mindesten eine Suchoption aus!');
 	}
}

function RotationsbannerLightWindow( vScsUrl )
{

	/**
	href			// The hyperlink for the window
	title 			// Title of window
	author 			// Author of window
	caption 		// The Caption for the window
	rel 			// Set the rel tag
	top 			// Top position of the window
	left 			// Left position of the window
	type 			// The type of the window you want to change it too
	showImages 		// How many images to show
	height 			// The height of the window
	width 			// The width of the window
	loadingAnimation 	// Make the Loading Cover skip the animation
	iframeEmbed 		// Emebed the Media into an iframe instead of a div
	form
	*/

	try
	{
		myLightWindow.activateWindow({
	        href: vScsUrl,
	        width:950,
	        height:688,
	        type: 'external',
	        iframeEmbed:true});
	}
	catch (e){}
}

function showLightWindow(url, title, width, height)
{
  if (!myLightWindow)
  {
    myLightWindow = new lightwindow();
  }

  myLightWindow.activateWindow({
    href: url,
    title: title,
    width: width,
    height: height,
    iframeEmbed: true,
    type: 'external'
  });
}

function submitIE6(Element)
{
	Selector.matchElements(Element, 'button').each(function(oButtonNode){
		Event.observe(oButtonNode, 'click',
				function (oEvent) {
					if (!oButtonNode.onclick)
					{
						Element.submit();
					}
				}
			);
	} );
}