function alertUser() {
	 var resumeDia = new dijit.Dialog({
		 title: "Welcome to SocialWorkExpress.com",
		 style: "width: 300px; font-size: 12px;",
		 content: "Job seekers, Click <a href=\"../Auth/jo_register.jsp\">here</a> to add your resume to SWE. By adding your resume " +
		 		"you improve your visibilty to potential employers and have a better experience using our site.<br/><br/>" +
		 		" Thank you. --Nadia Surin CEO"
	 });
	 
	 /* determine if we need to show it 
	 dojo.xhrGet({
			url: "../getPromoStartBox",
			handleAs: "text",
			timeout: 10000,
			load: function(data) {
		 			if(data == 'false')
		 				resumeDia.show();
	 			 }
	 }); */
}


function getSelectedResume() {
	var formApply = dojo.byId("applyJob");
	console.log("formApply = "+formApply);
	window.location.href = "../apply?action=update&key="+formApply.jobId.value;
}



function jobAwareness() {
	
	window.location.href="../Auth/job_select_payment.jsp#A";
/*
  if(dojo.byId("bg") == null) {
   	  
  var menu = dojo.byId("main_header_bg");
  dojo.animateProperty({
  	onBegin: function() {
		// add the bg
		var bg = document.createAttribute("id");
		bg.nodeValue="bg";
		document.getElementById("jobAware").setAttributeNode(bg);
	},
	onEnd: function() {
	  // show the picture
	  var pic = dojo.byId("ja");
	  pic.style.display="";
	},
  	node: menu,
	duration: 1000,
	properties: {
		height: {start: 0, end: 200 }
	}
  }).play();

} else {
	// turn off animation only if ja is enabled
	if(dojo.byId("jobAware") == null) {
	    // reverse action
    	var menu = dojo.byId("main_header_bg");
    	dojo.animateProperty({
  		onBegin: function() {
			// remove the picture
  	    	var pic = dojo.byId("ja");
	    	pic.style.display="none";
		},
		onEnd: function() {
			// remove bg
			var bg = document.createAttribute("id");
			bg.nodeValue="jobAware";
			document.getElementById("bg").setAttributeNode(bg);
		},
  		node: menu,
		duration: 1000,
		properties: {
			height: {start: 200, end: 0 }
		}
  		}).play();
	}
}
*/
}
function ceuCredits() {
	
/*
  if(dojo.byId("bg") == null) {
   	  
  var menu = dojo.byId("main_header_bg1");
  dojo.animateProperty({
  	onBegin: function() {
		// add the bg
		var bg = document.createAttribute("id");
		bg.nodeValue="bg";
		document.getElementById("ceU").setAttributeNode(bg);
	},
	onEnd: function() {
	  // show the picture
	  var pic = dojo.byId("ce");
	  pic.style.display="";
	},
  	node: menu,
	duration: 1000,
	properties: {
		height: {start: 0, end: 200 }
	}
  }).play();

} else {
	// turn off any animated function for ceU only if ceU is enabled
	if(dojo.byId("ceU") == null) {
    var menu = dojo.byId("main_header_bg1");
    dojo.animateProperty({
  	onBegin: function() {
		// remove the picture
  	    var pic = dojo.byId("ce");
	    pic.style.display="none";
	},
	onEnd: function() {
		// remove bg
		var bg = document.createAttribute("id");
		bg.nodeValue="ceU";
		document.getElementById("bg").setAttributeNode(bg);
	},
  	node: menu,
	duration: 1000,
	properties: {
		height: {start: 200, end: 0 }
	}
  }).play();
}
}
*/

}

function resumeBuilder() {
	
	window.location.href="../Auth/job_select_payment.jsp#B";
	/*

  if(dojo.byId("bg") == null) {
   	  
  var menu = dojo.byId("main_header_bg2");
  dojo.animateProperty({
  	onBegin: function() {
		// add the bg
		var bg = document.createAttribute("id");
		bg.nodeValue="bg";
		document.getElementById("resume").setAttributeNode(bg);
	},
	onEnd: function() {
	  // show the picture
	  var pic = dojo.byId("rb");
	  pic.style.display="";
	},
  	node: menu,
	duration: 1000,
	properties: {
		height: {start: 0, end: 200 }
	}
  }).play();

} else {
	// turn off any animatation of resume is enabled
	if(dojo.byId("resume") == null) {
    // reverse action
    var menu = dojo.byId("main_header_bg2");
    dojo.animateProperty({
  	onBegin: function() {
		// remove the picture
  	    var pic = dojo.byId("rb");
	    pic.style.display="none";
	},
	onEnd: function() {
		// remove bg
		var bg = document.createAttribute("id");
		bg.nodeValue="resume";
		document.getElementById("bg").setAttributeNode(bg);
	},
  	node: menu,
	duration: 1000,
	properties: {
		height: {start: 200, end: 0 }
	}
  }).play();
}
}
*/
}
function blog() {
	window.location.href="../blog/myblog.jsp";
}
function swe411() {
	window.location.href="../mainSite/schools.jsp";
	/*
  if(dojo.byId("bg") == null) {
   	  
  var menu = dojo.byId("main_header_bg3");
  dojo.animateProperty({
  	onBegin: function() {
		// add the bg
		var bg = document.createAttribute("id");
		bg.nodeValue="bg";
		document.getElementById("swe411").setAttributeNode(bg);
	},
	onEnd: function() {
	  // show the picture
	  var pic = dojo.byId("s4");
	  pic.style.display="";
	},
  	node: menu,
	duration: 1000,
	properties: {
		height: {start: 0, end: 200 }
	}
  }).play();

} else {
	// turn off any animatation of swe411 if enabled
	if(dojo.byId("swe411") == null) {
    // reverse action
    var menu = dojo.byId("main_header_bg3");
    dojo.animateProperty({
  	onBegin: function() {
		// remove the picture
  	    var pic = dojo.byId("s4");
	    pic.style.display="none";
	},
	onEnd: function() {
		// remove bg
		var bg = document.createAttribute("id");
		bg.nodeValue="swe411";
		document.getElementById("bg").setAttributeNode(bg);
	},
  	node: menu,
	duration: 1000,
	properties: {
		height: {start: 200, end: 0 }
	}
  }).play();
}
}
*/
	
}

