function confirmDelete(delUrl){	if (confirm("Are you sure you want to delete this item?")){		document.location = delUrl;	}}function validateAdminUser(){	if(document.frmAddAdminUser.txtFirstName.value==""){		alert("Please enter first name");		document.frmAddAdminUser.txtFirstName.focus();		document.frmAddAdminUser.txtFirstName.style.background='red';		return false;	}	else if(document.frmAddAdminUser.txtLastName.value==""){		alert("Please enter last name");		document.frmAddAdminUser.txtLastName.focus();		document.frmAddAdminUser.txtLastName.style.background='red';		return false;	}	else if(document.frmAddAdminUser.txtEmail.value==""){		alert("Please enter email");		document.frmAddAdminUser.txtEmail.focus();		document.frmAddAdminUser.txtEmail.style.background='red';		return false;	}	else if(document.frmAddAdminUser.txtUsername.value==""){		alert("Please enter username");		document.frmAddAdminUser.txtUsername.focus();		document.frmAddAdminUser.txtUsername.style.background='red';		return false;	}	else if(document.frmAddAdminUser.txtPassword.value==""){		alert("Please enter password");		document.frmAddAdminUser.txtPassword.focus();		document.frmAddAdminUser.txtPassword.style.background='red';		return false;	}	return true;}function validateUser(){	if(document.frmAddUser.txtFirstName.value==""){		alert("Please enter first name");		document.frmAddUser.txtFirstName.focus();		document.frmAddUser.txtFirstName.style.background='red';		return false;	}	else if(document.frmAddUser.txtLastName.value==""){		alert("Please enter last name");		document.frmAddUser.txtLastName.focus();		document.frmAddUser.txtLastName.style.background='red';		return false;	}	else if(document.frmAddUser.txtEmail.value==""){		alert("Please enter email");		document.frmAddUser.txtEmail.focus();		document.frmAddUser.txtEmail.style.background='red';		return false;	}	else if(document.frmAddUser.txtUsername.value==""){		alert("Please enter username");		document.frmAddUser.txtUsername.focus();		document.frmAddUser.txtUsername.style.background='red';		return false;	}	else if(document.frmAddUser.txtPassword.value==""){		alert("Please enter password");		document.frmAddUser.txtPassword.focus();		document.frmAddUser.txtPassword.style.background='red';		return false;	}	return true;}function validatePage(){	if(document.frmAddPage.txtPageTitle.value==""){		alert("Please enter page title");		document.frmAddPage.txtPageTitle.focus();		document.frmAddPage.txtPageTitle.style.background='red';		return false;	}else if(document.frmAddPage.txtNavigationTitle.value==""){		alert("Please enter navigation title");		document.frmAddPage.txtNavigationTitle.focus();		document.frmAddPage.txtNavigationTitle.style.background='red';		return false;	}	return true;}function onLoadHandler(){	document.frmLaunch.submit();}function displayFlash(file,div,width,height){	var flashvars = {};		var params = {};	var attributes = {};	swfobject.embedSWF(file, div, width, height, "8.0.0", "/j/expressInstall.swf", flashvars, params, attributes);}// functions for popup$(document).ready(function(){	$("#vote_popup_close").click(function(){  		disablePopup();  	});  		$("#backgroundPopup").click(function(){  //Click out event!  		disablePopup();  	});  	$("#upload_submit").click(function(){  //Click out event!  		$("#loadingIcon").css({  			"display": "inline-block"  		});  	});  });	function flash_vote(){	centerPopup();  //centering with css  	loadPopup();  //load popup  	//alert("this works");}var popupStatus = 0;function loadPopup(){ 		if(popupStatus==0){  //loads popup only if it is disabled  		$("#backgroundPopup").css({  			"opacity": "0.7"  		});  		$("#backgroundPopup").fadeIn("slow");  		$("#vote_popup").fadeIn("slow");  		popupStatus = 1;  	}  } function disablePopup(){  	if(popupStatus==1){  //disables popup only if it is enabled  		$("#backgroundPopup").fadeOut("slow");  		$("#vote_popup").fadeOut("slow");  		popupStatus = 0;  	}  }  function centerPopup(){  	//request data for centering  	var windowWidth = document.documentElement.clientWidth;  	var windowHeight = document.documentElement.clientHeight;  	var popupHeight = $("#vote_popup").height();  	var popupWidth = $("#vote_popup").width();  	//centering  	$("#vote_popup").css({  		"position": "absolute",  		"top": (windowHeight/2-popupHeight/2),  		"left": windowWidth/2-popupWidth/2 			});  	//only need force for IE6    	$("#backgroundPopup").css({  		"height": windowHeight  	});  }  
