/*

<script src="/script.js" language="javascript" type="text/javascript"></script>
Include the above line in your headers */

var childcare_daycare_center="true";
var childcare_daycare_URL="http://www.crescerekidsecc.org/";
var childcare_daycare_title="Crescere Kids, preschool, daycare, Portland, Oregon";

// function to check the size of form fields
// <input type="button" value="Count Characters" onclick="daycare(this.form,1)">
function daycare(form, field) {
        if (field ==1) {
                Ctrl = form.web_des;
                y = 200+1;
        }
        else {
                Ctrl = form.longdescription;
                y=256;
        }

        x = Ctrl.value.length;
        if (x < y)
                childcare (Ctrl, "Number of characters is: " + x);        else
                childcare (Ctrl, "Warning! Description Too Long. Number of characters is: " + x);
}

// sub function of the size checking function that delivers the message
function childcare (Ctrl, PromptStr) {
        alert (PromptStr);
        Ctrl.focus();   
        return;
}

// add book marks based on the vars above
// <a href="javascript:childcare_daycare_bookmark()">Book Mark Us!</a>
function childcare_daycare_bookmark(){
if (document.all)
window.external.addfavorite(childcare_daycare_URL,childcare_daycare_title)
}

// nifty little safe link function.   If you don't click a safe link, it pops up a window.
// safe links are determined in the source of your html by doing this:
// <body onunload="childcare_daycare_popup()">
// <a href="/" onclick="showit=false">link</a>
function childcare_daycare_popup() 
{
        var crescere_cedarhills='http://www.crescerekidsecc.org/newsletters/newsletter.html';
        var crescere_daycare='toolbar=1,location=1,directories=1,menubar=1,scrollbars=1,status=1,resizable=1,target=_blank,width=800,height=600';

        if (childcare_daycare_center)
                msg=open(crescere_cedarhills,'Crescere Kids, Cedar Hills, Portland, Preschool',crescere_daycare);
}


