The functions you are looking at are checkchecks() and checkconts().
here's the functions:
checkchecks():
Code:
function checkchecks(){
for (i=0; i<document.forms.radioform.group1.length; i++){
if(i == 0 && document.forms.radioform.group1[i].checked == true){
ischecked = 1;
isgroup1 = 1;
isgroup2 = 0;
}else if(i == 1 && document.forms.radioform.group1[i].checked == true){
ischecked = 0;
isgroup1 = 0;
isgroup2 = 0;
}
}
for (i=0; i<document.forms.radioform.group2.length; i++){
if(i == 0 && document.forms.radioform.group2[i].checked == true){
ischecked = 1;
isgroup1 = 0;
isgroup2 = 1;
}else if(i == 1 && document.forms.radioform.group2[i].checked == true){
ischecked = 0;
isgroup1 = 0;
isgroup2 = 0;
}
}
if(isgroup1 == 1){
alert('Make SURE this option is what you want. If you select another option after entering data, it will erase your data...');
a='Your Website Title:<br><input name="webtitle" type="text" size="30"> <a href="javascript:answerq(\'webtitle\');">Help?</a><br>\n';
document.getElementById("websitep").innerHTML = a;
}else{
alert('Make SURE this option is what you want. If you select another option after entering data, it will erase your data...');
a='- Does not want website title<br>\n';
document.getElementById("websitep").innerHTML = a;
}
if(isgroup2 == 1){
alert('Make SURE this option is what you want. If you select another option after entering data, it will erase your data...');
b='Your Website background picture (if any):<br><input name="webback" type="file" size="30"> <a href="javascript:answerq(\'webback\');">Help?</a><br>\n';
document.getElementById("websiteq").innerHTML = b;
}else{
alert('Make SURE this option is what you want. If you select another option after entering data, it will erase your data...');
a='- Does not want website background image<br>\n';
document.getElementById("websiteq").innerHTML = b;
}
alert('isgroup1:'+isgroup1+'|'+'isgroup2:'+isgroup2+'');
}
checkconts():
Code:
function checkconts(lvl){
if(document.forms.radioform.websitecontent == null || document.forms.radioform.websitecontent == null || document.forms.radioform.webtitle == null || document.forms.radioform.webback == null || document.forms.radioform.weblvl == null){
alert('Please select an option 1st...');
}else if(document.forms.radioform.websitecontent.value == null || document.forms.radioform.websitecontent.value == null || document.forms.radioform.webtitle.value == null || document.forms.radioform.webback.value == null || document.forms.radioform.weblvl.value == null){
alert('Please enter something into the box before continuing...');
}else{
a=document.forms.radioform.websitelvl.value = website(lvl);
document.getElementById('websitecontent').innerHTML = a;
}
}
Bookmarks