window.defaultStatus = "Bloggerstip.com";

	var ie=document.all
	var ns6=document.getElementById && !document.all
	showCopyCommand = "select code"
	if(ie){
		showCopyCommand = "select & copy code"
	}
function selectText1(id){
	if(document.getElementById(id).results.value == ""){
		alert("There is nothing to select.\n\nPlease Create Script First!");
		return;
	}
	document.getElementById(id).results.focus();
	document.getElementById(id).results.select();
	
	var copiedtext=""
	var tempstore=""
	if(ie){
	tempstore=copiedtext
	document.execCommand("Copy")
	copiedtext=window.clipboardData.getData("Text");
	}
	NSmsg="After \"highlighting code\" press\nControl + C to copy to your clipboard."
	IEmsg = "Selected data is now\ncopied to your clipboard.\n\n\Just paste data accordingly.\n"
	if(ie){alert(IEmsg);}
	if(ns6){alert(NSmsg);}
	}
function selectText2(id){
	if(document.getElementById(id).results2.value == ""){
		alert("There is nothing to select.\n\nPlease Create Script First!");
		return;
	}
	document.getElementById(id).results2.focus();
	document.getElementById(id).results2.select();
	
	var copiedtext2=""
	var tempstore2=""
	if(ie){
	tempstore2=copiedtext2
	document.execCommand("Copy")
	copiedtext2=window.clipboardData.getData("Text");
	}
	NSmsg2="After \"highlighting code\" press\nControl + C to copy to your clipboard."
	IEmsg2 = "Selected data is now\ncopied to your clipboard.\n\n\Just paste data accordingly.\n"
	if(ie){alert(IEmsg2);}
	if(ns6){alert(NSmsg2);}
	}
	/* function clearResults is for IE - it won't clear textareas */
function clearResults(form,resets){
	if(ie){
	document.getElementById("results").value="";
	if(resets == 2){
		document.getElementById("results2").value="";
		}
	}
}
function hiLiteMe(id){
	document.getElementById(id).select();	
}

var bites = document.cookie.split(";");

function getCookie(name) {
    for (i=0; i < bites.length; i++) {
      nextbite = bites[i].split("="); // break into the "name & value"
      if (nextbite[0] == name) // if the name = true
        return unescape(nextbite[1]);  }
 }   