//für Promotion Shampoo NL

var PopupWidth = 736;

if (navigator.userAgent.indexOf("Netscape") != -1) {
	PopupWidth = PopupWidth  ;
	
} else if (navigator.userAgent.indexOf("MSIE") != -1) {
	PopupWidth = PopupWidth + 20 ;
	
} else if (navigator.userAgent.indexOf("Firefox") != -1) {
	PopupWidth = PopupWidth ;
	
} else {
	PopupWidth = PopupWidth;
}

//
//option1 = betrifft die 'Locationleiste'. bitte mit 'yes' ODER 'no' definieren.
//option2 = betrifft die 'Menuezeile'. bitte mit 'yes' ODER 'no' definieren.
//option3 = betrifft das Attribut 'resizable'. bitte mit 'yes' ODER 'no' definieren.
//option4 = betrifft die 'Scrollbalken'. bitte mit 'yes' ODER 'no' definieren.
//option5 = betrifft die 'Statuszeile'. bitte mit 'yes' ODER 'no' definieren.
//option6 = betrifft die 'Werkzeugleiste'. bitte mit 'yes' ODER 'no' definieren.

function newwin(url,name,weite,hoehe,option1,option2,option3,option4,option5,option6) {
	var links = (screen.availWidth - weite ) / 2;   //wenns denn zentriert sein soll
	var oben = (screen.availHeight - hoehe) / 2;  //ansonsten einfach zahlen eintragen
	win =window.open(url,name,'width='+weite+',height='+hoehe+',left='+links+',top='+oben+',screenX='+links+',screenY='+oben+',location='+option1+',menubar='+option2+',resizable='+option3+',scrollbars='+option4+',status='+option5+',toolbar='+option6);
	win.focus();
}







var win = null;
function newwindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',toolbar=no,status=no,resizable=yes'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}


function checknum( field ) {
    var tmpString ="";
    var seperator = false;
    for (i=0;i<=field.value.length;i++){
        c=field.value.charAt(i);
        if ((c=="1")|(c=="2")|(c=="3")|(c=="4")|(c=="5")|(c=="6")|(c=="7")|(c=="8")|(c=="9")|(c=="0"))
            tmpString+=c;
        else if ((c==",")|(c=="."))
            if (!seperator){
                tmpString+=".";
                seperator=true;
            }
    }

    if (tmpString != field.value)
       field.value=tmpString;
}




function chkformrec()
{


if(document.recommentform.name.value==""||document.recommentform.name.value=="Bitte geben Sie Ihren Namen ein")
{ document.recommentform.name.value= "Enter your name, please";
  document.recommentform.name.focus();
  document.recommentform.name.select();
  return false;
}


if(document.recommentform.email.value==""||document.recommentform.email.value.indexOf('@')==-1||document.recommentform.email.value=="Bitte geben Sie Ihre EMail-Adresse ein")
{ document.recommentform.email.value= "Your E-Mail-Adress, please";
  document.recommentform.email.focus();
  document.recommentform.email.select();
  return false;
}


if(document.recommentform.rname.value==""||document.recommentform.rname.value=="Name des Empfängers")
{ document.recommentform.rname.value= "The name of the recipient";
  document.recommentform.rname.focus();
  document.recommentform.rname.select();
  return false;
}


if(document.recommentform.remail.value==""||document.recommentform.remail.value.indexOf('@')==-1||document.recommentform.remail.value=="Email-Adresse des Empfängers")
{ document.recommentform.remail.value= "Recipient E-Mail-Adress, please";
  document.recommentform.remail.focus();
  document.recommentform.remail.select();
  return false;
}

document.recommentform.submit();

}

	function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}



function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function open_window() {
window.open('http://www.colgateservices.com/nl/_ads/palmolive_cashmere/index.html','Photo','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=732,height=422');
}
