
function checkform(p)
{
var xFick=true;

if(p==1 && !profil(document.send1.titel,1)){xFick=false;}
else if(p==2 && !profil(document.send2.beschr,2)){xFick=false;}
else if(p==3 && !profil(document.send3.sexwunsch,3)){xFick=false;}
else if(p==4 && !profil(document.send4.sexerfahrung,4)){xFick=false;}
else if(p==5 && !profil(document.send5.hobbie,5)){xFick=false;}
else if(p==6){
if(!profil(document.send1.titel,1) || !profil(document.send2.beschr,2) || !profil(document.send3.sexwunsch,3) ||  !profil(document.send4.sexerfahrung,4) || !profil(document.send5.hobbie,5)){
xFick=false;
}else{
var sendform=document.send6;
sendform.titel.value=document.send1.titel.value;
sendform.beschr.value=document.send2.beschr.value;
sendform.sexwunsch.value=document.send3.sexwunsch.value;
sendform.sexerfahrung.value=document.send4.sexerfahrung.value;
sendform.hobbie.value=document.send5.hobbie.value;
}}

return xFick;
}
  
function profil(rObj,x) {
	
if(rObj.value==''){
if(x==1){
document.getElementById("f1").style.color="red";
document.getElementById("s1").style.visibility="visible";}
else if(x==2){
document.getElementById("f2").style.color="red";
document.getElementById("s2").style.visibility="visible";}
else if(x==3){
document.getElementById("f3").style.color="red";
document.getElementById("s3").style.visibility="visible";}
else if(x==4){
document.getElementById("f4").style.color="red";
document.getElementById("s4").style.visibility="visible";}
else if(x==5){
document.getElementById("f5").style.color="red";
document.getElementById("s5").style.visibility="visible";}
rObj.select();
rObj.focus();
return false;
}
return true;}  


