// Coded by windy_sk <windy_sk@126.com> 20040205
function reportError(msg,url,line) {
var str = 'You have found an error as below: \n\n';
str += 'Err: ' + msg + ' on line: ' + line;
alert(str);
return true;
}
window.onerror = reportError;
document.onkeydown = function() {
if(event.ctrlKey){
switch(event.keyCode) {
case 82: //r
runcode();
break;
case 83: //s
savecode();
break;
case 71: //g
goto(prompt('Please input the line number', '1'));
break;
case 65: //a
document.execCommand('SelectAll');
break;
case 67: //c
document.execCommand('Copy');
break;
case 88: //x
document.execCommand('Cut');
break;
case 86: //v
document.execCommand('Paste');

