Hi Compuv,
Try this solution. You can easily make it to 4 checkboxes. You only have to add the 4th checkbox and the variables d, ad, bd, cd, abd, acd, bcd, abcd LOL
Of course Anikin is right about having 5 checkboxes or more
Here is my code. I hope you like it:
<html>
<head>
</head>
<body>
<script language="javascript">
function opensite()
{
var endvalue = "";
var DM = document.MyForm1;
var NrCbs = DM.cb1.length;
var a = "google.com";
var b = "yahoo.com";
var c = "CNN.com";
var ab= "microsoft.com";
var ac= "netscape.com";
var bc = "W3.org";
var abc = "tek-tips.com";
var preURL = "
for (ia = parseInt(0); ia < NrCbs; ia++)
{
if (DM.cb1[ia].checked)
endvalue = endvalue + DM.cb1[ia].value;
}
defURL = eval("'" + preURL + eval(endvalue) + "'"

;
if (!endvalue == ""

{
window.open(defURL, 'windowname3','toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, resizable=yes, scrollbars=yes, top=0, left=0, height=600, width=800');
}
else
{
alert("no checkboxes are selected"

}
}
</script>
<form name="MyForm1">
a: <INPUT TYPE="checkbox" value="a" name=cb1>
b: <INPUT TYPE="checkbox" value="b" name=cb1>
c: <INPUT TYPE="checkbox" value="c" name=cb1>
<br>
<input type="submit" value="go to the site" name="submit777" ONCLICK="opensite()">
</form>
</body>
</html>
Hope this helps,
Erik
<!-- My sport:
Boomerang throwing !!
This year I will participate at the World Championships in Germany. (
!! Many Happy Returns !! -->