<!--
onError=null
// -->

<!-- BOOKMARK -->
<!--
function bookmark() {
 if (document.all)
 window.external.AddFavorite("http://www.sivamdesign.com/scripts/miscell.html","Sandeep\'s JavaScript Page (Miscellaneous Scripts)");
 }
// -->

<!-- WEB SEARCH -->
<!--
function searchWeb() {
  if (document.search.engines.selectedIndex==0) { window.open("http://uk.altavista.com/web/results?pg=q&what=web&fmt=.&q="+document.search.queryText.value.replace(" ","+")); }
  if (document.search.engines.selectedIndex==1) { window.open("http://www.ask.com/main/askjeeves.asp?x=22&y=13&ask="+document.search.queryText.value.replace(" ","+")); }
  if (document.search.engines.selectedIndex==2) { window.open("http://www.infospace.com/dog/redir.htm?&qkw="+document.search.queryText.value.replace(" ","+")); }
  if (document.search.engines.selectedIndex==3) { window.open("http://www.google.com/search?btnG=Google+Search&q="+document.search.queryText.value.replace(" ","+")); }
  if (document.search.engines.selectedIndex==4) { window.open("http://www.hotbot.com/default.asp?prov=Fast&tab=web&query="+document.search.queryText.value.replace(" ","+")); }
  if (document.search.engines.selectedIndex==5) { window.open("http://www.looksmart.com/r_search?look=&key="+document.search.queryText.value.replace(" ","+")); }
  if (document.search.engines.selectedIndex==6) { window.open("http://search.lycos.com/?query="+document.search.queryText.value.replace(" ","+")); }
  if (document.search.engines.selectedIndex==7) { window.open("http://search.metacrawler.com/texis/search?brand=metacrawler&q="+document.search.queryText.value.replace(" ","+")); }
  if (document.search.engines.selectedIndex==8) { window.open("http://www.overture.com/d/search/?type=home&tm=1&Keywords="+document.search.queryText.value.replace(" ","+")); }
  if (document.search.engines.selectedIndex==9) { window.open("http://search.yahoo.com/search?p="+document.search.queryText.value.replace(" ","+")); }
}
// -->

<!-- SUN-SIGN FINDER -->
<!--
function sunsign() {
   document.form1.date.selectedIndex;
   document.form1.month.selectedIndex;
   document.form1.sign.value;
   if (document.form1.month.selectedIndex == 1 && document.form1.date.selectedIndex <=19) {document.form1.sign.value = "Capricorn";}
   if (document.form1.month.selectedIndex == 1 && document.form1.date.selectedIndex >=20) {document.form1.sign.value = "Aquarius";}
   if (document.form1.month.selectedIndex == 2 && document.form1.date.selectedIndex <=18) {document.form1.sign.value = "Aquarius";}
   if (document.form1.month.selectedIndex == 2 && document.form1.date.selectedIndex >=19) {document.form1.sign.value = "Pisces";}
   if (document.form1.month.selectedIndex == 3 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Pisces";}
   if (document.form1.month.selectedIndex == 3 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Aries";}
   if (document.form1.month.selectedIndex == 4 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Aries";}
   if (document.form1.month.selectedIndex == 4 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Taurus";}
   if (document.form1.month.selectedIndex == 5 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Taurus";}
   if (document.form1.month.selectedIndex == 5 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Gemini";}
   if (document.form1.month.selectedIndex == 6 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Gemini";}
   if (document.form1.month.selectedIndex == 6 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Cancer";}
   if (document.form1.month.selectedIndex == 7 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Cancer";}
   if (document.form1.month.selectedIndex == 7 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Leo";}
   if (document.form1.month.selectedIndex == 8 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Leo";}
   if (document.form1.month.selectedIndex == 8 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Virgo";}
   if (document.form1.month.selectedIndex == 9 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Virgo";}
   if (document.form1.month.selectedIndex == 9 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Libra";}
   if (document.form1.month.selectedIndex == 10 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Libra";}
   if (document.form1.month.selectedIndex == 10 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Scorpio";}
   if (document.form1.month.selectedIndex == 11 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "Scorpio";}
   if (document.form1.month.selectedIndex == 11 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "Sagittarius";}
   if (document.form1.month.selectedIndex == 12 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "Sagittarius";}
   if (document.form1.month.selectedIndex == 12 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "Capricorn";}

   if (document.form1.month.selectedIndex == "x" || document.form1.date.selectedIndex == "y") return;
 }

function validate() {
   if (document.form1.month.selectedIndex == 2 && document.form1.date.selectedIndex > 29) {alert("There are only a maximum of 29 days in February."); return false;}
   if (document.form1.month.selectedIndex == 4 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in April."); return false;}
   if (document.form1.month.selectedIndex == 6 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in June."); return false;}
   if (document.form1.month.selectedIndex == 9 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in September."); return false;}
   if (document.form1.month.selectedIndex == 11 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in November."); return false;}
   return true;
 }
// -->

<!-- ALTERNATING MESSAGE TEXT BOX -->
<!--
var text =0;
var message=new Array();
message[0]="Hello and Welcome to Sandeep's JavaScripts Page!"
message[1]="Available here are some free and useful scripts."
message[2]="They are free to use so long as the © notice is retained."
message[3]="Have a look around and see if you find any script you like."

function changeText() {
  if (message.length > 0) {
   document.alternate.descript.value=message[text];
   text++; }
  if (text == 4) {text = 0; }
   window.setTimeout("changeText()", 3500); }
//-->

<!-- REFER PAGE BUTTON -->
<!--
 function sendURL() {
  URL = document.URL;
  title = document.title;
  email = window.prompt("Please type in the email/s of the recepient/s below:","");
  if (email == "null" || email == "") return;
  name = window.prompt("Please type in your first name below:","");
  if (name == "null" || name == "") return;
  location.href="mailto: "+email+"?Subject=Check this out&Body=Check out this page: "+title+" - "+URL+" -- "+name; }
// -->

<!-- VIEW SELECTED INFORMATION -->
<!--
 x = parseInt(window.screen.width)/2-215;
function openWindow1() {
 win=window.open('files/newest.html','','toolbar=no,status=no,width=430,height=255,scrollbars=no');
 win.moveTo(x,200); }
//-->

<!-- VIEW SELECTED INFORMATION (RADIO BUTTONS) -->
<!--
var details=new Array();
details[0] = "Topic 1:\nDetails about the topic shall be seen here."
details[1] = "Topic 2:\nDetails about the topic shall be seen here."
details[2] = "Topic 3:\nDetails about the topic shall be seen here."
details[3] = "Topic 4:\nDetails about the topic shall be seen here."
details[4] = "Topic 5:\nDetails about the topic shall be seen here."
details[5] = "Topic 6:\nDetails about the topic shall be seen here."
details[6] = "Introduction:\nClick on the radio buttons on the left to learn more about the respective topics!"

function topica(exp) {
  if (document.texter.point[exp].checked) { document.getElementById('theData').innerHTML=details[exp]; }
}
// -->

<!-- ALTERNATING STATUS BAR MESSAGES -->
<!--
  var change = 1;
function alterStat() {
  var alternate1 = "Hello and Welcome to Sandeep's JavaScripts Page!";
  var alternate2 = "Available here are some free and useful scripts.";
  var alternate3 = "They are free to use so long as the © notice is retained.";
  var alternate4 = "Have a look around and see if you find any script you like.";
  change++;
 if (change == 3) { window.status = alternate1; }
 if (change == 4) { window.status = alternate2; }
 if (change == 5) { window.status = alternate3; }
 if (change == 6) { window.status = alternate4; }
 if (change == 7) { window.status = '********'; change = 2; }
 window.setTimeout("alterStat();", 3000);
 }
//-->

<!-- SCROLLING TEXT BOX MESSAGE -->
<!--
 var message1 = " Hello and Welcome to The JavaScript Page!! ";
 var count = 0;
 var gap = message1.length;
 for (i=0; i < gap; i++) { message1 = " " + message1; }
function statScroll() {
 document.scroll.msg.value = message1.substring(count, message1.length);
 count++;
 if (message1.length == count) { count = 0; }
 window.setTimeout("statScroll()", 120);
 }
//-->


