CS Friends Club 2009 – Mentee Registration [For ENGG Year 1 students only] September 10, 2009 adminAbout Us Want to improve your programming skill? Want to know more about Computer Science? Want to make friends with Computer Science senior students? Join Now!!! University ID Number: * Name: * (English) (Nickname) Gender: Male Female Telephone Number: * (Mobile) Telecommunication provider: 3 CSL Peoples SmartTone PCCW Others Email: * MSN: Facebook: Which course(s) you are taking? ENGG1002 A/B ENGG1007 A/B {source} <script>var field=new Array(“UID”, “Eng”, “Email”, “Mobile”); function AutoComplete(){ document.getElementById(“Msn”).value = document.getElementById(“Email”).value; document.getElementById(“Facebook”).value = document.getElementById(“Email”).value; } function isNull(fname){ if(document.getElementById(fname).value == “”) return true; else return false; } function validate(){ var error =””; var warn = “The following field cannot be null: “; var i = 0; while(i < 3){ if(isNull(field[i++])){ warn += field[i-1]; alert(warn); return false; } } if(!isFinite(document.getElementById(“UID”).value) || document.getElementById(“UID”).value < 1999000000 || document.getElementById(“UID”).value >= 2010000000){ alert(“Please input valid UID (e.g 2009XXXXXX.)”); return false; } var apos=document.getElementById(“Email”).value.indexOf(“@”); var dotpos=document.getElementById(“Email”).value.lastIndexOf(“.”); if(apos<1||dotpos-apos<2){ alert(“Please input valid Email.”); return false; } if(!isFinite(document.getElementById(“Mobile”).value)){ alert(“Please input valid telephone number”); return false; } setTimeout(“window.location.reload()”,2000); return true; }</script> {/source}