var sq_answers = new Array();

var sq_cur, sq_i;



 for (sq_i = 0; sq_i < 10; sq_i++)

  sq_answers[sq_i] = "b";

 sq_cur = 0;



function sq_whichgreatest(a, b, c)

{

 if ((a > 5) || ((a > b) && (a > c)))

  return('a');

 if ((b > 5) || ((b > c) && (b > a)))

  return('b');

 if ((c > 5) || ((c > a) && (c > b)))

  return('c');

 return('b'); 

}



function sq_countanswers(x)

{

var r = 0;

 

 for (sq_i = 0; sq_i < 10; sq_i++)

 {

  if (sq_answers[sq_i] == x)

   r++;

 }

 return(r);

}



function sq_onsubmit()

{

var gotanswer = '';

var sqc = document.getElementById("sqc");

var h = '';

var na, nb, nc;

var ts = '</strong></p><table width="100%" border="0" cellspacing="5" cellpadding="0">';

var te = '<tr><td>&nbsp;</td><td>&nbsp;</td></tr></table>'

var ra = '<tr><td width="17%" align="right" valign="top"><input type="radio" name="sqa" value="a" /></td><td width="83%">';

var rb = '<tr><td width="17%" align="right" valign="top"><input type="radio" name="sqa" value="b" /></td><td width="83%">';

var rc = '<tr><td width="17%" align="right" valign="top"><input type="radio" name="sqa" value="c" /></td><td width="83%">';



 if ((sq_cur < 0) || (sq_cur > 9))

 {

  alert('Invalid Question')

  window.location.href = 'fashion_quiz.html';

  return(false);

 }

 for (sq_i = 0; sq_i < 3; sq_i++)

 {

  if (document.sqf.sqa[sq_i].checked == true)

  {

   gotanswer = document.sqf.sqa[sq_i].value;

   sq_answers[sq_cur] = gotanswer;

   break;

  }

 }

 if (gotanswer == '')

 {

  alert('Please Pick an Answer!');

  return(false);

 }

 sq_i = sq_cur + 2;

 if (sq_i <= 10)

 {

  document.sqi.src = 'images/fashion/q' + sq_i + '.jpg'; 

  h = '<h2>Question ' + sq_i + ' of 10</h2><p><strong>';

 }

 switch(sq_cur++)

 {

  case 0:  /* Q2 */

   h += 'Manolo Blahnik is famous for designing what fashion item?' + ts;

   h += rb + 'Jeans</td></tr>';

   h += ra + 'Shoes</td></tr>';

   h += rc + 'Dresses</td></tr>';

   h += te + '<div align="right"><input type="submit" value="Next Question" /></div>';

   break;

  case 1:  /* Q3 */

   h += 'How would you define &#39;heritage&#39; style clothes? ' + ts;

   h += rc + 'Anything my Granddad wore</td></tr>';

   h += rb + 'Quite formal and old fashioned</td></tr>';

   h += ra + 'Full of tartan checks and military jackets</td></tr>';

   h += te + '<div align="right"><input type="submit" value="Next Question" /></div>';

   break;

  case 2:  /* Q4 */

   h += 'Which of the following people has modelled for Versace?' + ts;

   h += rb + 'Madonna</td></tr>';

   h += rc + 'Kate Moss</td></tr>';

   h += ra + 'Jennifer Lopez</td></tr>';

   h += te + '<div align="right"><input type="submit" value="Next Question" /></div>';

   break;

  case 3:  /* Q5 */

   h += 'If you asked for clothes in a &#39;moderna y urbana&#39; style, what language would you be speaking?' + ts;

   h += ra + 'Spanish</td></tr>';

   h += rc + 'Latin</td></tr>';

   h += rb + 'Something European</td></tr>';

   h += te + '<div align="right"><input type="submit" value="Next Question" /></div>';

   break;

  case 4:  /* Q6 */

   h += 'Which of the following skills has helped supermodels like Heidi Klum&#39;s career?' + ts;

   h += rb + 'Walking on a catwalk</td></tr>';

   h += rc + 'Doing nice make up</td></tr>';

   h += ra + 'Learning languages to travel the world</td></tr>';

   h += te + '<div align="right"><input type="submit" value="Next Question" /></div>';

   break;

  case 5:  /* Q7 */

   h += 'Balenciaga jeans (Alexa&#39;s favourites) are known for being what style?' + ts;

   h += rc + 'Well balanced</td></tr>';

   h += rb + 'Boot cut</td></tr>';

   h += ra + 'Skin tight</td></tr>';

   h += te + '<div align="right"><input type="submit" value="Next Question" /></div>';

   break;

  case 6:  /* Q8 */

   h += 'This summer an outfit that had bold shapes and colours would have been called what trend?' + ts;

   h += ra + 'Geometry Lesson</td></tr>';

   h += rb + 'Geometric Style</td></tr>';

   h += rc + 'Geometry Set</td></tr>';

   h += te + '<div align="right"><input type="submit" value="Next Question" /></div>';

   break;

  case 7:  /* Q9 */

   h += 'What best describes the style of the German &#39;Strenesse&#39; label?' + ts;

   h += rc + 'Very practical</td></tr>';

   h += ra + 'Sharp lines and well cut</td></tr>';

   h += rb + 'Good quality</td></tr>';

   h += te + '<div align="right"><input type="submit" value="Next Question" /></div>';

   break;

  case 8:  /* Q10 */

   h += 'What does the Spanish design term &#39;Estilo&#39; mean?' + ts;

   h += rb + 'Attractive</td></tr>';

   h += ra + 'Style</td></tr>';

   h += rc + 'Is it Estilo Estevez from &#39;Young Guns&#39;?</td></tr>';

   h += te + '<div align="right"><input type="submit" value="Finish Quiz" /></div>';

   break;

  default:  /* Results */

   na = sq_countanswers('a');

   nb = sq_countanswers('b');

   nc = sq_countanswers('c');

   gotanswer = sq_whichgreatest(na, nb, nc);

   document.sqi.src = 'images/fashion/q' + gotanswer + '.jpg';

   h = '<h1>Your Fashion Quiz Results</h1><p>';

   if (gotanswer == 'a')

    h += 'Congratulations! You are clearly well read in all things fashion and are destined for great things. Not only do you have great passion but you&#39;re aware of how important knowing foreign languages could be in a Europe-wide industry.';

   else if (gotanswer == 'b')

    h += 'Not bad, but you only know fashion in a very general way. A true fashionista would get in to the details of it all; know the terms and trends inside out. Did you guess some of the language based questions? Brushing up on your language skills wouldn&#39;t be a bad idea either.';

   else

    h += 'Oh dear. Not only were you guessing your answers but you don&#39;t even take fashion seriously! It&#39;s not a laughing matter you know, it&#39;s a billion dollar industry where you can work with amazing people across Europe, especially if you have the right language skills!';

   h += '</p>';

   h += '<p><a href="/entertainment/t4/advertorial/try-life-in-another-language/fashion.html" title="Take Quiz Again">Take Quiz Again</a></p>';

   break;

 }

 sqc.innerHTML = h;

 return(false);

}