function getImageOut()
{
   return "images/information.gif";
}

function getImageHover()
{
   return "images/information_hover.gif";
}

function closepopup()
{
   if(popUpWin && !popUpWin.closed ) 
   {
      popUpWin.close ();
   }
   else
   {
      alert('Window already closed!');
   }
}
function infoPop(infoType)
{
   var content, headers, endHtml;
   

   popUpWin = window.open("", "nct", "toolbar = no, location = no, directories = no, status = no, menubar = no, scrollbars = 1, resizable = no, copyhistory = no, width=260, height=200")

   headers = "<html>";
   headers += "<head>";
   headers += "<link rel=\"StyleSheet\" href=\"style.css\" TYPE=\"text/css\" media=\"screen\">";
   headers += "</head>";
   headers += "<body onBlur=\"javascript:top.close()\" onLoad=\"self.focus()\">";

   if (infoType == "contact_information")
   {
      content = '<h3>Contact Information</h3><p class = "smalltxt">Please provide us with at least one email where we can get in touch with you for future correspondence. All the contact details below will be displayed in your profile except for the private landline telephone which is optional and will be used only for administration purposes. Make sure not to send us private contact information that you do not want to be publicly viewed.<br><br> <a href = "" onClick="window.close()">close</a></p>';  
   }
   
   if (infoType == "personal_information")
   {
      content = '<h3>Personal Information</h3><p class="smalltxt">Your personal information will not be displayed in your profile. Your personal information will only be used for administrative purposes. Only your full name and country will be displayed.<br><br> <a href = "" onClick="window.close()">close</a></p>';
   }
   
   if (infoType == "photo_information")
   {
      content = '<h3>Photo Information</h3><p class="smalltxt" align="left">File extensions allowed: jpg, gif and png. Dimension limits: 120 pixels width, 200 pixels height. File size should not exceed 50kb.<br><br> <a href = "" onClick="window.close()">close</a></p>';
   }
   
   if (infoType == "intro_information")
   {
      content = "<h3>Introduction Information</h3>"+
      "<p class=\"smalltxt\">When adding new paragraphs, use the &lt;br&gt; markup tags instead of typing the return key. You can provide information about yourself to other people, some ideas could include:</p>"+
 "<ul>"+
  "<li class = \"smalltxt\">What areas of counselling you specialise in.</li>"+
  "<li class = \"smalltxt\">How much you charge.</li>"+
  "<li class = \"smalltxt\">Mentioning your past experiences.</li>"+
 "</ul>"+
  "</p><p class = \"smalltxt\">"+
 "<br><br> <a href = \"\" onClick=\"window.close()\">close</a></p>";
   }
   
  
   if (infoType == "grade_information")
   {
      content = '<h3>Grade Information</h3><p class="smalltxt">Select the grade that bests describes your professional status.<br><br> <a href = "" onClick="window.close()">close</a></p>';
   }   

   if (infoType == "qualification_information")
   {
      content = '<h3>Qualification Information</h3><p class="smalltxt">Please provide us with at least one professionally recognised qualification related to counselling or psychology or other related studies which should be of the highest level you have attained.<br><br> <a href = "" onClick="window.close()">close</a></p>';
   } 

   endHtml = '</body></html>';

   popUpWin.document.write(headers + content + endHtml);
   popUpWin.document.close();
   //closePopUp();
   
}


function closePopUp()
{
   if (popUpWin && !popUpWin.closed)
   {
      setTimeout("popUpWin.self.close()",20000)//adjust timing
   }
}


