SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 35 of 35
  1. #26
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    London, UK
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah i spot that now. God knows how i ended up with the same script at the end of the page - i was a bit tired when working on it but i am still surprised. I spent hours looking at the script .... thinking i had done something wrong. Oh well... finally worked out the puzzle - thanks to you. Cheers!
    Add your web design / hosting companies to my directory - Web Hosting Directory
    Want to join our panel of experts? - Hosting Forums ( top right of forums -expert drop down box for more info ).

  2. #27
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    London, UK
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh dear... i guess i am not as bright as i first thought. I tryed to adapt the script on another form page and run into some problems. The form is at http://www.hostcompanies.com/formtestdedicated.htm
    The script is below.
    I put in bold where the problems/errors are.
    Any help appreciated.

    function checkForm()
    {
    var f = document.form1;
    if (f.nameofpackage.value == '')
    {
    alert('You need to enter a name for this package.');
    f.nameofpackage.focus();
    return false;
    }
    else if (f.packagewebaddress.value == '')
    {
    alert('You need to enter a web address for this package.');
    f.packagewebaddress.focus();
    return false;
    }
    else if (f.description.value == '') {
    alert('You need to enter a description for this web hosting package.');
    f.description.focus();
    return false;
    }
    else if (f.currency.selectedIndex == 0)
    {
    alert('You need to select a currency type for this package.');
    f.currency.focus();
    return false;
    }
    else if (f.monthlyfee.value == '' && (f.yearlyfee.value == ''))
    {
    alert('You need to enter a price set by year or month for this hosting package.');
    f.monthlyfee.focus();
    return false;
    }
    Below has problems, not sure if i adapted it correct
    var ips = new Array('UnlimitedIPs');
    for (var isOK = false, s = 0; s < ips.length; ++s)
    {
    if (f.elements[ips[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if
    (f.numberofIPs.value == ''&& (!isOK))
    {
    alert('You need to enter the number of ips allowed for this hosting package.');
    f.numberofIPs.focus();
    return false;
    }
    else if (f.currency.selectedIndex == 0)
    {
    alert('You need to select a currency type for this package.');
    f.currency.focus();
    return false;
    }
    else if (f.connectionspeed.selectedIndex == 0)
    {
    alert('You need to select a connection speed for this package.');
    f.connectionspeed.focus();
    return false;
    }
    else if (f.connectionspeed.options[f.connectionspeed.selectedIndex].text == 'Others' &&
    f.connectionother.value == '')
    {
    alert('Please enter "other" connection speed for this package.');
    f.connectionspeed.focus();
    return false;
    }
    var serveroptions = new Array('aolserver' , 'apache' , 'ntiis' , 'netscape' , 'oreilly' , 'others');
    for (var isOK = false, s = 0; s < serveroptions.length; ++s)
    {
    if (f.elements[serveroptions[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (!isOK)
    {
    alert('You need to select a server option.');
    f.aolserver.focus();
    return false;
    }
    else if (f.others.checked && f.serverothers.value == '')
    {
    alert('You need to specify the "Other" server options.');
    f.serverothers.focus();
    return false;
    }
    var platform = new Array('cobaltraq' , 'freebsd' , 'linux' , 'novell' , 'mac' , 'sunsolaris' , 'unix' , 'winnt2000' , 'osothers');
    for (var isOK = false, s = 0; s < platform.length; ++s)
    {
    if (f.elements[platform[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (!isOK)
    {
    alert('You need to select a platform option.');
    f.cobaltraq.focus();
    return false;
    }
    else if (f.osothers.checked && f.osotherstext.value == '')
    {
    alert('You need to specify the "Other" platform options.');
    f.osotherstext.focus();
    return false;
    }
    else if (f.processorType.selectedIndex == 0)
    {
    alert('You need to select the processor used in this hosting package.');
    f.processorType.focus();
    return false;
    }
    else if (f.processorSpeed.value == '')
    {
    alert('You need to select the processor speed for this hosting package.');
    f.processorSpeed.focus();
    return false;
    }

    Below not working
    if (f.amountOfRam.value == '' && (f.ramtype[0].unchecked || f.ramtype[1].unchecked))
    {
    alert('You need to enter the amount of Ram.');
    f.amountOfRam.focus();
    return false;
    }
    else if (f.amountOfRam.value = '' && f.ramtype[0].checked || f.ramtype[1].checked)
    {
    alert('You have selected a monthly a ram type but not included the amount of ram!');
    f.amountOfRam.focus();
    return false;
    }

    else return true;
    }
    Add your web design / hosting companies to my directory - Web Hosting Directory
    Want to join our panel of experts? - Hosting Forums ( top right of forums -expert drop down box for more info ).

  3. #28
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Two obvious problems:
    this -
    Code:
    	var ips = new Array('UnlimitedIPs');
    	for (var isOK = false, s = 0; s < ips.length; ++s)
    	{
    		if (f.elements[ips[s]].checked)
    		{
    			isOK = true;
    			break;
    		}
    	}
    	if 
    (f.numberofIPs.value == ''&& (!isOK))
    	{
    		alert('You need to enter the number of ips allowed for this hosting package.');
    		f.numberofIPs.focus();
    		return false;
    }
    ...doesn't make sense. The reason for using an array is to group a number of checkboxes together so you can ensure that at least one of them is checked. Since this case only involves one box, you'd be testing to see if the accompanying text box has been filled in or not:
    Code:
    else if (f.numberofIPs.value == '' && !f.UnlimitedIPs.checked)
    {
    	alert('You need to enter the number of ips allowed for this hosting package.');
    	f.numberofIPs.focus();
    	return false;
    }
    The other is simple: no such property as 'unchecked'. Use the logical negation operator:
    Code:
     if (f.amountOfRam.value == '' && (!f.ramtype[0].checked || !f.ramtype[1].checked))
    ::: certified wild guess :::

  4. #29
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    London, UK
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got one more thing wrong, although i am certain that once shown how to do this, i will be able to alter the script for all my forms - hopefully.
    The ram option on the form should. Give an alert when MB or GB is selected but no amount of ram selected "You have selected a monthly ram type but not included the amount of ram" . It should also display an alert if they fill in the amount of ram but do not tick mb or gb. My script looks ok, i cannot see what i have done wrong.

    if (f.amountOfRam.value == '' && (!f.ramtype[0].checked || !f.ramtype[1].checked))
    {
    alert('You need to enter the amount of Ram.');
    f.amountOfRam.focus();
    return false;
    }
    if (f.amountOfRam.value == '' && (f.ramtype[0].checked || f.ramtype[1].checked))

    {
    alert('You have selected a monthly ram type but not included the amount of ram!');
    f.amountOfRam.focus();
    return false;
    }
    Thanks for all the help so far
    Add your web design / hosting companies to my directory - Web Hosting Directory
    Want to join our panel of experts? - Hosting Forums ( top right of forums -expert drop down box for more info ).

  5. #30
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    ........
    if (f.amountOfRam.value == '' && (f.ramtype[0].checked || f.ramtype[1].checked))
    {
    alert('You need to enter the amount of Ram.');
    f.amountOfRam.focus();
    return false;
    }
    if (f.amountOfRam.value != '' && (!f.ramtype[0].checked && !f.ramtype[1].checked))
    { 
    alert('You have selected a monthly ram type but not included the amount of ram!');
    f.amountOfRam.focus();
    return false; 
    } 
    ........
    Tim...best way to handle compound Booleans is to simply say them out loud, in plain English (or the language of your choice). So this:
    Code:
    if (f.amountOfRam.value == '' && (f.ramtype[0].checked || f.ramtype[1].checked))
    ...would be: "...if the 'amount of RAM' textbox is empty, and either (||) of the 'type of RAM' checkboxes is checked, prompt the user..."

    Similarly:
    Code:
    if (f.amountOfRam.value != '' && (!f.ramtype[0].checked && !f.ramtype[1].checked))
    ...would be: "...if the 'amount of RAM' textbox is not empty, and neither (&&) of the 'type of RAM' checkboxes is checked, prompt the user..."

    Parentheses are used to group several logical expressions so they will be considered as one.

    This might help.
    ::: certified wild guess :::

  6. #31
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    London, UK
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think i got it now. It is different to prgramming on the zx spectrum all those years ago!
    Add your web design / hosting companies to my directory - Web Hosting Directory
    Want to join our panel of experts? - Hosting Forums ( top right of forums -expert drop down box for more info ).

  7. #32
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ha !!! I cut my teeth - are teeth cut? - on an imported ZX81 (Timex TS1000), a tiny, plastic POS with a real Zilog Z80 and a 16K - right, Tonto: K - ram pack that had to be velcroed on to keep it from shorting out. Those were the days; ended up writing Z80 assembler at 3AM, oblivious to the world...

    Later moved up to the Spectrum - jeez, what's this, a keyboard! - and Commodore, Amiga, blah....

    Thanks for the memories.
    ::: certified wild guess :::

  8. #33
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    London, UK
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have now done all my forms but i have discovered a rather strange bug.
    On this form - If you tick unlimited discspace and also enter a discpace amount - the alert asked you to confirm this - http://www.hostcompanies.com/formtes...lerpackage.htm when clicking yes - the next alert is "You need to a server option". It seems to be skiping the other alerts after discpace and before the server options.

    You can see the script below,
    function checkForm()
    {
    var f = document.form1;
    if (f.packagename.value == '')
    {
    alert('You need to enter a name for this package.');
    f.packagename.focus();
    return false;
    }
    else if (f.webaddress.value == '')
    {
    alert('You need to enter a web address for this package.');
    f.webaddress.focus();
    return false;
    }
    if (f.diskspace.value == '' && (f.diskspacetype[0].checked || f.diskspacetype[1].checked))
    {
    alert('You need to enter a disc space for this web hosting package.');
    f.diskspace.focus();
    return false;
    }
    else if (f.diskspace.value != '' && f.diskspacetype[2].checked)
    {
    if (!confirm('You have selected unlimited disc space for this web hosting package. This will override any entry of MB/GB quantity. Continue?'))
    {
    f.diskspacetype[0].checked = true;
    f.diskspace.focus();
    f.diskspace.select();
    return false;
    }
    else f.diskspace.value = '';
    }
    else if (f.bandwidth.value =='' && !f.unlimitedbandwidth.checked)
    {
    alert('You need to enter a bandwidth for this web hosting package.');
    f.bandwidth.focus();
    return false;
    }
    else if (f.bandwidth.value != '' && f.unlimitedbandwidth.checked)
    {
    if (!confirm('You have selected unlimited bandwidth for this web hosting package. This will override any entry of GB quantity. Continue?'))
    {
    f.unlimitedbandwidth.checked = true;
    f.bandwidth.focus();
    f.bandwidth.select();
    return false;
    }
    else f.bandwidth.value = '';
    }
    else if (f.currency.selectedIndex == 0)
    {
    alert('You need to select a currency type for this package.');
    f.currency.focus();
    return false;
    }
    else if (f.setuppriceText.value =='' && f.setupprice.checked)
    {
    alert('You have selected a set up price but not entered an amount.');
    f.setupprice.focus();
    return false;
    }
    else if (f.setuppriceText.value !='' && !f.setupprice.checked)
    {
    alert('You need to check the box next to your set up price input.');
    f.setupprice.focus();
    return false;
    }
    else if (f.pricepermonthText.value =='' && f.pricepermonth.checked)
    {
    alert('You have selected a price per month but not entered an amount.');
    f.pricepermonth.focus();
    return false;
    }
    else if (f.pricepermonthText.value !='' && !f.pricepermonth.checked)
    {
    alert('You need to check the box next to your price per month input.');
    f.pricepermonth.focus();
    return false;
    }
    else if (f.priceperquarterText.value =='' && f.priceperquarter.checked)
    {
    alert('You have selected a price per quarter but not entered an amount.');
    f.priceperquarter.focus();
    return false;
    }
    else if (f.priceperquarterText.value !='' && !f.priceperquarter.checked)
    {
    alert('You need to check the box next to your price per quarter input.');
    f.priceperquarter.focus();
    return false;
    }
    else if (f.priceperyearText.value =='' && f.priceperyear.checked)
    {
    alert('You have selected a price per year but not entered an amount.');
    f.priceperyear.focus();
    return false;
    }
    else if (f.priceperyearText.value !='' && !f.priceperyear.checked)
    {
    alert('You need to check the box next to your price per year input.');
    f.priceperyear.focus();
    return false;
    }
    var serveroptions = new Array('aolserver' , 'apache' , 'ntiis' , 'netscape' , 'oreilly' , 'others');
    for (var isOK = false, s = 0; s < serveroptions.length; ++s)
    {
    if (f.elements[serveroptions[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (!isOK)
    {
    alert('You need to select a server option.');
    f.aolserver.focus();
    return false;
    }
    else if (f.others.checked && f.serverothers.value == '')
    {
    alert('You need to specify the "Other" server options.');
    f.serverothers.focus();
    return false;
    }
    var platform = new Array('cobaltraq' , 'freebsd' , 'linux' , 'novell' , 'mac' , 'sunsolaris' , 'unix' , 'winnt2000' , 'osothers');
    for (var isOK = false, s = 0; s < platform.length; ++s)
    {
    if (f.elements[platform[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (!isOK)
    {
    alert('You need to select a platform option.');
    f.cobaltraq.focus();
    return false;
    }
    else if (f.osothers.checked && f.osotherstext.value == '')
    {
    alert('You need to specify the "Other" platform options.');
    f.osotherstext.focus();
    return false;
    }
    var support = new Array('livechat' , 'knowledgebase' , 'phonesupport' , 'phonesupportforresellers' , 'unbrandedtechsupport');
    for (var isOK = false, s = 0; s < support.length; ++s)
    {
    if (f.elements[support[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (!isOK)
    {
    alert('You need to state your level of support.');
    f.livechat.focus();
    return false;
    }
    else if (f.connectionspeed.selectedIndex == 0)
    {
    alert('You need to select a connection speed for this package.');
    f.connectionspeed.focus();
    return false;
    }
    var domain = new Array('dotcom' , 'dotnet' , 'dotorg' , 'dotcouk' , 'dotorguk' , 'dotac' , 'dotas' , 'dotbe' , 'dotca' , 'dotcc' , 'dotcoil' , 'dotconz' , 'dotcoza' , 'dotcomro' , 'dotcomph' , 'dotde' , 'dotdk' , 'dotfm' , 'dotgs' , 'dotjp' , 'dotkz' , 'dotlt' , 'dotly' , 'dotms' , 'dotnetnz' , 'dotorgil' , 'dotorgnz' , 'dorph' , 'dotro' , 'dotsh' , 'dotst' , 'dottc' , 'dotto' , 'dottv' , 'dotvg' , 'dotvu' , 'dotws');
    for (var isOK = false, s = 0; s < domain.length; ++s)
    {
    if (f.elements[domain[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (f.resellerdomains.checked && !isOK)
    {
    alert('Since you have indicated that you sell domain names, you must now select the domain name extentions you sell.');
    f.resellerdomains.focus();
    return false;
    }
    else return true;
    }
    Add your web design / hosting companies to my directory - Web Hosting Directory
    Want to join our panel of experts? - Hosting Forums ( top right of forums -expert drop down box for more info ).

  9. #34
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not a bug - you've mucked up the if - else logic. If you run into problems like this, just ditch the 'else' and go with a series of 'ifs'. It'll run a bit less efficiently, but it'll run. A misunderstanding of just exactly what an 'else' leads to will cause an entire block of code to be skipped.
    Code:
    ..............
    function checkForm()
    {
    	var f = document.form1;
    	if (f.packagename.value == '')
    	{
    		alert('You need to enter a name for this package.');
    		f.packagename.focus();
    		return false;
    	}
    	else if (f.webaddress.value == '')
    	{
    		alert('You need to enter a web address for this package.');
    		f.webaddress.focus();
    		return false;
    	}
     if (f.diskspace.value == '' && (f.diskspacetype[0].checked || f.diskspacetype[1].checked))
    	{
    		alert('You need to enter a disc space for this web hosting package.');
    		f.diskspace.focus();
    		return false;
    	}
    	else if (f.diskspace.value != '' && f.diskspacetype[2].checked)
    	{ 
    		if (!confirm('You have selected unlimited disc space for this web hosting package. This will override any entry of MB/GB quantity. Continue?'))
    		{
    			f.diskspacetype[0].checked = true;
    			f.diskspace.focus();
    			f.diskspace.select();
    			return false;
    		}
    		else f.diskspace.value = '';
    }
    if (f.bandwidth.value =='' && !f.unlimitedbandwidth.checked)
    {
    		alert('You need to enter a bandwidth for this web hosting package.');
    		f.bandwidth.focus();
    		return false;
    }
    if (f.bandwidth.value != '' && f.unlimitedbandwidth.checked)
    	{ 
    		if (!confirm('You have selected unlimited bandwidth for this web hosting package. This will override any entry of GB quantity. Continue?'))
    		{
    			f.unlimitedbandwidth.checked = true;
    			f.bandwidth.focus();
    			f.bandwidth.select();
    			return false;
    		}
    		else f.bandwidth.value = '';
    	}
    if (f.currency.selectedIndex == 0)
    	{
    ..............
    Replace the single radio (pointless) with a checkbox.
    ::: certified wild guess :::

  10. #35
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    London, UK
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I changed the whole script to if but still get the same problem? Can you see anything wrong with this script?
    function checkForm()
    {
    var f = document.form1;
    if (f.packagename.value == '')
    {
    alert('You need to enter a name for this package.');
    f.packagename.focus();
    return false;
    }
    if (f.webaddress.value == '')
    {
    alert('You need to enter a web address for this package.');
    f.webaddress.focus();
    return false;
    }
    if (f.diskspace.value == '' && (f.diskspacetype[0].checked || f.diskspacetype[1].checked))
    {
    alert('You need to enter a disc space for this web hosting package.');
    f.diskspace.focus();
    return false;
    }
    if (f.diskspace.value != '' && f.diskspacetype[2].checked)
    {
    if (!confirm('You have selected unlimited disc space for this web hosting package. This will override any entry of MB/GB quantity. Continue?'))
    {
    f.diskspacetype[0].checked = true;
    f.diskspace.focus();
    f.diskspace.select();
    return false;
    }
    else f.diskspace.value = '';
    }
    if (f.bandwidth.value =='' && !f.unlimitedbandwidth.checked)
    {
    alert('You need to enter a bandwidth for this web hosting package.');
    f.bandwidth.focus();
    return false;
    }
    if (f.bandwidth.value != '' && f.unlimitedbandwidth.checked)
    {
    if (!confirm('You have selected unlimited bandwidth for this web hosting package. This will override any entry of GB quantity. Continue?'))
    {
    f.unlimitedbandwidth.checked = true;
    f.bandwidth.focus();
    f.bandwidth.select();
    return false;
    }
    else f.bandwidth.value = '';
    }
    if (f.currency.selectedIndex == 0)
    {
    alert('You need to select a currency type for this package.');
    f.currency.focus();
    return false;
    }
    if (f.setuppriceText.value =='' && f.setupprice.checked)
    {
    alert('You have selected a set up price but not entered an amount.');
    f.setupprice.focus();
    return false;
    }
    if (f.setuppriceText.value !='' && !f.setupprice.checked)
    {
    alert('You need to check the box next to your set up price input.');
    f.setupprice.focus();
    return false;
    }
    if (f.pricepermonthText.value =='' && f.pricepermonth.checked)
    {
    alert('You have selected a price per month but not entered an amount.');
    f.pricepermonth.focus();
    return false;
    }
    if (f.pricepermonthText.value !='' && !f.pricepermonth.checked)
    {
    alert('You need to check the box next to your price per month input.');
    f.pricepermonth.focus();
    return false;
    }
    if (f.priceperquarterText.value =='' && f.priceperquarter.checked)
    {
    alert('You have selected a price per quarter but not entered an amount.');
    f.priceperquarter.focus();
    return false;
    }
    if (f.priceperquarterText.value !='' && !f.priceperquarter.checked)
    {
    alert('You need to check the box next to your price per quarter input.');
    f.priceperquarter.focus();
    return false;
    }
    if (f.priceperyearText.value =='' && f.priceperyear.checked)
    {
    alert('You have selected a price per year but not entered an amount.');
    f.priceperyear.focus();
    return false;
    }
    if (f.priceperyearText.value !='' && !f.priceperyear.checked)
    {
    alert('You need to check the box next to your price per year input.');
    f.priceperyear.focus();
    return false;
    }
    var serveroptions = new Array('aolserver' , 'apache' , 'ntiis' , 'netscape' , 'oreilly' , 'others');
    for (var isOK = false, s = 0; s < serveroptions.length; ++s)
    {
    if (f.elements[serveroptions[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (!isOK)
    {
    alert('You need to select a server option.');
    f.aolserver.focus();
    return false;
    }
    if (f.others.checked && f.serverothers.value == '')
    {
    alert('You need to specify the "Other" server options.');
    f.serverothers.focus();
    return false;
    }
    var platform = new Array('cobaltraq' , 'freebsd' , 'linux' , 'novell' , 'mac' , 'sunsolaris' , 'unix' , 'winnt2000' , 'osothers');
    for (var isOK = false, s = 0; s < platform.length; ++s)
    {
    if (f.elements[platform[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (!isOK)
    {
    alert('You need to select a platform option.');
    f.cobaltraq.focus();
    return false;
    }
    if (f.osothers.checked && f.osotherstext.value == '')
    {
    alert('You need to specify the "Other" platform options.');
    f.osotherstext.focus();
    return false;
    }
    var support = new Array('livechat' , 'knowledgebase' , 'phonesupport' , 'phonesupportforresellers' , 'unbrandedtechsupport');
    for (var isOK = false, s = 0; s < support.length; ++s)
    {
    if (f.elements[support[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (!isOK)
    {
    alert('You need to state your level of support.');
    f.livechat.focus();
    return false;
    }
    if (f.connectionspeed.selectedIndex == 0)
    {
    alert('You need to select a connection speed for this package.');
    f.connectionspeed.focus();
    return false;
    }
    var domain = new Array('dotcom' , 'dotnet' , 'dotorg' , 'dotcouk' , 'dotorguk' , 'dotac' , 'dotas' , 'dotbe' , 'dotca' , 'dotcc' , 'dotcoil' , 'dotconz' , 'dotcoza' , 'dotcomro' , 'dotcomph' , 'dotde' , 'dotdk' , 'dotfm' , 'dotgs' , 'dotjp' , 'dotkz' , 'dotlt' , 'dotly' , 'dotms' , 'dotnetnz' , 'dotorgil' , 'dotorgnz' , 'dorph' , 'dotro' , 'dotsh' , 'dotst' , 'dottc' , 'dotto' , 'dottv' , 'dotvg' , 'dotvu' , 'dotws');
    for (var isOK = false, s = 0; s < domain.length; ++s)
    {
    if (f.elements[domain[s]].checked)
    {
    isOK = true;
    break;
    }
    }
    if (f.resellerdomains.checked && !isOK)
    {
    alert('Since you have indicated that you sell domain names, you must now select the domain name extentions you sell.');
    f.resellerdomains.focus();
    return false;
    }
    else return true;
    }
    Add your web design / hosting companies to my directory - Web Hosting Directory
    Want to join our panel of experts? - Hosting Forums ( top right of forums -expert drop down box for more info ).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •