// JavaScript Document


   
			
			function goToUrl() {//alert('Hey! I said not to try clicking this link!');
                        		val=forma.date11.value;
					valu = 'http://www.tvo.org/TVO/WebObjects/TVO.woa/?find_'+val;
					document.location=valu;
                		}
						
						
						
			  var preloadFlag = false;
			  
                function preloadImages() {
                    if (document.images) {
                        TVOntario_IDStrip_02_TVOntario_IDStrip_01_over = newImage("http://www.tvo.org/utils_tvo/stripImage/TVOntario_IDStrip_02-TVOnta.gif");
                        TVOntario_IDStrip_03_TVOntario_IDStrip_01_over = newImage("http://www.tvo.org/utils_tvo/stripImage/TVOntario_IDStrip_03-TVOnta.gif");
                        TVOntario_IDStrip_04_TVOntario_IDStrip_01_over = newImage("http://www.tvo.org/utils_tvo/stripImage/TVOntario_IDStrip_04-TVOnta.gif");
                        TVOntario_IDStrip_05_TVOntario_IDStrip_01_over = newImage("http://www.tvo.org/utils_tvo/stripImage/TVOntario_IDStrip_05-TVOnta.gif");
                        TVOntario_IDStrip_05_TVOntario_IDStrip_02_over = newImage("http://www.tvo.org/utils_tvo/stripImage/TVOntario_IDStrip_05-TVO-10.gif");
                        TVOntario_IDStrip_05_TVOntario_IDStrip_03_over = newImage("http://www.tvo.org/utils_tvo/stripImage/TVOntario_IDStrip_05-TVO-11.gif");
                        TVOntario_IDStrip_05_TVOntario_IDStrip_04_over = newImage("http://www.tvo.org/utils_tvo/stripImage/TVOntario_IDStrip_05-TVO-12.gif");
						 preloadFlag = true;
						
                    }
                }                
				
				
				
                function newImage(arg) {
                    if (document.images) {
                        rslt = new Image();
                        rslt.src = arg;
                        return rslt;
						
                    }
                }
                function changeImages() {
                    if (document.images && (preloadFlag == true)) {
                        for (var i=0; i<changeImages.arguments.length; i+=2) {
                            document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
							
                        }
                    }
                }
                        
                    img1on= new Image ();
                    img1on.src="http://www.tvo.org/utils_tvo/tvoImgs/homeOn.gif";
                    img2on= new Image ();
                    img2on.src="http://www.tvo.org/utils_tvo/tvoImgs/scheduleOn.gif";
                    img3on= new Image ();
                    img3on.src="http://www.tvo.org/utils_tvo/tvoImgs/programsOn.gif";
                    img4on= new Image ();
                    img4on.src="http://www.tvo.org/utils_tvo/tvoImgs/supportOn.gif";
                    img5on= new Image ();
                    img5on.src="http://www.tvo.org/utils_tvo/tvoImgs/contactOn.gif";
                    img6on= new Image ();
                    img6on.src="http://www.tvo.org/utils_tvo/tvoImgs/searchOn.gif";
                    img7on= new Image ();
                    img7on.src="http://www.tvo.org/utils_tvo/tvoImgs/goOn.gif";
                    
                if (document.images) {
                    img1on= new Image ();
                    img1on.src="http://www.tvo.org/utils_tvo/tvoImgs/homeOn.gif";
                    img1off=new Image ();
                    img1off.src="http://www.tvo.org/utils_tvo/tvoImgs/home.gif";
                    img2on= new Image ();
                    img2on.src="http://www.tvo.org/utils_tvo/tvoImgs/scheduleOn.gif";
                    img2off=new Image ();
                    img2off.src="http://www.tvo.org/utils_tvo/tvoImgs/schedule.gif";
                    img3on= new Image ();
                    img3on.src="http://www.tvo.org/utils_tvo/tvoImgs/programsOn.gif";
                    img3off=new Image ();
                    img3off.src="http://www.tvo.org/utils_tvo/tvoImgs/programs.gif";
                    img4on= new Image ();
                    img4on.src="http://www.tvo.org/utils_tvo/tvoImgs/supporOn.gif";
                    img4off=new Image ();
                    img4off.src="http://www.tvo.org/utils_tvo/tvoImgs/support.gif";
                    img5on= new Image ();
                    img5on.src="http://www.tvo.org/utils_tvo/tvoImgs/contactOn.gif";
                    img5off=new Image ();
                    img5off.src="http://www.tvo.org/utils_tvo/tvoImgs/contact.gif";
                    img6on= new Image ();
                    img6on.src="http://www.tvo.org/utils_tvo/tvoImgs/searchOn.gif";
                    img6off=new Image ();
                    img6off.src="http://www.tvo.org/utils_tvo/tvoImgs/search.gif";
                    img7on= new Image ();
                    img7on.src="http://www.tvo.org/utils_tvo/tvoImgs/goOn.gif";
                    img7off=new Image ();
                    img7off.src="http://www.tvo.org/utils_tvo/tvoImgs/go.gif";
                }
				
				 function imgon(imgName) {
                    if(document.images)	{
                        document[imgName].src = eval(imgName + "on.src");
                    }
                }
                function imgoff(imgName) {
                    if(document.images) {
                        document[imgName].src = eval (imgName + "off.src");
                    }
                }


var cookieEnabled=(navigator.cookieEnabled)? true : false

//if not IE4+ nor NS6+
if ( !cookieEnabled ) {
document.cookie="testcookie";
cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)? true : false;
}

if (!cookieEnabled) {//if cookies are enabled on client's browser
//do whatever
alert('In order for this site to work properly you must enable cookies in your web browser settings!');
}
else {}
