function popUp(URL)
{
    day = new Date();
    id = day.getTime();
    eval("spiffyplayer = window.open(URL, 'spiffyplayer', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=275,height=275,left = 10,top = 10');");
}
function ConfirmDelete()
{
	var i=confirm("Are you sure you want to DELETE this item?");
	if(i)
	{
		return true;
	}else{
		return false;
	}
}
function ConfirmPending(type)
{
    if(type == 'approve')
	   var i=confirm("Are you sure you want to APPROVE this theme?");
	else if(type == 'disable')
	   var i=confirm("Are you sure you want to DISABLE this theme?");
	if(i)
	{
		return true;
	}else{
		return false;
	}
}

window.addEvent('domready', function(){
    SqueezeBox.initialize({});
    SqueezeBox.assign($$('a[rel=boxed]'));
    SqueezeBox.assign($$('a.boxed'), {
        parse: 'rel'
    });
   //store titles and text
	$$('a.tipz').each(function(element,index) {
		var content = element.get('title').split('::');
		element.store('tip:title', content[0]);
		element.store('tip:text', content[1]);
	});
    var tipz = new Tips($$('.tipz'), {
    	timeOut		: 700,
    	maxTitleChars	: 50,
    	hideDelay		: 200,
    	className		: 'tipztop', //for you yo use in the css classes being then .tip .tip-title and .tip-text
    	initialize: function() { this.tip.fade('hide'); },
        onShow		: function(tip){
    	   tip.fade('in');
    	},
		onHide: function(tip) {
			tip.fade('out');
		}
    });
    Sexy = new SexyAlertBox();
});

function CheckAll(chk)
{
    for (i = 0; i < document.checkform.elements.length; i++)
    {
        if(document.checkform.elements[i].type == "checkbox")
        {
            document.checkform.elements[i].checked = chk.checked;
        }
    }
}
