function GoRock(gameurl) {
note="呀米要和你玩遊戲，如果贏的話可以讓呀米更開心喔！只有一次機會喔！";
//alert(note);
if (confirm(note)){
   //var now = new Date();
   //document.rockform.rocktime.value=now.getTime();
   //document.rockform.submit();
   location.replace(gameurl);
   }
}

function GoQuestion() {
note="「蕃薯國王出了一個問題要考考你喔！答對過關就可以去看你的蕃薯寶寶喔！」";
alert(note);
}

function R() {
note="恭喜你，快去看你的蕃薯寶寶。";
alert(note);
//return confirm(note);
location.href='http://myyamie.kids.yam.com/mybaby.php';
}

function W() {
alert('不對喔！再試試看，先去偷看答案嗎？');
}

function RockMsg(win) {
var note = new Array(4);
note[0]='你輸了，快回去照顧蕃薯寶寶吧！';
note[1]='你贏了，快去看你的蕃薯寶寶，他開心多了喔！';
note[2]='哈哈哈！平手，下次再來！';
note[3]='哦哦！親愛的小主人，想作弊是不行的喔！';
alert(note[win]);
location.replace('http://myyamie.kids.yam.com/mybaby.php');
}

function TimeMatch(oldtime){
   var now = new Date();
   newtime=now.getTime();
   if (newtime-oldtime>6000){
   RockMsg(3);
   }
}

function IfEat() {
note="我真的已經飽了，你還要繼續餵我吃東西嗎？";
return confirm(note);
}

function CupMessage() {
note="你獲得一個獎盃，因為你非常細心照顧蕃薯寶寶，蕃薯國王獎勵你，希望你繼續加油！";
alert(note);
}

function IfGo(note) {
return confirm(note);
}

function clearMe(control){
control.value = "";
}

function Message(note){
alert(note);
}

function Over(theform){
if (theform.ord.value>1000){
   alert('你輸入的數字太大囉！');
   return false;
   }
}

function PetMessage() {
note="你的好朋友因為你的邀請，已經來認養寶寶囉！現在就去幫你的呀米領小寵物吧！";
alert(note);
location.href="http://myyamie.kids.yam.com/event/invite/pets.php";
}