 var stateCookie = Get_Cookie('STATE');
 var stCookie = Get_Cookie('STATEID');
	 if(stateCookie == 'Alabama'){
	 	courseTitle="Alabama Traffic School";
	 	priceImage="al-state-price.gif";
	 	priceImageSmall="al-state-price1.gif";
		url="http://www.idrivesafely.com/signup/processRegulatorSelection.pl?COURSEID=16004&STATE="+stCookie+"&REDIRECTFROM=1&COUPON=USIADI";
		titleHead="al-head.gif";
		sealImage="al-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Alaska'){
	 	courseTitle="Alaska Defensive Driving";
	 	priceImage="ak-state-price.gif";
	 	priceImageSmall="ak-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?COURSEID=15004&STATE="+stCookie+"&REDIRECTFROM=1&COUPON=USIADI";
		titleHead="ak-head.gif";
		sealImage="ak-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Arizona'){
	 	courseTitle="Arizona Defensive Driving";
	 	priceImage="az-state-price.gif";
	 	priceImageSmall="az-state-price1.gif";
		url="http://www.idrivesafely.com/signup/processRegulatorSelection.pl?COURSEID=14005&STATE="+stCookie+"&REDIRECTFROM=1&COUPON=USIADI";
		titleHead="az-head.gif";
		sealImage="az-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'California'){
	 	courseTitle="California Traffic School Online";
	 	priceImage="ca-state-price.gif";
	 	priceImageSmall="ca-state-price1.gif";
		url="http://www.idrivesafely.com/signup/processRegulatorSelection.pl?COURSEID=23&STATE="+stCookie+"&COUPON=USIADI";
		titleHead="ca-head.gif";
		sealImage="ca-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Colorado'){
	 	courseTitle="Colorado Traffic School";
	 	priceImage="co-state-price.gif";
	 	priceImageSmall="co-state-price1.gif";
		url="http://www.idrivesafely.com/signup/processRegulatorSelection.pl?COURSEID=8002&STATE="+stCookie+"&COUPON=USIADI";
		titleHead="co-head.gif";
		sealImage="co-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Delaware'){
	 	courseTitle="Delaware Defensive Driving";
	 	priceImage="de-state-price.gif";
	 	priceImageSmall="de-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayDeliveryOptions.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="de-head.gif";
		sealImage="de-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Idaho'){
	 	courseTitle="Idaho Point Reduction Course";
	 	priceImage="id-state-price.gif";
	 	priceImageSmall="id-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="id-head.gif";
		sealImage="id-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Indiana'){
	 	courseTitle="Indiana Defensive Driving Course";
	 	priceImage="in-state-price.gif";
	 	priceImageSmall="in-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE=IN&COUPON=USIADI&RESIDENTSTATE=";
		titleHead="in-head.gif";
		sealImage="in-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Kansas'){
	 	courseTitle="Kansas Defensive Driving Course";
	 	priceImage="ks-state-price.gif";
	 	priceImageSmall="ks-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE=KS&COUPON=USIADI";
		titleHead="ks-head.gif";
		sealImage="ks-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Lousiana'){
	 	courseTitle="Louisiana Traffic School";
	 	priceImage="la-state-price.gif";
	 	priceImageSmall="la-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="la-head.gif";
		sealImage="la-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Maine'){
	 	courseTitle="Maine Traffic School";
	 	priceImage="me-state-price.gif";
	 	priceImageSmall="me-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourtSelection.pl?REGULATORID=26837&LANGUAGE=EN&COURSEID=30004&STATE="+stCookie+"&COURSEID=23&COUPON=USIADI";
		titleHead="me-head.gif";
		sealImage="me-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Michigan'){
	 	courseTitle="Michigan Driver Improvement";
	 	priceImage="mi-state-price.gif";
	 	priceImageSmall="mi-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADIMI";
		titleHead="mi-head.gif";
		sealImage="mi-seal1.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Missouri'){
	 	courseTitle="Missouri Driver Improvement";
	 	priceImage="mo-state-price.gif";
	 	priceImageSmall="mo-state-price1.gif";
		url="http://www.idrivesafely.com/signup/processRegulatorSelection.pl?COURSEID=6005&STATE="+stCookie+"&COUPON=USIADIMO";
		titleHead="mo-head.gif";
		sealImage="mo-seal1.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Nevada'){
	 	courseTitle="Nevada Traffic School";
	 	priceImage="nv-state-price.gif";
	 	priceImageSmall="nv-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="nv-head.gif";
		sealImage="nv-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'New Jersey'){
	 	courseTitle="New Jersey Point and Insurance Reduction Course";
	 	priceImage="nj-state-price.gif";
	 	priceImageSmall="nj-state-price1.gif";
	        url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE=NJ&COUPON=USIADINJ"
		titleHead="nj-head.gif";
		sealImage="nj-seal1.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'New Mexico'){
	 	courseTitle="New Mexico Traffic School";
	 	priceImage="nm-state-price.gif";
	 	priceImageSmall="nm-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADINM";
		titleHead="nm-head.gif";
		sealImage="nm-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'New York'){
	 	courseTitle="New York Point and Insurance Reduction Course";
	 	priceImage="ny-state-price.gif";
	 	priceImageSmall="ny-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCreateAccount.pl?COURSEID=40004&STATE="+stCookie+"&COUPON=USIADINY";
		titleHead="ny-head.gif";
		sealImage="ny-seal1.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'North Carolina'){
	 	courseTitle="North Carolina Traffic School";
	 	priceImage="nc-state-price.gif";
	 	priceImageSmall="nc-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="nc-head.gif";
		sealImage="nc-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'North Dakota'){
	 	courseTitle="North Dakota Defensive Driving";
	 	priceImage="nd-state-price.gif";
	 	priceImageSmall="nd-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="nd-head.gif";
		sealImage="nd-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Ohio'){
	 	courseTitle="Ohio Traffic School";
	 	priceImage="oh-state-price.gif";
	 	priceImageSmall="oh-state-price1.gif";
		url="http://www.idrivesafely.com/signup/processRegulatorSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="oh-head.gif";
		sealImage="oh-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Oklahoma'){
	 	courseTitle="Oklahoma Traffic School";
	 	priceImage="ok-state-price.gif";
	 	priceImageSmall="ok-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="ok-head.gif";
		sealImage="ok-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'South Carolina'){
	 	courseTitle="South Carolina Traffic School";
	 	priceImage="sc-state-price.gif";
	 	priceImageSmall="sc-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="sc-head.gif";
		sealImage="sc-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Tennessee'){
	 	courseTitle="Tennessee Traffic School";
	 	priceImage="tn-state-price.gif";
	 	priceImageSmall="tn-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="tn-head.gif";
		sealImage="tn-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Texas'){
	 	courseTitle="Texas Defensive Driving";
	 	priceImage="tx-state-price.gif";
	 	priceImageSmall="tx-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="tx-head.gif";
		sealImage="tx-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Washington'){
	 	courseTitle="Washington Defensive Driving";
	 	priceImage="wa-state-price.gif";
	 	priceImageSmall="wa-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="wa-head.gif";
		sealImage="wa-seal.gif";
		homePage = 'index.html';
	 }
	 else if(stateCookie == 'Oregon'){
	 	courseTitle="Oregon Traffic School";
	 	priceImage="or-state-price.gif";
	 	priceImageSmall="or-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		sealImage="or-seal.gif";
		homePage = 'index.html';
	 }
 
	 else if(stateCookie == 'Florida'){
		//enter the data as above
		homePage = 'index.html';
		courseTitle="Florida Traffic School";
		priceImageSmall="fl-state-price1-1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
	 }
	 else if(stateCookie == 'Virginia'){
		//enter the data as above
		courseTitle="Virginia Driver Improvement";
		priceImageSmall="va-state-price1.gif";
		homePage = 'index.html';
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADIVA";
	 }
	else if(stateCookie == 'Louisiana'){
	 	courseTitle="Louisiana Traffic School";
	 	priceImage="la-state-price.gif";
	 	priceImageSmall="la-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="la-head.gif";
		sealImage="la-seal.gif";
		homePage = 'index.html';
	 }
	else if(stateCookie == 'North Carilona'){
	 	courseTitle="North Carolina Traffic School";
	 	priceImage="nc-state-price.gif";
	 	priceImageSmall="nc-state-price1.gif";
		url="http://www.idrivesafely.com/signup/displayCourseSelection.pl?STATE="+stCookie+"&COUPON=USIADI";
		titleHead="nc-head.gif";
		sealImage="nc-seal.gif";
		homePage = 'index.html';
	 }	 
	else if(stateCookie == null) {
		homePage = 'index.html';
	}

