location.replace('../index.html');
igougourl='http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://februaryfantasy.igougo.com&name=tv_regis_igougotripinfolink';

imgroot=root+'/contests/outofcontrol/images';
navroot='http://tvplex.go.com/buenavista/regisandkelly/contests/outofcontrol/';
sweepsurl='https://register.go.com/regisandkelly/sweeps/outofcontrol/index';

try{ isReg=(document.location.href.match(/(joe|register|registerqa)\.go\.com/gi)!=null); } catch(n){ isReg=false; }

navroot=(isReg)?navroot:'';

rulesurl=navroot+'rules.html';
function goRules(){ location.href=rulesurl; }

if (isReg){ _timeflip=true; }

function writeMandy(){
document.writeln('<div align="center"><b>&#149; &#149; &#149;</b></div>');
document.writeln('<div style="font:10px verdana,arial;">\
Each entrant can enter by mail as many times as they wish, but each postcard must be mailed separately.  Only one entry per day is permitted on the website.  Online entry only for the IgoUgo Member Special Drawing.  <b>To be eligible, all mail and online entries must be received by 3:00 pm ET on 2/15/06.</b>\
<br><br>\
On most weekdays, beginning <b>1/30/06 through 2/24/06</b>, up to three entants will be randomly selected to answer a question about a previous LIVE show.  If the selected on-air entrant correctly answers the question, he/she will win the travel prize package (subject to verification) to include the number of travel guest(s) as determined by the spin of the Wheel, at an average value of $7,324 per each traveler!  <b>LIVE\'s Out of Control February Fantasy</b> is open to eligible legal residents of the U.S. and Canada (excluding Quebec) who are 18 years old, or age of legal majority in state of residence if older, as of January 16, 2006.\
<br><br>\
No purchase necessary.  Void where prohibited. * Some restrictions may apply. See <a href="javascript:goRules()">Official Rules</a> for details.\
<br><br>\
Employees and agents of Buena Vista Television, IgoUgo, Inc., WABC-TV, ABC, Inc., Sullivan Compliance Company, prize suppliers, parent companies, affiliates and subsidiaries, and their immediate families, and/or persons living in the same households are ineligible to enter.  To receive a copy of the Official Rules or a Winners List, send a SASE to: <b>Live\'s Out of Control February Fantasy</b>, "Rules" or "Winners" (specify which), P.O. Box 6862, Burbank, CA 91510.  All requests must be received by 5/2/06.\
</div>');
}

function writeIgoUgoAbout(){
document.writeln('<table border="0" cellspacing="0" cellpadding="0"><tr><td>\
<a href="javascript:GOurl(igougourl)"><img src="'+imgroot+'/igougo_logo.gif" width="105" height="105" border="0" alt="IgoUgo"></a>\
</td><td style="font-size:12px;">\
<a href="javascript:GOurl(igougourl)">IgoUgo.com</a> is the world\'s leading travel community, made up of 350,000 members who offer what guidebooks can\'t: hundreds of thousands of opinions on destinations across the globe, plus suggestions and photos for everything from cheap eats and luxury accommodations to must-see attractions and worthwhile day trips.\
</td></tr></table>');
}

function writeLocalNav(loc){

document.writeln('<div style="background:#FDF9E0 url('+imgroot+'/nav-bg.jpg) no-repeat; width:800px; height:31px;">\
<table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td align="center" style="padding-right:100px;">');
document.writeln(((loc!='index')?'<a href="'+navroot+'index.html" id="navhome"><img id="inavhome" src="'+imgroot+'/nav_home_off.gif" width="60" height="25" border="0" alt="Home"></a>':'<img src="'+imgroot+'/nav_home_on.gif" width="60" height="25" border="0" alt="Home">'));
document.writeln('</td><td align="center">');
document.writeln(((loc!='prizes')?'<a href="'+navroot+'prizes.html" id="navprizes"><img id="inavprizes" src="'+imgroot+'/nav_prizes_off.gif" width="61" height="25" border="0" alt="Prizes"></a>':'<img src="'+imgroot+'/nav_prizes_on.gif" width="61" height="25" border="0" alt="Prizes">'));
document.writeln('</td><td align="center" style="padding-left:100px;">');
document.writeln(((loc!='rules')?'<a href="javascript:goRules()" id="navrules"><img id="inavrules" src="'+imgroot+'/nav_rules_off.gif" width="125" height="25" border="0" alt="Official Rules"></a>':'<img src="'+imgroot+'/nav_rules_on.gif" width="125" height="25" border="0" alt="Official Rules">'));
document.writeln('</td></tr></table></div>');
rolloverInit();
}

function writeIntro(){
document.writeln('Complete the following online entry form for a chance to play LIVE\'s <b>Out of Control February Fantasy Travel Trivia</b>! Then tune-in to <b>"Live with Regis and Kelly"</b> during the month of February. If we select your name and you have all five correct clues, Regis and Kelly <b>may</b> be calling you sometime between January 30th and February 24th to answer a question about a previous LIVE show. Answer correctly and you could win a dream vacation of <b>YOUR</b> choice to almost anywhere in the world (some restrictions may apply -- see <a href="javascript:goRules()">Official Rules</a>) from our friends at IgoUgo.com! Remember: you must be at least 18 years of age or older as of January 16, 2006 to enter! Only one online entry per user per day! All online entries must also be received by 3pm ET on Wednesday, February 15, 2006.<br>');
}

function writeNotLoggedIn(){
gid('enternowtxt').style.marginTop='15px';
writeIntro();
document.writeln("<br>Please take a second to login (if you're already a LiveRegisAndKelly.com member) or register now!<br>");
}

function writeLoggedIn(){
writeIntro();
//document.writeln("Please click <b>ENTER</b> below to enter the sweepstakes.<br>");
}

function writeSuccess(){
gid('enternowtxt').style.display='none';
document.writeln('<span style="font:bold 16px arial; color:#0072BC;">GOOD LUCK!</span><br><br><span style="font:14px arial;">You are entered to play the<br><b>LIVE\'s Out of Control February Fantasy Travel Trivia!</b></span><br><br>Remember, you can enter once per day here at "LiveRegisandKelly.com" to increase your chances of winning!<br><br>If you would like an additional chance to win a trip to one of your top three dream destinations, all you have to do is become<br> an IgoUgo.com member. Please <a href="javascript:GOurl(igougourl)">click here to visit IgoUgo.com</a> and register for IgoUgo.com\'s Special Chance Drawing!<br><br>If you are already an IgoUgo.com member -- and you told us that on the previous page -- you are already entered! <br><br><br> <a href="http://liveregisandkelly.com/">Return to the <b>"Live with Regis and Kelly"</b> homepage</a>');
}

function writeErrorMsg(irma){

gid('enternowtxt').style.display='none';
document.writeln('<div align="center"><b style="font-size:16px; color:#0072BC;">SORRY!</b><br><br><span style="font:14px arial;">');

switch(irma){
case 'ALREADY_ENTERED_IN_TIMEUNIT':
document.writeln('You have already successfully entered <b>LIVE\'s Out of Control February Fantasy Travel Trivia</b> today.<br>Be sure to come back tomorrow and play again!'); break;
case 'EARLY':
document.writeln('<b>LIVE\'s Out of Control February Fantasy Travel Trivia</b> is not yet open.'); break;
case 'OVER':
document.writeln('<b>LIVE\'s Out of Control February Fantasy Travel Trivia</b> is now closed.'); break;
case 'INVALID_AGE':
document.writeln('We\'re sorry but you must be at least 18 or older to play <b>LIVE\'s Out of Control February Fantasy Travel Trivia</b>.'); break;
case 'QUEBEC':
document.writeln('<b>LIVE\'s Out of Control February Fantasy Travel Trivia</b> is not open to residents of Quebec.<br><br><a href="../../update?appRedirect=sweeps/outofcontrol/index">Verify/Update address information</a>'); break;
default:break;
}

document.writeln('</span><br><br><br><a href="http://liveregisandkelly.com/">Return to the <b>"Live with Regis and Kelly"</b> homepage</a></div>');
}

function checkStuff(me) {
eee=[
["line1", "Please type in your street address."],
["city", "Please type in your city."],
["stateProvince", "Please select your state or province."],
["zipPostalCode", "Please type in your zipcode."],
["phoneNumber", "Please type in your phone number."],
["clue1", "Please enter all 5 clues."],
["clue2", "Please enter all 5 clues."],
["clue3", "Please enter all 5 clues."],
["clue4", "Please enter all 5 clues."],
["clue5", "Please enter all 5 clues."]
];
for (cc=0; cc<eee.length; cc++){
elle=me.elements[eee[cc][0]];
if (((elle.type=="text" || elle.type=="textarea" || elle.type=="file") && elle.value=='') || (elle.type=="select-one" && elle.selectedIndex==0)){
alert(eee[cc][1]); elle.focus(); return false;
}}
stripped=me.phoneNumber.value.replace(/[\(\)\.\-\ ]/g,'');
if (!(!isNaN(parseInt(stripped)) && stripped.length==10)){ alert('Please check your phone number for errors.'); me.phoneNumber.focus(); return false; }

tripcount=0;
if (me.destiny1.selectedIndex>0){ tripcount++; }
if (me.destiny2.selectedIndex>0){ tripcount++; }
if (me.destiny3.selectedIndex>0){ tripcount++; }
if (me.destiny4.value!=''){ tripcount++; }
if (tripcount<3){
alert('Please select your top three destinations, or select two and type in your dream destination in the text box.'); me.destiny1.focus(); return false;
}

return true;
}

function writeLocalPrivacy(){ writePrivacy('white','black'); }

document.writeln('<style>\
.butter{ background:#0173BC; color:#fff; border:1px solid #6D6960; font:bold 14px arial; cursor:default; }\
.overbutter{ background:#fff; color:#0173BC; border:1px solid #6D6960; font:bold 14px arial; cursor:hand; }\
.clues{ width:180px; }\
.headerbg{ color:#0173BC; font-size:14px; background:#ede9d0; }\
legend{ color:#0072BC; font-size:14px; font-weight:bold; }\
fieldset{ border:2px solid #ddd9c0; padding:15px; }\
</style>');

destiny=[
["Africa & Middle East", "1. Amazing Morocco", "2. The Best of South Africa", "3. Egypt: Land of Ancient Mystery", "4. The Great Pyramids of Egypt", "5. Southern African Safari Adventure"],

["Asia", "6. The Ancient Temples of Angkor Wat", "7. The Art of Zen in Tibet", "8. The Best of Vietnam", "9. Grand Tour of India Maharajah-Style", "10. Hong Kong and Bangkok: Shop Till You Drop"],

["Australia & New Zealand", "11. Aussie Outback Adventure", "12. Best of Australia: Sydney, Great Barrier Reef, and Adelaide", "13. Highlights of New Zealand", "14. Thrillseeker's New Zealand"],

["Central & South America", "15. Amazing Machu Picchu and the Andes", "16. Cultural Highlights of Brazil", "17. Eco-Tour of Costa Rica", "18. Eco-Tour of Panama", "19. Glitz and Glamour in Uruguay"],

["Cruises", "20. Cruising Alaska's Inside Passage", "21. Cruising the Atlantic: London to New York", "22. Cruising the Baltic Sea", "23. Cruising to Bermuda", "24. Cruising the Chilean Fjordlands", "25. Cruising China's Yangtze River", "26. Cruising the Eastern Caribbean", "27. Cruising the Galapagos Islands", "28. Cruising the Greek Isles", "29. Cruising Through Hawaii", "30. Cruising Through Holland and Belgium", "31. Cruising the Mediterranean", "32. Cruising the Mexican Riviera", "33. Cruising the Panama Canal", "34. Cruising the Southern Caribbean", "35. Cruising the Tahitian Islands", "36. Cruising the Undiscovered Continent: Antarctica", "37. Cruising the Western Caribbean", "38. The Virgin Islands by Deluxe Yacht"],

["Europe", "39. Biking Ireland: The Ring of Kerry", "40. Culinary School in Tuscany", "41. Cultural Tour of Imperial Russia", "42. Decadent Discoveries in Southern Spain", "43. Grand Tour of Italy", "44. Hot Springs and Hot Nights in Reykjavik", "45. Ireland for Adventurers", "46. Lederhosen Landscape: Cultural Germany", "47. Literary England", "48. Luxury Villa in Provence", "49. A Romantic French Adventure", "50. The Royal Treatment in London", "51. Storybook Germany", "52. Summer in Switzerland", "53. Turkish Delight: Istanbul and Beyond", "54. A Week in the Tuscan Sun", "55. Winter Wonderland in the French Alps"],

["Mexico & Caribbean", "56. Atlantis: The Ultimate Caribbean Resort", "57. Caribbean's Most Elegant All-Inclusive", "58. Hey Mon! Welcome to Jamaica", "59. High-Rollers' Caribbean", "60. Mexican Getaway: Zihuatanejo and Ixtapa", "61. Renew Your Vows on St. John", "62. A Romantic Escape to St. Lucia", "63. Seaside Elegance in Cabo San Lucas", "64. Sun and Siestas in Puerto Vallarta"],

["South Pacific", "65. Barefoot Luxury in Tahiti", "66. Fiji: Indulging in the South Pacific"],

["United States & Canada", "67. Alaska for Nature Lovers", "68. America's Historic East", "69. The Best of Broadway", "70. Canadian Rockies Rail Adventure", "71. Celebrity-for-a-Week in Los Angeles", "72. Dazzling Fall Foliage in Canada", "73. Family Dude Ranch Adventure", "74. Family Escape to Branson", "75. First-Class Hawaii", "76. Great Canyons in Grand Style", "77. Heaven on Earth: Kauai", "78. Highlights of the American West", "79. Laid-Back Luxury on Florida's Gold Coast", "80. The NASCAR Driving Experience", "81. New Age Southwest", "82. New Year in the City of Angels", "83. On the Slopes in Jackson Hole", "84. Park City Ski Adventure", "85. PGA National Resort and Spa", "86. RV Across America", "87. San Francisco and the Wine Country", "88. Shop-Till-You-Drop New York", "89. Skiers' Getaway to Whistler", "90. Sophisticated Southern Charms", "91. Spa Escape to Southern California", "92. Summer Vacation Chalet in Vail", "93. Teeing Off in Destin", "94. Tennessee Highlights", "95. Traversing the Arctic Tundra", "96. The Ultimate Walt Disney World Celebration", "97. VIP Vegas", "98. A Week at Vegas' Venetian Resort", "99. Wining and Dining in Sonoma Valley", "100. World-Class Golf in Southern California"]

];

function writeDestiny(presel){
for (d in destiny){
document.writeln('<optgroup label="'+destiny[d][0]+'">');
for (e=1; e<destiny[d].length; e++){
document.writeln('<option '+((presel!=null && destiny[d][e].toUpperCase()==presel.toUpperCase())?'selected':'')+'>'+destiny[d][e]+'</option>');
//document.writeln('<option>'+destiny[d][e]+'</option>');
}
document.writeln('</optgroup>');
}
}

function rollins(e){
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (j=0;j<myArraySet.length;j++){ if (myArraySet[j][0]==thislink.id+'_over'){document.getElementById(thislink.id).src=myArraySet[j][1].src; break;}}}
function unrollins(e){
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (k=0;k<myArraySet.length;k++){ if (myArraySet[k][0]==thislink.id){ document.getElementById(thislink.id).src=myArraySet[k][1].src; break;}}}
function rolloverInit(){
myArraySet=new Array(); myImages=new Array(); count=-1;
for (i=0;i<document.links.length;i++){
elk=document.links[i];
if (elk.id!=""){
bob=document.getElementById('i'+elk.id); unName=bob.src; count++;
c3=bob.src.replace(/_off./gi,'_on.'); //OR WHATEVER YOUR IMAGE ROLLOVER NAME VARIATION IS
thisImage=new Image(); thisImage.src=c3; myArraySet[count]=new Array(bob.id+'_over',thisImage);
elk.onmouseover=rollins; count++; thisImage=new Image(); thisImage.src=unName; myArraySet[count]=new Array(bob.id,thisImage);elk.onmouseout=unrollins;
}}}