

var hakulocation = window.location.href;
var haku = hakulocation.substring(0, 45);

//STUDIES IN FINNISH

//2009 - 2010
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=AC966394764DC13EC225741900497F45" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=AC966394764DC13EC225741900497F45")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=AC966394764DC13EC225741900497F45 selected>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5B5A1CEA0A5CD5EDC22575A60040BB3E>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC15DC742FF0D0EFC22574390067C46A>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=904A9D813BE58884C225743900679964>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9D50C21AD5DE05C6C225743900676C12>2005 - 2006</option></select></form></div></td>")
}

//2008 - 2009
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5B5A1CEA0A5CD5EDC22575A60040BB3E" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5B5A1CEA0A5CD5EDC22575A60040BB3E")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=AC966394764DC13EC225741900497F45>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5B5A1CEA0A5CD5EDC22575A60040BB3E selected>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC15DC742FF0D0EFC22574390067C46A>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=904A9D813BE58884C225743900679964>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9D50C21AD5DE05C6C225743900676C12>2005 - 2006</option></select></form></div></td>")
}

//2007 - 2008
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC15DC742FF0D0EFC22574390067C46A" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC15DC742FF0D0EFC22574390067C46A")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=AC966394764DC13EC225741900497F45>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5B5A1CEA0A5CD5EDC22575A60040BB3E>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC15DC742FF0D0EFC22574390067C46A selected>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=904A9D813BE58884C225743900679964>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9D50C21AD5DE05C6C225743900676C12>2005 - 2006</option></select></form></div></td>")
}

//2006 - 2007
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=904A9D813BE58884C225743900679964" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=904A9D813BE58884C225743900679964")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=AC966394764DC13EC225741900497F45>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5B5A1CEA0A5CD5EDC22575A60040BB3E>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC15DC742FF0D0EFC22574390067C46A>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=904A9D813BE58884C225743900679964 selected>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9D50C21AD5DE05C6C225743900676C12>2005 - 2006</option></select></form></div></td>")
}

//2005 - 2006
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9D50C21AD5DE05C6C225743900676C12" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9D50C21AD5DE05C6C225743900676C12")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=AC966394764DC13EC225741900497F45>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5B5A1CEA0A5CD5EDC22575A60040BB3E>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC15DC742FF0D0EFC22574390067C46A>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=904A9D813BE58884C225743900679964>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9D50C21AD5DE05C6C225743900676C12 selected>2005 - 2006</option></select></form></div></td>")
}


//STUDIES IN ENGLISH

//2009 - 2010
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=6A750C5C30802ACBC225741900499A98" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=6A750C5C30802ACBC225741900499A98")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=6A750C5C30802ACBC225741900499A98 selected>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=A25B6B8FAFEAB999C22575A6004195F1>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC9875C6E5ADC583C2257439006846A4>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=775A4FFBBAD30856C225743900680C45>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=24EA4CBE14101E64C22574390067F426>2005 - 2006</option></select></form></div></td>")
}

//2008 - 2009
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=A25B6B8FAFEAB999C22575A6004195F1" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=A25B6B8FAFEAB999C22575A6004195F1")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=6A750C5C30802ACBC225741900499A98>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=A25B6B8FAFEAB999C22575A6004195F1 selected>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC9875C6E5ADC583C2257439006846A4>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=775A4FFBBAD30856C225743900680C45>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=24EA4CBE14101E64C22574390067F426>2005 - 2006</option></select></form></div></td>")
}

//2007 - 2008
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC9875C6E5ADC583C2257439006846A4" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC9875C6E5ADC583C2257439006846A4")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=6A750C5C30802ACBC225741900499A98>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=A25B6B8FAFEAB999C22575A6004195F1>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC9875C6E5ADC583C2257439006846A4 selected>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=775A4FFBBAD30856C225743900680C45>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=24EA4CBE14101E64C22574390067F426>2005 - 2006</option></select></form></div></td>")
}

//2006 - 2007
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=775A4FFBBAD30856C225743900680C45" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=775A4FFBBAD30856C225743900680C45")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=6A750C5C30802ACBC225741900499A98>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=A25B6B8FAFEAB999C22575A6004195F1>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC9875C6E5ADC583C2257439006846A4>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=775A4FFBBAD30856C225743900680C45 selected>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=24EA4CBE14101E64C22574390067F426>2005 - 2006</option></select></form></div></td>")
}

//2005 - 2006
if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=24EA4CBE14101E64C22574390067F426" || 
document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=24EA4CBE14101E64C22574390067F426")
{
document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=6A750C5C30802ACBC225741900499A98>2009 - 2010</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=A25B6B8FAFEAB999C22575A6004195F1>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=CC9875C6E5ADC583C2257439006846A4>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=775A4FFBBAD30856C225743900680C45>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=24EA4CBE14101E64C22574390067F426 selected>2005 - 2006</option></select></form></div></td>")
}



// COURSES IN ENGLISH
// 2008 - 2009
// if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9A62D544A18756B7C22574190049AB4D" || 
// document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9A62D544A18756B7C22574190049AB4D")
// {
// document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9A62D544A18756B7C22574190049AB4D selected>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5DBF74963E9066C8C2257439006CACB2>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=FA445AD93FA8AA93C2257439006C9538>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=2698695547C6E0BAC2257439006C8149>2005 - 2006</option></select></form></div></td>")
// }

// 2007 - 2008
// if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5DBF74963E9066C8C2257439006CACB2" || 
// document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5DBF74963E9066C8C2257439006CACB2")
// {
// document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9A62D544A18756B7C22574190049AB4D>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5DBF74963E9066C8C2257439006CACB2 selected>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=FA445AD93FA8AA93C2257439006C9538>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=2698695547C6E0BAC2257439006C8149>2005 - 2006</option></select></form></div></td>")
// }

// 2006 - 2007
// if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=FA445AD93FA8AA93C2257439006C9538" || 
// document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=FA445AD93FA8AA93C2257439006C9538")
// {
// document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9A62D544A18756B7C22574190049AB4D>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5DBF74963E9066C8C2257439006CACB2>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=FA445AD93FA8AA93C2257439006C9538 selected>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=2698695547C6E0BAC2257439006C8149>2005 - 2006</option></select></form></div></td>")
// }

// 2005 - 2006
// if (document.location.href == "http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=2698695547C6E0BAC2257439006C8149" || 
// document.location.href == "http://www.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=2698695547C6E0BAC2257439006C8149")
// {
// document.write("<td valign=top width=150><br><div class=lukuvuosi><form><br><br><b>Academic year</b><br><br><select name=amk onChange=f_amk() class=select><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=9A62D544A18756B7C22574190049AB4D>2008 - 2009</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=5DBF74963E9066C8C2257439006CACB2>2007 - 2008</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=FA445AD93FA8AA93C2257439006C9538>2006 - 2007</option><option value=http://ects.piramk.fi/cms/ects/ects.nsf/inpWebIframe?readform&id=2698695547C6E0BAC2257439006C8149 selected>2005 - 2006</option></select></form></div></td>")
// }