﻿// JavaScript Document
function modalstory (argAjax1, argAjax2, argModal){
	$(argModal).modal({
		containerId: "storycontainer"
	});
	$.ajaxSetup ({
		cache: false
	});
	
	var loadUrl = "home.html";
	//$("#resultmid").html(ajax_load).load(argAjax);
	// the test case is just pulling in the storymid.html which however you are going to pull the info can be set in the ajax here as long as the template in the htmll file is kept
	$("#resultmid").load(argAjax1);
	$("#resultfoot").load(argAjax2);// the test case is just pulling in the storyfoot.html
}
function modalidea (){
	$('#submitmodal').modal({
		containerId: "submitcontainer",
		closeClass: "submitclose"
	});
}
function modalsubmit (){
	$('#submitmodal').modal({
		containerId: "submitcontainer",
		closeClass: "submitclose"
	});
}
function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}
function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}




