home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 December
/
PCWorld_2006-12_cd.bin
/
komunikace
/
netscape
/
nsb-install-8-1-2.exe
/
chrome
/
aim.jar
/
content
/
aim
/
InviteAFriend1.js
< prev
next >
Wrap
Text File
|
2006-01-06
|
1KB
|
41 lines
function GetFields()
{
var emailaddress = document.getElementById("emailaddress").value;
var greeting = document.getElementById("greeting").value;
var rv = {
emailaddress: { id: "emailaddress", value: emailaddress },
greeting: { id: "greeting", value: greeting },
}
return rv;
}
function SetFields(aElement, aValue)
{
element = document.getElementById(aElement);
switch (element.id) {
case "emailaddress":
element.value = aValue;
break;
case "greeting":
element.value = aValue;
break;
}
}
function setNext(thelabel){
parent.wizardManager.wizardMap[parent.wizardManager.currentPageTag].next=thelabel
}
function InvitefriendOnload() {
if (parent.InviteScreenName !="")
document.getElementById("emailaddress").value = parent.InviteScreenName;
if (parent.inviteMsg != "")
document.getElementById("greeting").value = parent.inviteMsg;
}
function giveFocus(elementID){
nameField = document.getElementById(elementID);
setTimeout("nameField.focus()",300);
}