var ans = new Array;
var done = new Array;
var yourAns = new Array;
var explainAnswer = new Array;

var score = 0;
ans[1] = "True";
ans[2] = "False";
ans[3] = "False";
ans[4] = "False";
ans[5] = "False";
ans[6] = "False";
ans[7] = "True";
ans[8] = "False";
ans[9] = "True";
ans[10] = "False";

explainAnswer[1]="<br />Public disclosure of an invention occurs, for example, when it is described in a journal, trade show presentation, or abstract publication in enough detail to be reproduced.<br /><br />";
explainAnswer[2]="<br />You may use the federal registration symbol &reg; only after the USPTO actually registers a mark. You may use the \"TM\" (trademark) or \"SM\" (servicemark) designation to alert the public to your claim, regardless of whether you have filed an application with the USPTO. Putting TM or SM on a mark indicates your claim to ownership of that mark and, possibly, your intent to legally enforce exclusive rights for that mark.<br /><br />";
explainAnswer[3]="<br />Copyright protection begins from the moment of creation of a work in fixed form and endures for the life of the author plus 70 years. Enforcement in court, however, requires registration<br /><br />";
explainAnswer[4]="<br />Most patent applications are published 18 months after the filing date of the application. Once published, anyone may request a copy of the application file.<br /><br />";
explainAnswer[5]="<br />To be valid, a trademark must be unique and actively used. As long as it is actively used, it will never expire.<br /><br />";
explainAnswer[6]="<br />In the U.S., almost everything created privately and originally after January 1, 1978 is copyrighted and protected, whether it has a notice or not.<br /><br />";
explainAnswer[7]="<br />Before 1995, utility patents were granted for 17 years from the date the patent issues, but now have a term of 20 years from the application priority date, with certain exceptions. Design patents are in force for 14 years from the patent issue date, and plant patents have a term of 20 years from the application filing date.<br /><br />";
explainAnswer[8]="<br />Hence the term \"trade secret.\"<br /><br />";
explainAnswer[9]="<br /><br />";
explainAnswer[10]="<br />Patents are non-renewable. When they expire, they may be copied by anyone. However, some pharmaceutical patents can be extended under the Federal Drug Administration approval process, and a patent may be extended for other reasons, such as administrative delays or granting of an application for a patent term adjustment.<br />";

function Engine(question, answer) {
yourAns[question]=answer;
}

function Score(){
var answerText = "";
for(i=1;i<=10;i++){
   answerText=answerText+"\n"+i+". ";
  if(ans[i]!=yourAns[i]){
    answerText=answerText+"<strong>The correct answer was "+ans[i]+"</strong>\n"+explainAnswer[i]+"\n";
  }
  else{
    answerText=answerText+" <strong>Correct!</strong>"+explainAnswer[i]+"\n";
    score++;
  }
}

answerText=answerText+"\n\n<br /><span style=\"font-size:14px; font-weight:bold\">Your total score is : "+score+"</span><br />\n";

return NewWindow(answerText, 600, 620); 
}

function NewWindow(sFile, iWidth, iHeight){

var wWindow=window.open('','_blank','width='+parseInt(iWidth+60)+',height='+parseInt(iHeight+100)+',toolbars=0,resize=1,');
//wWindow.moveTo(0,0);
//wWindow.resizeTo(screen.availWidth,screen.availHeight);
wWindow.document.write('<html>\n<head>\n\n');
wWindow.document.write('<title>IP Quiz</title></head>\n\n');
wWindow.document.write('<body style="font-size:11px; font-family:Arial"><img src="http://207.56.166.97/images/logo.gif"><br /><br />\n');
wWindow.document.write(sFile);
wWindow.document.write('<p><input type=button style="color:#fff; background-color:#266387; font-weight:bold; font-size:10px; border:1px solid #fff; padding:5px 0;" onclick="window.close();" value="Close Window"></p>\n\n');
wWindow.document.write('</body>\n</html>\n');
} 





