<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Untitled Document</title>
<script type="text/javascript">
/*******************************/
/***** written by eMagi *********/
/*******************************/
function redirect(){
var forma = document.getElementById('forma');
for(i=0; i<forma.length; i++)
{
if(forma.elements[i].checked == true)
{
window.location = forma.elements[i].value;
}
}
}
function check(num){
var forma = document.getElementById('forma');
for(i=0; i<forma.length;i++){
if(forma.elements[i].id == num){
forma.elements[i].checked = true;
} else {
forma.elements[i].checked = false;
}
}
}
</script>
</head>
<body>
<form method="post" action="" onsubmit="redirect(); return false" id="forma">
<input type="checkbox" name="" value="http://web-tourist.net" id="checkbox1" onclick="check(this.id);" />Web-tourist.net<br />
<input type="checkbox" name="" value="http://data.bg" id="checkbox2" onclick="check(this.id);" />Data.bg<br />
<input type="submit" name="submit" value="Redirect" /><input type="reset" value="Занули" />
</form>
</body>
</html>