function changeStyle(classTable, classNameTable){
	document.getElementById(classTable).className=classNameTable;
}
function updateResponseDiv(req) 
{
	Spry.Utils.addClassName('contactFormHolder', 'inVisible');
	Spry.Utils.addClassName('sendMessage', req.xhRequest.responseText);
}
function updateDiv(oldClass) 
{
	document.getElementById('contactForm').reset();
	Spry.Utils.removeClassName('contactFormHolder', 'inVisible');
	Spry.Utils.removeClassName('sendMessage', oldClass);
}
function validateonsubmit(form){
	
		if (Spry.Widget.Form.validate(form) == true){
			
			Spry.Utils.submitForm(form, updateResponseDiv, {additionalData:'java=true'});
			
		}
		return false;
	}
function delFile(parm){
	return (confirm(parm));
}
function stopGallery(e){
	if(e){
    	e = e;
    } else {
        e = window.event;
    }
	if(e.stopPropagation){
		e.stopPropagation();
	} else {
		e.cancelBubble = true;
	}
	return true;
}
function setImage(url){
	var objLink = document.createElement('a');
    objLink.setAttribute('href', url);
    objLink.setAttribute('target','_blank');
    objLink.setAttribute('rel','lytebox');
    myLytebox.start(objLink, false, false);
	//Link From Flash
	/*on(release){
		getURL("javascript:setImage('PICTURE_URL')");
	}*/
}
function setImageTitle(url, title){
	var objLink = document.createElement('a');
    objLink.setAttribute('href', url);
    objLink.setAttribute('title',title);
    objLink.setAttribute('target','_blank');
    objLink.setAttribute('rel','lytebox');
    myLytebox.start(objLink, false, false);
}
function popupPlayer(url) {
	var w = 900;
	var h = 500;
	var scX = (screen.width - w) / 2;
	var scY = (screen.height - h) / 2;
	mwin = 'width='+w+',height='+h+',top='+scY+',left='+scX+'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no';
	win = window.open(url, 'viewPlayer', mwin);
	win.window.focus();
	return false;
}