here below is the solution
function ControlTypes() {
for (i = 0; i < document.forms[0].length; i++) {
doc = document.forms[0].elements[i];
var type = doc.type;
if (type == "text") {
if (doc.style.color == "Aqua") {
var asa = doc.value;
doc.value = '';
}
else
{ }
}
}
}
jsut clear the textboxes on click if there color is same(define in css)