
function pilaleur()
{	
	//window.alert("vous quittez le site du laboratoire Grünenthal.",aller("http://www.pilaleur.com"));
	if (confirm('vous quittez le site du laboratoire GrÃ¼nenthal.')) {
        window.location.href="http://www.pilaleur.com";
    }
}
function santegouv()
{	
	//window.alert("vous quittez le site du laboratoire Grünenthal.",aller("http://www.sante.gouv.fr"));
	if (confirm('vous quittez le site du laboratoire GrÃ¼nenthal.')) {
        window.location.href="http://www.sante.gouv.fr";
    }
}

var targBox = "scrollable";
function init() {
	var agt = navigator.userAgent.toLowerCase();
	var isMac = (agt.indexOf('mac') != -1);
	/*var isOpera = (agt.indexOf("opera") != -1);
	var IEver = parseInt(agt.substring(agt.indexOf('msie ') + 5));
	var isIE = ((agt.indexOf('msie')!=-1 && !isOpera && (agt.indexOf('webtv')==-1)) && !isMac);
	var isIE5win = (isIE && IEver == 5);*/
	var isIE5mac = ((agt.indexOf("msie") != -1) && isMac);
			 
	if(this.location.href.split("#")[1]){
		scrollDivToAnchor(this.location.href.split("#")[1]);
	}
	
	if (document.getElementById) {
		var atags = document.getElementsByTagName("A");
		for (var i=0;i<atags.length;i++) {
			var ca = atags[i];
			if (ca.href.indexOf("#") > -1) {
				ca.onclick = function() {
					scrollDivToAnchor(this.href.split("#")[1]);
				}
			}
		}
	}
	
	if(isIE5mac) {
		window.scroll(0,0);
		if(this.location.href.split("#")[1]){
			var a = this.location.href.split("#")[1];
			var b = document.getElementById("scrollable");
			var c = document.getElementById("scrollint");
			var pos = ((document.getElementById(a).offsetTop - b.offsetTop) * (-1)) + "px";
			c.style.top = pos;
		}
	}
}
function scrollDivToAnchor(a) {
	var b = document.getElementById(targBox);
	//alert("lien = " + a + " ### div = " + targBox );
	b.scrollTop = document.getElementById(a).offsetTop - b.offsetTop;
}

window.onload = init ;

function senden()
{
	var cstr,check;
	if(document.sternzeichen.frau.value == "" || document.sternzeichen.mann.value == ""){
	  if(document.sternzeichen.frau.value == ""){alert("Tu as oublié de sélectionner le signe astrologique d´elle");}
	  if(document.sternzeichen.mann.value == ""){alert("Tu as oublieé de sélectionner le signe astrologique de lui");}
	}else{
	  cstr = "frau=" + document.sternzeichen.frau.value;
	  cstr += "&mann=" + document.sternzeichen.mann.value;
	  open("/ll/ll_sharedfiles/cgi/cms_stern.pl?"+cstr,"Sternzeichen","width=500,height=380,screenX=0,screenY=0,top=0,left=0");
	}
}
function setzen(sternzeichen,wer){
     if(wer == 1){
        document.sternzeichen.frau.value = sternzeichen;
     }
     if(wer == 2){
        document.sternzeichen.mann.value = sternzeichen;
     }
}