function loginAddItemToWishlist(yahooForm){
var wishlistForm = document.getElementById('wishlistForm');
var yahooFormLen = yahooForm.elements.length
var pos = 0;
var monogram = '';
while(pos < yahooFormLen){
if(yahooForm[pos].type == 'text' && yahooForm[pos].name.indexOf('vw-initial') > -1 && yahooForm[pos].value != ''){
monogram += yahooForm[pos].value + '~'
}else{
if(wishlistForm[yahooForm[pos].name]){
wishlistForm[yahooForm[pos].name].value = yahooForm[pos].value
}
}
pos++;
}
if(wishlistForm['Monogram'] && monogram != ''){
wishlistForm['Monogram'].value = monogram;
}
var yu = document.createElement('input');
yu.name = 'yu';
yu.type = 'hidden';
yu.value = '';
wishlistForm.appendChild(yu);
wishlistForm.action = 'http://roseannsdolls.solidcactushosting.com/solidcactus/wishlist/dispatcher.php';
wishlistForm.submit();
}
function showAcctLinks(){
/*acctlinks*/
/*if(window.getLoginCookie){
if(!getLoginCookie('sclUser')){
document.cookie = 'sclUser=true';
}
}*/
if(document.getElementById('wishlist-button')){
var wishListInp = document.createElement('input');
if(window.wishlistButton && wishlistButton != ''){
wishListInp.type = 'image';
wishListInp.src = wishlistButton;
}else{
wishListInp.type = 'button'
wishListInp.value = 'Add to Wishlist';
}
wishListInp.className = 'ys_primary';
wishListInp.name = 'addToWishList';
wishListInp.onclick = function(){ document.location = 'https://roseannsdolls.solidcactushosting.com/~schost/roseannsdolls/ssl/sclogin/login.php'; return false;}
document.getElementById('wishlist-button').appendChild(wishListInp);
}
var acctlinksDiv = F("acctlinks");
if(acctlinksDiv){
acctlinksDiv.innerHTML += 'Welcome Guest Login|Register|View Wishlist';
}
/*acctlinks*/
}