/* ============================================================ Script: Random Quote Functions: This simple script allows you to print random quotations in the page. Any number of quotes may be used. Browsers: All Author: etLux ============================================================ NOTE: In quotation 8, note the text, \"beauty\" -- if you need to use double-quote " marks, you *must* precede each double-quote with a backslash \... otherwise the script will break. */ // ============================================== // Copyright 2004 by CodeLifter.com // Free for all; but please leave in this header. // ============================================== function showQuotation() { var Quotation=new Array(); // Set up the quotations to be shown, below. // To add more quotations, continue with the pattern, adding to the array. // Remember to increment the Quotation[x] index! Quotation[0] = "Oxygen is a necessary component in every chemical reaction important to human physiology."; Quotation[1] = "We can survive without water for a few days and without food for literally weeks but without oxygen we can only live for a few minutes."; Quotation[2] = "Nutrients in our bodies, such as proteins, carbohydrates and fats must have a constant supply of oxygen to convert \"potential\" energy."; Quotation[3] = "\"Oxygen Debt\" is now a significant issue with sports people."; Quotation[4] = "Physical Stress consumes large quantities of oxygen and, therefore, reduces the supply to numerous cells and tissues throughout the body."; Quotation[5] = "Australians are renowned worldwide for their high participation rates and achievements in sport, and for their strong anti-drug stance."; Quotation[6] = "Proper oxygenation allows the body to produce and supply ATP to the muscles, giving them strength and elasticity."; Quotation[6] = "A lack of oxygen (hypoxia) causes the body to produce an oxygen-deficient form of ATP called lactic acid. reducing muscle efficiency."; Quotation[7] = "Sports OxyShot is 100% Australian owned and manufactured. It is totally 100% non-toxic and drug-free"; var Q = Quotation.length; var whichQuotation=Math.round(Math.random()*(Q-1)); document.write(Quotation[whichQuotation]); } function showDate() { var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December") document.write(dayarray[day]+", "+montharray[month]+" "+daym+", "+year) } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0)&&(args[i+2]==1)){ //fromto var myMa=args[i+1].split('_');if(isNaN(myV)||myV myMa[1]/1){addErr=true} } else if ((myV.length>0)&&(args[i+2]==2)){ var rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-z]{2,4}$");if(!rx.test(myV))addErr=true; } else if ((myV.length>0)&&(args[i+2]==3)){ // date var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]); if(myAt){ var myD=(myAt[myMa[1]])?myAt[myMa[1]]:1; var myM=myAt[myMa[2]]-1; var myY=myAt[myMa[3]]; var myDate=new Date(myY,myM,myD); if(myDate.getFullYear()!=myY||myDate.getDate()!=myD||myDate.getMonth()!=myM){addErr=true}; }else{addErr=true} } else if ((myV.length>0)&&(args[i+2]==4)){ // time var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);if(!myAt){addErr=true} } else if (myV.length>0&&args[i+2]==5){ // check this 2 var myObj1 = MM_findObj(args[i+1].replace(/\[\d+\]/ig,"")); if(myObj1.length)myObj1=myObj1[args[i+1].replace(/(.*\[)|(\].*)/ig,"")]; if(!myObj1.checked){addErr=true} } else if (myV.length>0&&args[i+2]==6){ // the same var myObj1 = MM_findObj(args[i+1]); if(myV!=myObj1.value){addErr=true} } } else if (!myObj.type&&myObj.length>0&&myObj[0].type=='radio'){ var myTest = args[i].match(/(.*)\[(\d+)\].*/i); var myObj1=(myObj.length>1)?myObj[myTest[2]]:myObj; if (args[i+2]==1&&myObj1&&myObj1.checked&&MM_findObj(args[i+1]).value.length/1==0){addErr=true} if (args[i+2]==2){ var myDot=false; for(var j=0;j